CVEfocus › CVE database › CVE-2024-36039

CVE-2024-36039

CVSS 6.3 MediumEPSS 0.9% (higher than 57% of CVEs)Published 2024-05-21Updated 2024-11-21Assigner: mitre

PyMySQL through 1.1.0 allows SQL injection if used with untrusted JSON input because keys are not escaped by escape_dict.

CWE-89

What to do

Fixed builds are available from AlmaLinux, Debian, PyPI, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

23Fixed
2Fix pending
6Will not fix
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04python-pymysqlFixed1.0.2-2ubuntu1.1UBUNTU-CVE-2024-36039
Ubuntu 22.04python-pymysqlFixed1.0.2-1ubuntu1.22.04.1UBUNTU-CVE-2024-36039
Ubuntu 20.04python-pymysqlFixed0.9.3-2ubuntu3.1UBUNTU-CVE-2024-36039
Ubuntu 18.04python-pymysqlFix pendingUBUNTU-CVE-2024-36039
Ubuntu 16.04python-pymysqlFix pendingUBUNTU-CVE-2024-36039
Debian 14python-pymysqlFixed1.1.1-1DEBIAN-CVE-2024-36039
Debian 13python-pymysqlFixed1.1.1-1DEBIAN-CVE-2024-36039
Debian 12python-pymysqlFixed1.0.2-2+deb12u1DEBIAN-CVE-2024-36039
Red Hat Enterprise Linux 10python3-PyMySQLNot affected
Red Hat Enterprise Linux 10python3-PyMySQL+rsaNot affected
Red Hat Enterprise Linux 9python3-PyMySQLWill not fix
Will not fix
Red Hat Enterprise Linux 9python3.11-PyMySQLFixed0:1.0.2-2.el9RHSA-2024:9194
Red Hat Enterprise Linux 9python3.11-PyMySQL+rsaFixed0:1.0.2-2.el9RHSA-2024:9194
Red Hat Enterprise Linux 9python3.12-PyMySQLFixed0:1.1.0-3.el9RHSA-2024:9193
Red Hat Enterprise Linux 9python3.12-PyMySQL+rsaFixed0:1.1.0-3.el9RHSA-2024:9193
Red Hat Enterprise Linux 8python-PyMySQLWill not fix
Will not fix
Red Hat Enterprise Linux 8python2-PyMySQLWill not fix
Will not fix
Red Hat Enterprise Linux 8python3-PyMySQLWill not fix
Will not fix
Red Hat Enterprise Linux 8python3.11-PyMySQLFixed0:1.0.2-2.el8_10RHSA-2024:4244
Red Hat Enterprise Linux 8python3.12-PyMySQLFixed0:1.1.0-3.el8_10RHSA-2024:4245
Red Hat Enterprise Linux 8python38-PyMySQLWill not fix
Will not fix
Red Hat Enterprise Linux 8python39-PyMySQLWill not fix
Will not fix
AlmaLinux 9python3.11-PyMySQLFixed1.0.2-2.el9ALSA-2024:9194
AlmaLinux 9python3.11-PyMySQL+rsaFixed1.0.2-2.el9ALSA-2024:9194
AlmaLinux 9python3.12-PyMySQLFixed1.1.0-3.el9ALSA-2024:9193
AlmaLinux 9python3.12-PyMySQL+rsaFixed1.1.0-3.el9ALSA-2024:9193
AlmaLinux 8python3.11-PyMySQLFixed1.0.2-2.el8_10ALSA-2024:4244
AlmaLinux 8python3.12-PyMySQLFixed1.1.0-3.el8_10ALSA-2024:4245
Rocky Linux 9python3.11-PyMySQLFixed0:1.0.2-2.el9RLSA-2024:9194
Rocky Linux 9python3.12-PyMySQLFixed0:1.1.0-3.el9RLSA-2024:9193
Rocky Linux 8python3.11-PyMySQLFixed0:1.0.2-2.el8_10RLSA-2024:4244
Rocky Linux 8python3.12-PyMySQLFixed0:1.1.0-3.el8_10RLSA-2024:4245
PyPI librarypymysqlFixed1.1.1PYSEC-2026-502

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.