Critical Buffer Overflow Vulnerability in Python3 Package - CVE-2022-37454

python3 Updated 02 Oct 2025

Summary

21/10/2022
N/A
Yes i
Critical
9.8

ALPINE-CVE-2022-37454: The Keccak XKCP SHA-3 reference implementation before fdc6fef has an integer overflow and resultant buffer overflow that allows attackers to execute arbitrary code or eliminate expected cryptographic properties. Affects python3 versions < 3.10.9-r0. Fixed in 3.10.9-r0. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Python3 package in Alpine Linux is a widely used implementation of the Python programming language, known for its simplicity and versatility in various applications, including web development, data analysis, and automation. This package is integral to many software projects, making its security paramount. The vulnerability identified as CVE-2022-37454 affects versions of Python3 in Alpine Linux distributions v3.16 and v3.17, exposing users to potential security risks.

Vulnerability Detail

CVE-2022-37454 is a critical vulnerability stemming from an integer overflow and subsequent buffer overflow in the Keccak XKCP SHA-3 reference implementation. This flaw allows attackers to execute arbitrary code or compromise the expected cryptographic properties of the software. The vulnerability arises in the sponge function interface, which is a core component of the SHA-3 hashing algorithm. The CVSS score for this vulnerability is 9.8, indicating a high severity level that necessitates immediate attention.

How To Fix

Minimum fixed version

3.10.9-r0

This is the first release that contains the fix.

sudo apk add --upgrade python3

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

Workaround

As a temporary measure, users may consider avoiding the use of the affected SHA-3 functions until the package is updated. However, this is not a long-term solution and should only be used if immediate patching is not feasible.

Conclusion

CVE-2022-37454 represents a significant security threat to users of the Python3 package in Alpine Linux. It is crucial for users to update to the patched version to mitigate risks associated with this vulnerability. Regular monitoring and prompt updates are essential for maintaining software security.

See every vulnerability recorded for python3 →

Share this vulnerability

FAQ

CVE-2022-37454 is a critical vulnerability in the Python3 package for Alpine Linux, caused by an integer overflow leading to a buffer overflow.

The vulnerability can allow attackers to execute arbitrary code or compromise cryptographic integrity, posing significant security risks.

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

If immediate updates are not possible, consider avoiding the use of the affected SHA-3 functions as a temporary workaround.

The CVSS score for this vulnerability is 9.8, indicating a critical level of severity that requires urgent action.

Related vulnerabilities

Recent vulnerabilities recorded for python3.

How To Fix

Minimum fixed version

3.10.9-r0

This is the first release that contains the fix.

sudo apk add --upgrade python3

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