Skip to content
OpenAdvisories
Medium Public exploit CVE-2012-4431 EUVD-2022-2929GHSA-76vr-72mv-mf3q

Cross-Site Request Forgery in Apache Tomcat

Published Dec 19, 2012 · Updated Oct 9, 2026 · Assigned by redhat

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.

ReleasePackageFixed inAdvisory
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.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
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

References