CVE-2012-3546
What it is
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.
At a glance
- Exploitability
- Can be exploited over the network without logging in. Limited direct impact.
- Exploit odds
- 12.0% chance of exploitation in the next 30 days (EPSS). Higher than most.
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 12.0% in the next 30 days (EPSS).
- Severity: 4.3 MEDIUM (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 12.0% · EPSS, next 30 days
- Weakness
- CWE-264
- Record status
- Modified
Affected
- Apache Tomcat 6.0
- Apache Tomcat 6.0.0
- Apache Tomcat 6.0.1
- Apache Tomcat 6.0.2
- Apache Tomcat 6.0.3
- Apache Tomcat 6.0.4
- Apache Tomcat 6.0.5
- Apache Tomcat 6.0.6
Attack profile CVSS 2.0 · 4.3
- Attack vector
- Network
- Complexity
- Medium
- Authentication
- None
- Confidentiality
- None
- Integrity
- Partial
- Availability
- None
Raw vector
AV:N/AC:M/Au:N/C:N/I:P/A:N
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2012-3546.md and follow it. Check whether this project is affected by CVE-2012-3546. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- 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
- http://tomcat.apache.org/security-6.html
- http://tomcat.apache.org/security-7.html
- 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
- http://tomcat.apache.org/security-6.html
- http://tomcat.apache.org/security-7.html
References
- http://archives.neohapsis.com/archives/bugtraq/2012-12/0044.html
- http://lists.opensuse.org/opensuse-updates/2012-12/msg00089.html
- http://lists.opensuse.org/opensuse-updates/2012-12/msg00090.html
- http://lists.opensuse.org/opensuse-updates/2013-01/msg00037.html
- http://marc.info/?l=bugtraq&m=136612293908376&w=2
- http://marc.info/?l=bugtraq&m=139344343412337&w=2
- http://rhn.redhat.com/errata/RHSA-2013-0004.html
- http://rhn.redhat.com/errata/RHSA-2013-0005.html
- http://rhn.redhat.com/errata/RHSA-2013-0146.html
- http://rhn.redhat.com/errata/RHSA-2013-0147.html
- http://rhn.redhat.com/errata/RHSA-2013-0151.html
- http://rhn.redhat.com/errata/RHSA-2013-0157.html
- http://rhn.redhat.com/errata/RHSA-2013-0158.html
- http://rhn.redhat.com/errata/RHSA-2013-0162.html
- http://rhn.redhat.com/errata/RHSA-2013-0163.html
- http://rhn.redhat.com/errata/RHSA-2013-0164.html
- http://rhn.redhat.com/errata/RHSA-2013-0191.html
- http://rhn.redhat.com/errata/RHSA-2013-0192.html
- http://rhn.redhat.com/errata/RHSA-2013-0193.html
- http://rhn.redhat.com/errata/RHSA-2013-0194.html
- http://rhn.redhat.com/errata/RHSA-2013-0195.html
- http://rhn.redhat.com/errata/RHSA-2013-0196.html
- http://rhn.redhat.com/errata/RHSA-2013-0197.html
- http://rhn.redhat.com/errata/RHSA-2013-0198.html
- http://rhn.redhat.com/errata/RHSA-2013-0221.html