Critical Security Update for python-setuptools: CVE-2022-40897

platform-python-setuptools Updated 02 Oct 2025

Summary

23/09/2024
N/A
Yes i
Medium
5.9

RHSA-2023:0835: Red Hat Security Advisory: python-setuptools security update. Affects platform-python-setuptools versions < 0:39.2.0-6.el8_7.1. Fixed in 0:39.2.0-6.el8_7.1. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

python-setuptools is a widely used package in the Python ecosystem that facilitates the packaging of Python projects. It provides essential tools for building and distributing Python packages, making it a cornerstone for developers who rely on Python for application development. However, vulnerabilities in this package can lead to significant security risks, affecting the integrity and confidentiality of applications that depend on it.

Vulnerability Detail

The vulnerability identified as CVE-2022-40897 affects python-setuptools and its variants, including platform-python-setuptools, python3-setuptools, and python3-setuptools-wheel. This issue arises from improper handling of certain inputs, which could allow an attacker to execute arbitrary code or cause denial of service. The ramifications of this vulnerability can be severe, potentially compromising the security of applications and systems that utilize these packages.

How To Fix

Minimum fixed version

0:39.2.0-6.el8_7.1

This is the first release that contains the fix.

sudo dnf update platform-python-setuptools

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If immediate updating is not feasible, consider isolating the affected applications or using alternative packaging methods until the update can be applied. Additionally, ensure that your environment is monitored for any suspicious activities that may arise due to this vulnerability.

Conclusion

In summary, the CVE-2022-40897 vulnerability in python-setuptools poses a significant security risk that can affect applications relying on this package. It is crucial to update to the patched version to mitigate potential threats. Regular monitoring and using tools like Vulert can help maintain the security of your software.

See every vulnerability recorded for platform-python-setuptools →

Share this vulnerability

FAQ

CVE-2022-40897 is a security vulnerability in python-setuptools that could allow an attacker to execute arbitrary code or cause denial of service.

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

Failing to fix this vulnerability could lead to unauthorized access, data breaches, and potential system compromise.

Yes, a patch is available in version 0:39.2.0-6.el8_7.1 for the affected packages.

The CVSS score for this vulnerability is 5.9, indicating a moderate level of risk.

Related vulnerabilities

Recent vulnerabilities recorded for platform-python-setuptools.

How To Fix

Minimum fixed version

0:39.2.0-6.el8_7.1

This is the first release that contains the fix.

sudo dnf update platform-python-setuptools

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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