CVE-2012-3546
Authentication Bypass in Apache Tomcat
Also known as GHSA-jgm2-m5cg-f66g
Mitigation
- Upgrade org.apache.tomcat:tomcat to one of 6.0.36, 7.0.30 (or later in the same release line).
Who should check
- Projects that depend on Maven package org.apache.tomcat:tomcat (>= 6.0.0, < 6.0.36)
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- org.apache.tomcat:tomcat >= 6.0.0, < 6.0.36
- Fixed in
- 6.0.36, 7.0.30
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 4.3 (v2.0, NVD)AV:N/AC:M/Au:N/C:N/I:P/A:N
Show all 6 CVSS metrics
- Attack vector: Network
- Attack complexity: Medium
- Authentication: None
- Confidentiality impact: None
- Integrity impact: Partial
- Availability impact: None
- EPSS
- 11.97% chance of exploitation in 30 days (percentile 97, 2026-11-26)
- CWE
- CWE-264
- Modified
Description
org/apache/catalina/realm/RealmBase.java in Apache Tomcat 6.x before 6.0.36 and 7.x before 7.0.30, when FORM authentication is used, allows remote attackers to bypass security-constraint checks by leveraging a previous setUserPrincipal call and then placing /j_security_check at the end of a URI.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven org.apache.tomcat:tomcat | >= 6.0.0, < 6.0.36 | 6.0.36, 7.0.30 | osv |
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2012-3546. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2012-3546.md Affected: org.apache.tomcat:tomcat >= 6.0.0, < 6.0.36 Fixed in: 6.0.36, 7.0.30 Steps: 1. Search this machine and project for org.apache.tomcat:tomcat (Maven), n/a: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- http://marc.info/?l=bugtraq&m=136612293908376&w=2
- http://www.ubuntu.com/usn/USN-1685-1
- http://lists.opensuse.org/opensuse-updates/2012-12/msg00089.html
- http://rhn.redhat.com/errata/RHSA-2013-0640.html
- http://rhn.redhat.com/errata/RHSA-2013-0163.html
- https://h20566.www2.hp.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c03748878
- http://rhn.redhat.com/errata/RHSA-2013-0164.html
- http://rhn.redhat.com/errata/RHSA-2013-0192.html
- http://rhn.redhat.com/errata/RHSA-2013-0198.html
- http://rhn.redhat.com/errata/RHSA-2013-0641.html
- http://tomcat.apache.org/security-7.html
- http://rhn.redhat.com/errata/RHSA-2013-0004.html
- http://rhn.redhat.com/errata/RHSA-2013-0195.html
- http://rhn.redhat.com/errata/RHSA-2013-0221.html
- http://rhn.redhat.com/errata/RHSA-2013-0196.html
- http://rhn.redhat.com/errata/RHSA-2013-0147.html
- http://rhn.redhat.com/errata/RHSA-2013-0158.html
- http://rhn.redhat.com/errata/RHSA-2013-0193.html
- http://rhn.redhat.com/errata/RHSA-2013-0157.html
- http://tomcat.apache.org/security-6.html
- http://rhn.redhat.com/errata/RHSA-2013-0146.html
- http://lists.opensuse.org/opensuse-updates/2013-01/msg00037.html
- http://rhn.redhat.com/errata/RHSA-2013-0191.html
- http://rhn.redhat.com/errata/RHSA-2013-0623.html
- http://rhn.redhat.com/errata/RHSA-2013-0197.html
- http://rhn.redhat.com/errata/RHSA-2013-0235.html
- http://rhn.redhat.com/errata/RHSA-2013-0642.html
- http://rhn.redhat.com/errata/RHSA-2013-0194.html
- http://rhn.redhat.com/errata/RHSA-2013-0005.html
- http://marc.info/?l=bugtraq&m=139344343412337&w=2
- http://lists.opensuse.org/opensuse-updates/2012-12/msg00090.html
- http://rhn.redhat.com/errata/RHSA-2013-0162.html
- http://rhn.redhat.com/errata/RHSA-2013-0151.html
- https://nvd.nist.gov/vuln/detail/CVE-2012-3546
Patches
- http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/catalina/realm/RealmBase.java?r1=1377892&r2=1377891&pathrev=1377892
- http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml?r1=1377892&r2=1377891&pathrev=1377892
- https://github.com/apache/tomcat/commit/f78c0cdfc8a3c2efdfe6df6b69e5e3daafa3f588
Other
- http://www.securitytracker.com/id?1027833
- http://www.securityfocus.com/bid/56812
- http://svn.apache.org/viewvc?view=revision&revision=1377892
- http://archives.neohapsis.com/archives/bugtraq/2012-12/0044.html
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A19305
- http://secunia.com/advisories/51984
- http://secunia.com/advisories/52054
- http://secunia.com/advisories/57126
- https://github.com/apache/tomcat
- https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1377892
FAQ
Is CVE-2012-3546 being exploited?
There is no confirmed exploitation: CVE-2012-3546 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 11.97% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2012-3546?
Medium: CVSS 4.3 (v2.0, scored by NVD). Remote, no login needed.
Which versions are affected by CVE-2012-3546?
org.apache.tomcat:tomcat >= 6.0.0, < 6.0.36.
Is there a fix for CVE-2012-3546?
Yes. Fixed in 6.0.36, 7.0.30. Upgrade org.apache.tomcat:tomcat to one of 6.0.36, 7.0.30 (or later in the same release line).
How do I check if I'm affected by CVE-2012-3546?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.