---
id: CVE-2012-4431
title: >-
  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 sessio…
summary: >-
  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 sessio…
severity: medium
cvss: 4.3
cvssVector: 'AV:N/AC:M/Au:N/C:N/I:P/A:N'
cwe:
  - CWE-264
vendor: apache
product: tomcat
affected:
  - tomcat = 6.0
  - tomcat = 6.0.0
  - tomcat = 6.0.1
  - tomcat = 6.0.2
  - tomcat = 6.0.3
  - tomcat = 6.0.4
  - tomcat = 6.0.5
  - tomcat = 6.0.6
  - tomcat = 6.0.7
  - tomcat = 6.0.8
  - tomcat = 6.0.9
  - tomcat = 6.0.10
  - tomcat = 6.0.11
  - tomcat = 6.0.12
  - tomcat = 6.0.13
  - tomcat = 6.0.14
  - tomcat = 6.0.15
  - tomcat = 6.0.16
  - tomcat = 6.0.17
  - tomcat = 6.0.18
  - tomcat = 6.0.19
  - tomcat = 6.0.20
  - tomcat = 6.0.24
  - tomcat = 6.0.26
  - tomcat = 6.0.27
  - tomcat = 6.0.28
  - tomcat = 6.0.29
  - tomcat = 6.0.30
  - tomcat = 6.0.31
  - tomcat = 6.0.32
  - tomcat = 6.0.33
  - tomcat = 6.0.35
  - tomcat = 7.0.0
  - tomcat = 7.0.1
  - tomcat = 7.0.2
  - tomcat = 7.0.3
  - tomcat = 7.0.4
  - tomcat = 7.0.5
  - tomcat = 7.0.6
  - tomcat = 7.0.7
  - tomcat = 7.0.8
  - tomcat = 7.0.9
  - tomcat = 7.0.10
  - tomcat = 7.0.11
  - tomcat = 7.0.12
  - tomcat = 7.0.13
  - tomcat = 7.0.14
  - tomcat = 7.0.15
  - tomcat = 7.0.16
  - tomcat = 7.0.17
  - tomcat = 7.0.18
  - tomcat = 7.0.19
  - tomcat = 7.0.20
  - tomcat = 7.0.21
  - tomcat = 7.0.22
  - tomcat = 7.0.23
  - tomcat = 7.0.25
  - tomcat = 7.0.28
  - tomcat = 7.0.30
published: '2012-12-19'
updated: '2026-10-09'
sourceUpdated: '2026-10-09T20:17:04.243'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2012-4431'
references:
  - url: 'http://archives.neohapsis.com/archives/bugtraq/2012-12/0045.html'
    label: secalert@redhat.com
  - url: 'http://lists.opensuse.org/opensuse-updates/2012-12/msg00089.html'
    label: secalert@redhat.com
  - url: 'http://lists.opensuse.org/opensuse-updates/2012-12/msg00090.html'
    label: secalert@redhat.com
  - url: 'http://lists.opensuse.org/opensuse-updates/2013-01/msg00037.html'
    label: secalert@redhat.com
  - url: 'http://lists.opensuse.org/opensuse-updates/2013-01/msg00051.html'
    label: secalert@redhat.com
  - url: 'http://lists.opensuse.org/opensuse-updates/2013-01/msg00080.html'
    label: secalert@redhat.com
  - url: 'http://marc.info/?l=bugtraq&m=136612293908376&w=2'
    label: secalert@redhat.com
  - url: 'http://marc.info/?l=bugtraq&m=139344343412337&w=2'
    label: secalert@redhat.com
  - url: 'http://rhn.redhat.com/errata/RHSA-2013-0267.html'
    label: secalert@redhat.com
  - url: 'http://rhn.redhat.com/errata/RHSA-2013-0268.html'
    label: secalert@redhat.com
  - url: 'http://rhn.redhat.com/errata/RHSA-2013-0647.html'
    label: secalert@redhat.com
  - url: 'http://rhn.redhat.com/errata/RHSA-2013-0648.html'
    label: secalert@redhat.com
  - url: 'http://rhn.redhat.com/errata/RHSA-2013-1437.html'
    label: secalert@redhat.com
  - url: 'http://rhn.redhat.com/errata/RHSA-2013-1853.html'
    label: secalert@redhat.com
  - url: 'http://secunia.com/advisories/57126'
    label: secalert@redhat.com
  - url: >-
      http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/catalina/filters/CsrfPreventionFilter.java?r1=1393088&r2=1393087&pathrev=1393088
    label: secalert@redhat.com
  - url: >-
      http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml?r1=1393088&r2=1393087&pathrev=1393088
    label: secalert@redhat.com
  - url: 'http://svn.apache.org/viewvc?view=revision&revision=1393088'
    label: secalert@redhat.com
  - url: 'http://tomcat.apache.org/security-6.html'
    label: secalert@redhat.com
  - url: 'http://tomcat.apache.org/security-7.html'
    label: secalert@redhat.com
  - url: 'http://www.securityfocus.com/bid/56814'
    label: secalert@redhat.com
  - url: 'http://www.securitytracker.com/id?1027834'
    label: secalert@redhat.com
  - url: 'http://www.ubuntu.com/usn/USN-1685-1'
    label: secalert@redhat.com
  - url: >-
      https://h20566.www2.hp.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c03748878
    label: secalert@redhat.com
  - url: >-
      https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A18541
    label: secalert@redhat.com
  - url: 'http://archives.neohapsis.com/archives/bugtraq/2012-12/0045.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://lists.opensuse.org/opensuse-updates/2012-12/msg00089.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://lists.opensuse.org/opensuse-updates/2012-12/msg00090.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://lists.opensuse.org/opensuse-updates/2013-01/msg00037.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://lists.opensuse.org/opensuse-updates/2013-01/msg00051.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://lists.opensuse.org/opensuse-updates/2013-01/msg00080.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://marc.info/?l=bugtraq&m=136612293908376&w=2'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://marc.info/?l=bugtraq&m=139344343412337&w=2'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://rhn.redhat.com/errata/RHSA-2013-0267.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://rhn.redhat.com/errata/RHSA-2013-0268.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://rhn.redhat.com/errata/RHSA-2013-0647.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://rhn.redhat.com/errata/RHSA-2013-0648.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://rhn.redhat.com/errata/RHSA-2013-1437.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://rhn.redhat.com/errata/RHSA-2013-1853.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://secunia.com/advisories/57126'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/catalina/filters/CsrfPreventionFilter.java?r1=1393088&r2=1393087&pathrev=1393088
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml?r1=1393088&r2=1393087&pathrev=1393088
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://svn.apache.org/viewvc?view=revision&revision=1393088'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://tomcat.apache.org/security-6.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://tomcat.apache.org/security-7.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://www.securityfocus.com/bid/56814'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://www.securitytracker.com/id?1027834'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://www.ubuntu.com/usn/USN-1685-1'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://h20566.www2.hp.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c03748878
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A18541
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
  - exploit-available
epss: 0.09146
epssPercentile: 0.95207
exploits:
  github: 1
  githubRepos:
    - 'https://github.com/imjdl/CVE-2012-4431'
  checkedAt: '2026-10-09T21:13:16.221Z'
exploitAvailable: true
ingestedAt: '2026-10-09T21:12:42.311Z'
---

## Overview

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.

## Affected

- `tomcat = 6.0`
- `tomcat = 6.0.0`
- `tomcat = 6.0.1`
- `tomcat = 6.0.2`
- `tomcat = 6.0.3`
- `tomcat = 6.0.4`
- `tomcat = 6.0.5`
- `tomcat = 6.0.6`
- `tomcat = 6.0.7`
- `tomcat = 6.0.8`
- `tomcat = 6.0.9`
- `tomcat = 6.0.10`
- `tomcat = 6.0.11`
- `tomcat = 6.0.12`
- `tomcat = 6.0.13`
- `tomcat = 6.0.14`
- `tomcat = 6.0.15`
- `tomcat = 6.0.16`
- `tomcat = 6.0.17`
- `tomcat = 6.0.18`
- `tomcat = 6.0.19`
- `tomcat = 6.0.20`
- `tomcat = 6.0.24`
- `tomcat = 6.0.26`
- `tomcat = 6.0.27`
- `tomcat = 6.0.28`
- `tomcat = 6.0.29`
- `tomcat = 6.0.30`
- `tomcat = 6.0.31`
- `tomcat = 6.0.32`
- `tomcat = 6.0.33`
- `tomcat = 6.0.35`
- `tomcat = 7.0.0`
- `tomcat = 7.0.1`
- `tomcat = 7.0.2`
- `tomcat = 7.0.3`
- `tomcat = 7.0.4`
- `tomcat = 7.0.5`
- `tomcat = 7.0.6`
- `tomcat = 7.0.7`
- `tomcat = 7.0.8`
- `tomcat = 7.0.9`
- `tomcat = 7.0.10`
- `tomcat = 7.0.11`
- `tomcat = 7.0.12`
- `tomcat = 7.0.13`
- `tomcat = 7.0.14`
- `tomcat = 7.0.15`
- `tomcat = 7.0.16`
- `tomcat = 7.0.17`
- `tomcat = 7.0.18`
- `tomcat = 7.0.19`
- `tomcat = 7.0.20`
- `tomcat = 7.0.21`
- `tomcat = 7.0.22`
- `tomcat = 7.0.23`
- `tomcat = 7.0.25`
- `tomcat = 7.0.28`
- `tomcat = 7.0.30`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
