CVSS 3.1
6.3 mediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:LMedium (6.3). EPSS 0.7% estimated probability of exploitation activity in the next 30 days. Fixed in pymysql 1.1.1.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:Lpymysql (PyPI): fixed in 1.1.1Explain CVE-2024-36039 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-36039?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-36039?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-36039 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-v9hf-5j83-6xpp | PyPI | pymysql | <1.1.1 | 1.1.1 |
| PYSEC-2026-502 | PyPI | pymysql | <1.1.1 | 1.1.1 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 10 | python-pymysql | 0.9.3-1+deb10u1 | DLA-3822-1 |
| Debian | 11 | python-pymysql | 0.9.3-2+deb11u1 | DSA-5700-1 |
| Debian | 12 | python-pymysql | 1.0.2-2+deb12u1 | DEBIAN-CVE-2024-36039 DSA-5700-1 |
| Debian | 13, 14 | python-pymysql | 1.1.1-1 | DEBIAN-CVE-2024-36039 |
| Ubuntu | 16.04:LTS, 18.04:LTS | python-pymysql | no fix listed | UBUNTU-CVE-2024-36039 |
| Ubuntu | 20.04:LTS | python-pymysql | 0.9.3-2ubuntu3.1 | UBUNTU-CVE-2024-36039 USN-6801-1 |
| Ubuntu | 22.04:LTS | python-pymysql | 1.0.2-1ubuntu1.22.04.1 | UBUNTU-CVE-2024-36039 USN-6801-1 |
| Ubuntu | 24.04:LTS | python-pymysql | 1.0.2-2ubuntu1.1 | UBUNTU-CVE-2024-36039 USN-6801-1 |
| Red Hat | enterprise_linux:8::appstream | python3.11-PyMySQL | 0:1.0.2-2.el8_10 | RHSA-2024:4244 |
| Red Hat | enterprise_linux:8::appstream | python3.12-PyMySQL | 0:1.1.0-3.el8_10 | RHSA-2024:4245 |
| Red Hat | enterprise_linux:9::appstream | python3.11-PyMySQL, python3.11-PyMySQL+rsa | 0:1.0.2-2.el9 | RHSA-2024:9194 |
| Red Hat | enterprise_linux:9::appstream | python3.12-PyMySQL, python3.12-PyMySQL+rsa | 0:1.1.0-3.el9 | RHSA-2024:9193 |
| SUSE | Linux Enterprise Module for Package Hub 15 SP5, Linux Enterprise Module for Package Hub 15 SP6 | python-PyMySQL | 0.7.11-150000.3.3.1 | SUSE-SU-2024:1855-1 |
| openSUSE | Leap 15.5 | python-PyMySQL | 0.7.11-150000.3.3.1 | SUSE-SU-2024:1855-1 |
| openSUSE | Leap 15.6 | python-PyMySQL | 1.1.0-150600.3.3.1 | SUSE-SU-2024:1925-1 |
| openSUSE | Tumbleweed | python-PyMySQL | 1.2.0-1.2 | openSUSE-SU-2026:11995-1 |
| AlmaLinux | 8 | python3.11-PyMySQL | 1.0.2-2.el8_10 | ALSA-2024:4244 |
| AlmaLinux | 8 | python3.12-PyMySQL | 1.1.0-3.el8_10 | ALSA-2024:4245 |
| AlmaLinux | 9 | python3.11-PyMySQL, python3.11-PyMySQL+rsa | 1.0.2-2.el9 | ALSA-2024:9194 |
| AlmaLinux | 9 | python3.12-PyMySQL, python3.12-PyMySQL+rsa | 1.1.0-3.el9 | ALSA-2024:9193 |
| Rocky Linux | 8 | python3.11-PyMySQL | 0:1.0.2-2.el8_10 | RLSA-2024:4244 |
| Rocky Linux | 8 | python3.12-PyMySQL | 0:1.1.0-3.el8_10 | RLSA-2024:4245 |
| Rocky Linux | 9 | python3.12-PyMySQL | 0:1.1.0-3.el9 | RLSA-2024:9193 |
| Azure Linux | 2 | python-PyMySQL | no fix listed | AZL-43726 |
| Azure Linux | 3 | python-PyMySQL | 1.1.1-3 | AZL-44457 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.
Red Hat rates this Moderate.
Applications not exposed to untrusted JSON input are not vulnerable to this issue. Additionally, exploitation of this vulnerability depends on the permissions granted to the database user, limiting the security impact. For this reason, this flaw was rated with a Moderate severity.
Make sure the permissions are set correctly for each user, database, table, operation, etc. Do not expose the PyMySQL library to untrusted JSON input.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | python3.11-PyMySQL-0:1.0.2-2.el8_10 | Fixed 2024-07-02 | RHSA-2024:4244 |
| Red Hat Enterprise Linux 8 | python3.12-PyMySQL-0:1.1.0-3.el8_10 | Fixed 2024-07-02 | RHSA-2024:4245 |
| Red Hat Enterprise Linux 9 | python3.12-PyMySQL-0:1.1.0-3.el9 | Fixed 2024-11-12 | RHSA-2024:9193 |
| Red Hat Enterprise Linux 9 | python3.11-PyMySQL-0:1.0.2-2.el9 | Fixed 2024-11-12 | RHSA-2024:9194 |
| Red Hat Quay 3 | quay/clair-rhel8:v3.12.1-1 | Fixed 2024-08-19 | RHBA-2024:5039 |
| Red Hat Quay 3 | quay/quay-bridge-operator-bundle:v3.12.1-3 | Fixed 2024-08-19 | RHBA-2024:5039 |
| Red Hat Quay 3 | quay/quay-bridge-operator-rhel8:v3.12.1-3 | Fixed 2024-08-19 | RHBA-2024:5039 |
| Red Hat Quay 3 | quay/quay-builder-qemu-rhcos-rhel8:v3.12.1-1 | Fixed 2024-08-19 | RHBA-2024:5039 |
| Red Hat Quay 3 | quay/quay-builder-rhel8:v3.12.1-1 | Fixed 2024-08-19 | RHBA-2024:5039 |
| Red Hat Quay 3 | quay/quay-container-security-operator-bundle:v3.12.1-3 | Fixed 2024-08-19 | RHBA-2024:5039 |
| Red Hat Quay 3 | quay/quay-container-security-operator-rhel8:v3.12.1-3 | Fixed 2024-08-19 | RHBA-2024:5039 |
| Red Hat Quay 3 | quay/quay-operator-bundle:v3.12.1-13 | Fixed 2024-08-19 | RHBA-2024:5039 |
| Red Hat Quay 3 | quay/quay-operator-rhel8:v3.12.1-3 | Fixed 2024-08-19 | RHBA-2024:5039 |
| Red Hat Quay 3 | quay/quay-rhel8:v3.12.1-11 | Fixed 2024-08-19 | RHBA-2024:5039 |
| Red Hat Enterprise Linux 10 | python-PyMySQL | Not affected | |
| Red Hat Enterprise Linux 8 | python27:2.7/python-PyMySQL | Will not fix | |
| Red Hat Enterprise Linux 8 | python36:3.6/python-PyMySQL | Will not fix | |
| Red Hat Enterprise Linux 8 | python39:3.9/python-PyMySQL | Will not fix | |
| Red Hat Enterprise Linux 9 | python-PyMySQL | Will not fix | |
| Red Hat Software Collections | rh-python38-python-PyMySQL | Will not fix |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-36039.
Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.