Description
org/apache/catalina/filters/CsrfPreventionFilter.java in Apache Tomcat 6.x before 6.0.36 and 7.x before 7.0.32 allows remote attackers to bypass the cross-site request forgery (CSRF) protection mechanism via a request that lacks a session identifier.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat JBoss Web Server 2 | tomcat6 +9 | 6.0.35-6_patch_06.ep6.el5 | RHSA-2013:0266 |
| Red Hat JBoss Web Server 2 | tomcat7 +9 | 7.0.30-3_patch_02.ep6.el5 | RHSA-2013:0268 |
| Red Hat JBoss EAP 6 | jbossweb +1 | 7.0.17-4.Final_redhat_3.ep6.el5 | RHSA-2013:0647 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
imjdl/CVE-2012-4431 ★ 0 · Jul 3, 2019
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.apache.tomcat:tomcat | >= 6.0.0, < 6.0.36 | 6.0.36 | GHSA-76vr-72mv-mf3q |
| Maven | org.apache.tomcat:tomcat | >= 7.0.0, < 7.0.32 | 7.0.32 | GHSA-76vr-72mv-mf3q |
Advisories 3
- RHSA-2013:0647 Red Hat Security Advisory: jbossweb security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2013:0266 Red Hat Security Advisory: tomcat6 security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2013:0268 Red Hat Security Advisory: tomcat7 security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
References
- oval:org.mitre.oval:def:18541 vdb-entry signature
- SSRT101139 vendor-advisory
- 20121204 CVE-2012-4431 Apache Tomcat Bypass of CSRF prevention filter mailing-list
- openSUSE-SU-2013:0161 vendor-advisory
- USN-1685-1 vendor-advisory
- openSUSE-SU-2012:1700 vendor-advisory
- 56814 vdb-entry
- openSUSE-SU-2013:0192 vendor-advisory
- SSRT101182 vendor-advisory
- RHSA-2013:0268 vendor-advisory
- http://tomcat.apache.org/security-7.html
- RHSA-2013:0648 vendor-advisory
- 1027834 vdb-entry
- RHSA-2013:1437 vendor-advisory
- http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/catalina/filters/CsrfPreventionFilter.java?r1=1393088&r2=1393087&pathrev=1393088
- RHSA-2013:0647 vendor-advisory
- http://tomcat.apache.org/security-6.html
- 57126 third-party-advisory
- RHSA-2013:1853 vendor-advisory
- openSUSE-SU-2013:0147 vendor-advisory
- http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml?r1=1393088&r2=1393087&pathrev=1393088
- RHSA-2013:0267 vendor-advisory
- http://svn.apache.org/viewvc?view=revision&revision=1393088
- HPSBST02955 vendor-advisory
- openSUSE-SU-2012:1701 vendor-advisory