CVE-2024-6232

HIGH

CPython < 3.8.20 - Denial of Service via TarFile Header Parsing ReDoS

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2024-6232. PoCs published by bgutowski.

AI-analyzed exploit summary This repository contains a functional exploit for CVE-2024-6232, leveraging a Python Tarfile realpath overflow to achieve local privilege escalation by adding a user to the sudoers file. The exploit crafts a malicious tar file that bypasses security filters and writes to /etc/sudoers.d/.

Description

There is a MEDIUM severity vulnerability affecting CPython. Regular expressions that allowed excessive backtracking during tarfile.TarFile header parsing are vulnerable to ReDoS via specifically-crafted tar archives.

Exploits (1)

github WORKING POC
by bgutowski · pythonpoc
https://github.com/bgutowski/CVE-2025-4517-POC-Sudoers

This repository contains a functional exploit for CVE-2024-6232, leveraging a Python Tarfile realpath overflow to achieve local privilege escalation by adding a user to the sudoers file. The exploit crafts a malicious tar file that bypasses security filters and writes to /etc/sudoers.d/.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Moderate
Reliability
Reliable
Target: Python tarfile module (versions affected by CVE-2024-6232)
No auth needed
Prerequisites: Local access to the target system · Ability to execute Python scripts · Write permissions to a directory where the tar file can be created
devstral-2 · analyzed Feb 19, 2026 Full analysis →

Scores

CVSS v3 7.5
EPSS 0.0220
EPSS Percentile 80.2%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable yes
Technical Impact partial

Details

CWE
CWE-1333
Status published
Products (2)
python/python 3.13.0 alpha0 (12 CPE variants)
python/python < 3.8.20
Published Sep 03, 2024
Tracked Since Feb 18, 2026