CVE-2012-3546
MEDIUM 4.3CVSS 2.0Authentication Bypass in Apache Tomcat
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.
- Published
- 19 Dec 2012
- Last modified
- 16 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-264CWE-287
- Also known as
- GHSA-jgm2-m5cg-f66g
- Sources
- NVDJSONOSV GHSA-jgm2-m5cg-f66gJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0:*:*:*:*:*:*:* |
= 6.0 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.0:*:*:*:*:*:*:* |
= 6.0.0 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.0:alpha:*:*:*:*:*:* |
= 6.0.0 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.1:*:*:*:*:*:*:* |
= 6.0.1 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.1:alpha:*:*:*:*:*:* |
= 6.0.1 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.2:*:*:*:*:*:*:* |
= 6.0.2 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.2:alpha:*:*:*:*:*:* |
= 6.0.2 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.2:beta:*:*:*:*:*:* |
= 6.0.2 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.3:*:*:*:*:*:*:* |
= 6.0.3 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.4:*:*:*:*:*:*:* |
= 6.0.4 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.5:*:*:*:*:*:*:* |
= 6.0.5 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.6:*:*:*:*:*:*:* |
= 6.0.6 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.7:*:*:*:*:*:*:* |
= 6.0.7 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.8:*:*:*:*:*:*:* |
= 6.0.8 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.9:*:*:*:*:*:*:* |
= 6.0.9 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.9:beta:*:*:*:*:*:* |
= 6.0.9 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.10:*:*:*:*:*:*:* |
= 6.0.10 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.11:*:*:*:*:*:*:* |
= 6.0.11 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.12:*:*:*:*:*:*:* |
= 6.0.12 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.13:*:*:*:*:*:*:* |
= 6.0.13 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.14:*:*:*:*:*:*:* |
= 6.0.14 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.15:*:*:*:*:*:*:* |
= 6.0.15 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.16:*:*:*:*:*:*:* |
= 6.0.16 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.17:*:*:*:*:*:*:* |
= 6.0.17 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.18:*:*:*:*:*:*:* |
= 6.0.18 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.19:*:*:*:*:*:*:* |
= 6.0.19 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.20:*:*:*:*:*:*:* |
= 6.0.20 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.24:*:*:*:*:*:*:* |
= 6.0.24 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.26:*:*:*:*:*:*:* |
= 6.0.26 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.27:*:*:*:*:*:*:* |
= 6.0.27 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.28:*:*:*:*:*:*:* |
= 6.0.28 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.29:*:*:*:*:*:*:* |
= 6.0.29 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.30:*:*:*:*:*:*:* |
= 6.0.30 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.31:*:*:*:*:*:*:* |
= 6.0.31 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.32:*:*:*:*:*:*:* |
= 6.0.32 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.33:*:*:*:*:*:*:* |
= 6.0.33 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:6.0.35:*:*:*:*:*:*:* |
= 6.0.35 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:7.0.0:*:*:*:*:*:*:* |
= 7.0.0 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:7.0.0:beta:*:*:*:*:*:* |
= 7.0.0 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:7.0.1:*:*:*:*:*:*:* |
= 7.0.1 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:7.0.2:*:*:*:*:*:*:* |
= 7.0.2 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:7.0.2:beta:*:*:*:*:*:* |
= 7.0.2 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:7.0.3:*:*:*:*:*:*:* |
= 7.0.3 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:7.0.4:*:*:*:*:*:*:* |
= 7.0.4 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:7.0.4:beta:*:*:*:*:*:* |
= 7.0.4 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:7.0.5:*:*:*:*:*:*:* |
= 7.0.5 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:7.0.6:*:*:*:*:*:*:* |
= 7.0.6 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:7.0.7:*:*:*:*:*:*:* |
= 7.0.7 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:7.0.8:*:*:*:*:*:*:* |
= 7.0.8 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:7.0.9:*:*:*:*:*:*:* |
= 7.0.9 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:7.0.10:*:*:*:*:*:*:* |
= 7.0.10 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:7.0.11:*:*:*:*:*:*:* |
= 7.0.11 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:7.0.12:*:*:*:*:*:*:* |
= 7.0.12 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:7.0.13:*:*:*:*:*:*:* |
= 7.0.13 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:7.0.14:*:*:*:*:*:*:* |
= 7.0.14 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:7.0.15:*:*:*:*:*:*:* |
= 7.0.15 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:7.0.16:*:*:*:*:*:*:* |
= 7.0.16 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:7.0.17:*:*:*:*:*:*:* |
= 7.0.17 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:7.0.18:*:*:*:*:*:*:* |
= 7.0.18 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:7.0.19:*:*:*:*:*:*:* |
= 7.0.19 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:7.0.20:*:*:*:*:*:*:* |
= 7.0.20 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:7.0.21:*:*:*:*:*:*:* |
= 7.0.21 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:7.0.22:*:*:*:*:*:*:* |
= 7.0.22 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:7.0.23:*:*:*:*:*:*:* |
= 7.0.23 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:7.0.25:*:*:*:*:*:*:* |
= 7.0.25 | |
| NVD | apache | tomcatcpe:2.3:a:apache:tomcat:7.0.28:*:*:*:*:*:*:* |
= 7.0.28 | |
| OSV | Maven | org.apache.tomcat:tomcat | >= 6.0.0, < 6.0.36 | 6.0.36 |
| OSV | Maven | org.apache.tomcat:tomcat | >= 7.0.0, < 7.0.30 | 7.0.30 |
References
- http://archives.neohapsis.com/archives/bugtraq/2012-12/0044.html
- http://lists.opensuse.org/opensuse-updates/2012-12/msg00089.html · WEB
- http://lists.opensuse.org/opensuse-updates/2012-12/msg00090.html · WEB
- http://lists.opensuse.org/opensuse-updates/2013-01/msg00037.html · WEB
- http://marc.info/?l=bugtraq&m=136612293908376&w=2 · WEB
- http://marc.info/?l=bugtraq&m=139344343412337&w=2 · WEB
- http://rhn.redhat.com/errata/RHSA-2013-0004.html · WEB
- http://rhn.redhat.com/errata/RHSA-2013-0005.html · WEB
- http://rhn.redhat.com/errata/RHSA-2013-0146.html · WEB
- http://rhn.redhat.com/errata/RHSA-2013-0147.html · WEB
- http://rhn.redhat.com/errata/RHSA-2013-0151.html · WEB
- http://rhn.redhat.com/errata/RHSA-2013-0157.html · WEB
- http://rhn.redhat.com/errata/RHSA-2013-0158.html · WEB
- http://rhn.redhat.com/errata/RHSA-2013-0162.html · WEB
- http://rhn.redhat.com/errata/RHSA-2013-0163.html · WEB
- http://rhn.redhat.com/errata/RHSA-2013-0164.html · WEB
- http://rhn.redhat.com/errata/RHSA-2013-0191.html · WEB
- http://rhn.redhat.com/errata/RHSA-2013-0192.html · WEB
- http://rhn.redhat.com/errata/RHSA-2013-0193.html
- http://rhn.redhat.com/errata/RHSA-2013-0194.html · WEB
- http://rhn.redhat.com/errata/RHSA-2013-0195.html · WEB
- http://rhn.redhat.com/errata/RHSA-2013-0196.html · WEB
- http://rhn.redhat.com/errata/RHSA-2013-0197.html
- http://rhn.redhat.com/errata/RHSA-2013-0198.html · WEB
- http://rhn.redhat.com/errata/RHSA-2013-0221.html · WEB
- http://rhn.redhat.com/errata/RHSA-2013-0235.html · WEB
- http://rhn.redhat.com/errata/RHSA-2013-0623.html · WEB
- http://rhn.redhat.com/errata/RHSA-2013-0640.html · WEB
- http://rhn.redhat.com/errata/RHSA-2013-0641.html · WEB
- http://rhn.redhat.com/errata/RHSA-2013-0642.html · WEB
- http://secunia.com/advisories/51984
- http://secunia.com/advisories/52054
- http://secunia.com/advisories/57126
- http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/catalina/realm/RealmBase.java?r1=1377892&r2=1377891&pathrev=1377892 · Patch, WEB
- http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml?r1=1377892&r2=1377891&pathrev=1377892 · Patch, WEB
- http://svn.apache.org/viewvc?view=revision&revision=1377892 · WEB
- http://tomcat.apache.org/security-6.html · Vendor Advisory, WEB
- http://tomcat.apache.org/security-7.html · Vendor Advisory, WEB
- http://www.securityfocus.com/bid/56812
- http://www.securitytracker.com/id?1027833
- http://www.ubuntu.com/usn/USN-1685-1
- https://h20566.www2.hp.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c03748878
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A19305 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2012-3546 · ADVISORY
- https://github.com/apache/tomcat/commit/f78c0cdfc8a3c2efdfe6df6b69e5e3daafa3f588 · WEB
- https://github.com/apache/tomcat · PACKAGE
- https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1377892 · WEB
History
- 25 Nov 2026 20:17 UTC · NVD: first stored (published 19 Dec 2012)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 17 May 2022)