CVE DatabaseCVE-2012-1854
한국어 권고문 →
CVE-2012-18547.8/HIGHCISA KEVCWE-426

Microsoft Office and VBA VBE6.dll Untrusted Search Path Vulnerability (CVE-2012-1854) Advisory

Affected Vendors
microsoft, summit
Affected Components
office, visual_basic_for_applications, visual_basic_for_applications_sdk
Published Date
2012-07-10

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

Microsoft Office 2003 SP3, 2007 SP2/SP3, 2010 Gold/SP1, and systems utilizing Visual Basic for Applications (VBA)

Impact

Local attackers can execute arbitrary code and escalate privileges by tricking a user into opening a document in a directory containing a malicious DLL

Mitigation

Apply the official Microsoft security update (MS12-046) and restrict insecure DLL loading via registry modifications

Affected Products & Version Scope

Microsoft Office 2003 SP3, 2007 SP2 and SP3, 2010 Gold and SP1, Microsoft Visual Basic for Applications (VBA), and Summit VBA SDK

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Apply Official Security Patches

Refer to Microsoft Security Bulletin MS12-046 and apply the appropriate security updates for your specific Office and VBA versions.

2. Temporary Mitigation via Registry

Restrict DLL loading from the Current Working Directory (CWD) by configuring the CWDIllegalInDllSearch registry key.

cmd
# Run in Administrator Command Prompt
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager" /v CWDIllegalInDllSearch /t REG_DWORD /d 1 /f

*Note: Setting the value to 1 blocks DLL loading from WebDAV and network shares.*

3. Defensive Best Practices

  • Avoid opening Office documents directly from untrusted network shares or extracted archives containing unrecognized DLL files.
  • Deploy Endpoint Detection and Response (EDR) rules to monitor and block Office applications (winword.exe, excel.exe, etc.) from loading DLLs from non-standard directories.
Recommended Security Control & Mitigation Partner
SentinelOne Singularity AI EDR
Due to active in-the-wild exploitation, immediately apply the MS12-046 patch or restrict DLL search paths via registry hardening.

Block Kernel Privilege Escalation & Ransomware Payloads Before You Can Reboot

Protect unpatched Windows, Linux, and macOS workloads against in-memory exploitation and lateral movement with autonomous EDR.

100% MITRE ATT&CK Detection · 1-Click Rollback

Technical Root Cause & Exploitation Mechanics

This vulnerability (CVE-2012-1854) is an untrusted search path vulnerability (CWE-426, DLL Hijacking) residing in VBE6.dll, a core component of Microsoft Visual Basic for Applications (VBA).

The root cause lies in the application's insecure DLL search order, where it attempts to load required libraries from the Current Working Directory (CWD) before searching secure system directories. An attacker can exploit this by placing a Trojan horse DLL alongside a legitimate Office document (such as a .docx file) in a shared network folder or a local directory. When the victim opens the document, the VBA engine initializes and inadvertently loads the malicious DLL from the same directory, executing arbitrary code under the context of the current user.

This vulnerability has been actively exploited in the wild (listed in CISA KEV) and carries a high EPSS score of 0.94, indicating an extremely high likelihood of exploitation in unpatched environments.

Official Vendor Advisories & References

SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed: