Critical Security Update for python3.11-PyMySQL: CVE-2024-36039

python3.11-PyMySQL Updated 02 Oct 2025

Summary

14/09/2024
N/A
Yes i
Medium
6.3

RHSA-2024:4244: Red Hat Security Advisory: python3.11-PyMySQL security update. Affects python3.11-PyMySQL versions < 0:1.0.2-2.el8_10. Fixed in 0:1.0.2-2.el8_10. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

python3.11-PyMySQL is a Python library that allows developers to interact with MySQL databases using Python. It provides a simple and efficient way to execute SQL queries and manage database connections. However, it has been identified with a security vulnerability that could potentially expose sensitive data or allow unauthorized access to the database.

Vulnerability Detail

The vulnerability identified as CVE-2024-36039 affects python3.11-PyMySQL, allowing attackers to exploit weaknesses in the library. This could lead to unauthorized access to sensitive information, data leakage, or even complete control over the database. The vulnerability arises from improper handling of certain inputs, which can be manipulated by an attacker to execute arbitrary code or queries.

How To Fix

Minimum fixed version

0:1.0.2-2.el8_10

This is the first release that contains the fix.

sudo dnf update python3.11-PyMySQL

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

Workaround

As a temporary workaround, you can restrict access to the affected application or database until the package is updated. Additionally, consider implementing input validation to mitigate the risk of exploitation.

Conclusion

In summary, the python3.11-PyMySQL library has a critical vulnerability (CVE-2024-36039) that requires immediate attention. Updating to the latest patched version is crucial to protect your database from potential exploitation. Utilize tools like Vulert to monitor and assess your applications for vulnerabilities effectively.

See every vulnerability recorded for python3.11-PyMySQL →

Share this vulnerability

FAQ

CVE-2024-36039 is a security vulnerability in the python3.11-PyMySQL library that could allow unauthorized access to MySQL databases.

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

The risks include unauthorized access to sensitive data, data leakage, and potential control over the database by attackers.

Yes, a patch is available. You can update to version 0:1.0.2-2.el8_10 or later to mitigate the vulnerability.

If immediate updates are not possible, consider implementing input validation and restricting access to the affected application or database.

Related vulnerabilities

Recent vulnerabilities recorded for python3.11-PyMySQL.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

0:1.0.2-2.el8_10

This is the first release that contains the fix.

sudo dnf update python3.11-PyMySQL

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