Extraction Flaw in Jython and Python Packages: CVE-2025-4435

pypy3 Updated 02 Oct 2025

Summary

03/06/2025
N/A
No i
Unrated
Not published

CVE-2025-4435: When using a TarFile.errorlevel = 0 and extracting with a filter the documented behavior is that any filtered members would be skipped and not extracted. Affects pypy3 across 8 version ranges.

< 9c1110ef6652687d7c55f590f909720eddde965a < 9e0ac76d96cf80b49055f6d6b9a6763fb9215c2a < 19de092debb3d7e832e5672cc2f7b788d35951da < 3612d8f51741b11f36f8fb0494d79086bac9390a < 4633f3f497b1ff70e4a35b6fe2c907cbe2d4cb2e < 28463dba112af719df1e8b0391c46787ad756dd9 < aa9eb5f757ceff461e6e996f12c89e5d9b583b01 < dd8f187d0746da151e0025c51680979ac5b4cfb1

No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Jython is an implementation of the Python programming language designed to run on the Java platform. It allows seamless integration of Python code with Java applications. The affected versions of Jython and Python packages in Debian ecosystems are vulnerable to a flaw in the TarFile extraction process, which can lead to unintended file extractions.

Vulnerability Detail

The vulnerability arises from a misconfiguration in the TarFile.errorlevel setting. When set to 0, the expected behavior is to skip filtered members during extraction. However, in the affected versions, members that should be filtered are still extracted, potentially leading to unauthorized access to sensitive files. This flaw can be exploited by attackers to manipulate the extraction process, resulting in security breaches.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can manually verify the contents of tar files before extraction to ensure that no sensitive files are included. Additionally, consider setting TarFile.errorlevel to a value other than 0 if feasible, to avoid unintended extractions.

Conclusion

CVE-2025-4435 presents a significant risk to users of Jython and Python packages in Debian due to a flaw in the tar file extraction process. It is crucial for users to update their packages promptly and consider workarounds until updates can be applied.

See every vulnerability recorded for pypy3 →

Share this vulnerability

FAQ

CVE-2025-4435 is a vulnerability affecting Jython and Python packages in Debian that allows unintended file extractions during the tar file extraction process.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

The main risk is unauthorized access to sensitive files that should not be extracted, which can lead to data breaches and security incidents.

Yes, users are advised to update their Jython and Python packages to the latest versions available in the Debian repositories to mitigate this vulnerability.

If immediate updates are not possible, consider implementing manual checks on tar files and adjusting the TarFile.errorlevel setting as a temporary measure.

Related vulnerabilities

Recent vulnerabilities recorded for pypy3.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback