CVE-2012-1895
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedThe reflection implementation in Microsoft .NET Framework 1.0 SP3, 1.1 SP1, 2.0 SP2, 3.5.1, and 4 does not properly enforce object permissions, which allows remote attackers to execute arbitrary code via (1) a crafted XAML browser application (aka XBAP) or (2) a crafted .NET Framework application, aka "Reflection Bypass Vulnerability."
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceThe .NET Framework's reflection implementation fails to properly enforce object permissions, allowing remote attackers to bypass security restrictions and execute arbitrary code via crafted XAML browser applications (XBAP) or malicious .NET Framework applications. This is a privilege escalation vulnerability in the reflection API.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data= 1.0= 1.1= 2.0= 3.5.1= 4.0CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- M
- Authentication
- None
- Confidentiality
- Complete
- Integrity
- Complete
- Availability
- Complete
AV:N/AC:M/Au:N/C:C/I:C/A:C
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify installed .NET Framework versionCheck the Windows registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v{version}\Release for .NET Framework 1.0, 1.1, 2.0, 3.5, and 4.0. Alternatively, run 'gci "HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP" -Recurse | gp | where {$_.PSChildName -match '^(?!S)\P{2}'} | select PSChildName, Version, Release' in PowerShell.Affected if The installed version matches 1.0, 1.1, 2.0, 3.5.1, or 4.0 without the MS12-074 security update applied.
-
Verify XBAP execution is enabled in Internet ExplorerOpen Internet Explorer, navigate to Internet Options, then Security tab. Select the relevant zone (Internet, Intranet, or Trusted Sites). Click Custom Level and scroll to '.NET Framework XAML browser applications' setting. Verify whether 'Enable' or 'Prompt' is selected.Affected if XBAP execution is set to Enabled or Prompt in any Internet Explorer security zone, allowing malicious XBAP payloads to execute.
-
Confirm .NET ClickOnce applications are permittedIn Internet Explorer, go to Internet Options, Security tab, select a zone, click Custom Level, and locate the 'ClickOnce applications' setting under the .NET Framework section.Affected if ClickOnce applications are set to Enabled or Prompt, providing an attack vector for the vulnerable reflection API.
-
Check for presence of security update MS12-074Open Windows Update or check Add/Remove Programs for installed updates. Look for security update KB2742599 (for .NET 4.0) or corresponding KB numbers for other versions (KB2604121 for .NET 1.0/2.0/3.5, KB2656351 for .NET 4.0).Affected if The MS12-074 security update is not installed, meaning the vulnerable reflection permission enforcement remains unpatched.
A system is affected if it runs any unpatched .NET Framework version 1.0, 1.1, 2.0, 3.5.1, or 4.0 and permits XBAP or ClickOnce application execution in browsers.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedApply Microsoft security update MS12-074 (or subsequent superseded updates) to all affected .NET Framework versions. Restrict XBAP execution in browsers via Internet Explorer security zone settings or group policy where feasible.
Microsoft .NET Framework 4.5 or later (which is not affected by this vulnerability)
- Apply the relevant security update from Microsoft Security Bulletin MS12-074 corresponding to the affected .NET Framework version: For .NET Framework 1.0 SP3 install KB2604122, for 1.1 SP1 install KB2604115, for 2.0 SP2 install KB2604126, for 3.5.1 install KB2604114, and for .NET Framework 4 install KB2604127
- Obtain the updates from Windows Update, Microsoft Update Catalog, or your organization's patch management solution
- Restart the system after applying the updates to ensure the patches take effect
- Verify the updates were successfully installed by checking the installed updates in Control Panel > Programs and Features > View installed updates
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation6.0 h
- Implementation12.0 h
- Testing10.0 h
- Review / QA4.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $8,928.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2012-1895 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2012-1895 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data