CVE catalog

CVE-2024-36039

PyMySQL vulnerability

[CVE catalog]

Severity
High · CVSS 8.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.69% · Oct 25, 2026

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

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpython-pymysqlsid1.2.0-1fixed
Debianpython-pymysqlforky1.2.0-1fixed
Debianpython-pymysqltrixie1.1.1-2fixed
Debianpython-pymysqlbookworm1.0.2-2+deb12u1fixed
Debianpython-pymysqlbookworm-security1.0.2-2+deb12u1fixed
Ubuntupython-pymysqlnoble1.0.2-2ubuntu1.1fixed
Ubuntupython-pymysql-docnoble1.0.2-2ubuntu1.1fixed
Ubuntupython3-pymysqlnoble1.0.2-2ubuntu1.1fixed
Opensusepython-PyMySQLtumbleweed1.2.0-1.2fixed
Ubuntupython-pymysql20.040.9.3-1vulnerable
Ubuntupython-pymysql20.040.9.3-2ubuntu1vulnerable
Ubuntupython-pymysql20.040.9.3-2ubuntu3vulnerable
Ubuntupython-pymysql20.040.9.3-2ubuntu3.1fixed
Ubuntupython-pymysql22.041.0.2-1ubuntu1vulnerable
Ubuntupython-pymysql22.041.0.2-1ubuntu1.22.04.1fixed
Ubuntupython-pymysql24.041.0.2-1ubuntu1vulnerable
Ubuntupython-pymysql24.041.0.2-2ubuntu1vulnerable
Ubuntupython-pymysql24.041.0.2-2ubuntu1.1fixed
Ubuntupython-pymysql16.040.6.2-2vulnerable
Ubuntupython-pymysql16.040.7.2-1vulnerable
Ubuntupython-pymysql16.040.7.2-1ubuntu1vulnerable
Ubuntupython-pymysql18.040.7.11-1vulnerable
Ubuntupython-pymysql18.040.8.0-1vulnerable
Ubuntupython-pymysql20.040.9.3-1vulnerable
Ubuntupython-pymysql20.040.9.3-2ubuntu1vulnerable
Ubuntupython-pymysql20.040.9.3-2ubuntu3vulnerable
Ubuntupython-pymysql20.040.9.3-2ubuntu3.1fixed
Ubuntupython-pymysql22.041.0.2-1ubuntu1vulnerable
Ubuntupython-pymysql22.041.0.2-1ubuntu1.22.04.1fixed
Ubuntupython-pymysql24.041.0.2-1ubuntu1vulnerable
Ubuntupython-pymysql24.041.0.2-2ubuntu1vulnerable
Ubuntupython-pymysql24.041.0.2-2ubuntu1.1fixed
Susepython-PyMySQLlinux enterprise module for package hub 15 sp50.7.11-150000.3.3.1fixed
Susepython-PyMySQLlinux enterprise module for package hub 15 sp60.7.11-150000.3.3.1fixed
Opensusepython-PyMySQLleap 15.50.7.11-150000.3.3.1fixed
Opensusepython-PyMySQLleap 15.61.1.0-150600.3.3.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpython-pymysqlsourcesid1.1.1-1not yet assignedNot reported[1071628]
Debianpython-pymysqlsourceforky1.1.1-1not yet assignedNot reported[1071628]
Debianpython-pymysqlsourcetrixie1.1.1-1not yet assignedNot reported[1071628]
Debianpython-pymysqlsourcebookworm1.0.2-2+deb12u1not yet assignedNot reported[1071628]
Ubuntupython-pymysqldebnoble1.0.2-2ubuntu1.1Not reportedNot reportedNot reported
Ubuntupython-pymysql-docdebnoble1.0.2-2ubuntu1.1Not reportedNot reportedNot reported
Ubuntupython3-pymysqldebnoble1.0.2-2ubuntu1.1Not reportedNot reportedNot reported
Opensusepython-PyMySQLrpmtumbleweed1.2.0-1.2Not reportedOPENSUSE-SU-2026:11995-1Not reported
Ubuntupython-pymysqldeb20.040.9.3-2ubuntu3.1Not reportedUSN-6801-1Not reported
Ubuntupython-pymysqldeb22.041.0.2-1ubuntu1.22.04.1Not reportedUSN-6801-1Not reported
Ubuntupython-pymysqldeb24.041.0.2-2ubuntu1.1Not reportedUSN-6801-1Not reported
Ubuntupython-pymysqldeb20.040.9.3-2ubuntu3.1Not reportedUBUNTU-CVE-2024-36039Not reported
Ubuntupython-pymysqldeb22.041.0.2-1ubuntu1.22.04.1Not reportedUBUNTU-CVE-2024-36039Not reported
Ubuntupython-pymysqldeb24.041.0.2-2ubuntu1.1Not reportedUBUNTU-CVE-2024-36039Not reported
Susepython-PyMySQLrpmlinux enterprise module for package hub 15 sp50.7.11-150000.3.3.1Not reportedSUSE-SU-2024:1855-1Not reported
Susepython-PyMySQLrpmlinux enterprise module for package hub 15 sp60.7.11-150000.3.3.1Not reportedSUSE-SU-2024:1855-1Not reported
Opensusepython-PyMySQLrpmleap 15.50.7.11-150000.3.3.1Not reportedSUSE-SU-2024:1855-1Not reported
Opensusepython-PyMySQLrpmleap 15.61.1.0-150600.3.3.1Not reportedSUSE-SU-2024:1925-1Not reported

[Debian bug #1071628]

OpenFactory catalog packages

[openSUSE Tumbleweed]

  • Source package: [python-PyMySQL]

    Details (1)
    • 1.2.0-1.2 · noarch · tumbleweed

      Unknown · Fixed: 1.2.0-1.2

      Version impact unknown

      usn · python-PyMySQL · opensuse · tumbleweed

  • Source package: [python-PyMySQL]

    Details (1)
    • 1.2.0-1.2 · noarch · tumbleweed

      Unknown · Fixed: 1.2.0-1.2

      Version impact unknown

      usn · python-PyMySQL · opensuse · tumbleweed

[Debian 12 (Bookworm)]

  • Source package: [python-pymysql]

    Details (4)
    • 1.0.2-2+deb12u1 · all · bookworm

      Fixed · Fixed: 1.0.2-2+deb12u1

      usn · python-pymysql · debian · bookworm; usn · python-pymysql · debian · 12

    • 1.0.2-2+deb12u1 · all · bookworm

      Fixed · Fixed: 1.0.2-2+deb12u1

      usn · python-pymysql · debian · bookworm; usn · python-pymysql · debian · 12

    • 1.0.2-2+deb12u1 · all · bookworm-security

      Fixed · Fixed: 1.0.2-2+deb12u1

      usn · python-pymysql · debian · bookworm; usn · python-pymysql · debian · 12

    • 1.0.2-2+deb12u1 · all · bookworm-security

      Fixed · Fixed: 1.0.2-2+deb12u1

      usn · python-pymysql · debian · bookworm; usn · python-pymysql · debian · 12

  • Source package: [python-pymysql]

    Details (4)
    • 1.0.2-2+deb12u1 · all · bookworm

      Fixed · Fixed: 1.0.2-2+deb12u1

      usn · python-pymysql · debian · bookworm; usn · python-pymysql · debian · 12

    • 1.0.2-2+deb12u1 · all · bookworm

      Fixed · Fixed: 1.0.2-2+deb12u1

      usn · python-pymysql · debian · bookworm; usn · python-pymysql · debian · 12

    • 1.0.2-2+deb12u1 · all · bookworm-security

      Fixed · Fixed: 1.0.2-2+deb12u1

      usn · python-pymysql · debian · bookworm; usn · python-pymysql · debian · 12

    • 1.0.2-2+deb12u1 · all · bookworm-security

      Fixed · Fixed: 1.0.2-2+deb12u1

      usn · python-pymysql · debian · bookworm; usn · python-pymysql · debian · 12

[Debian 13 (Trixie)]

  • Source package: [python-pymysql]

    Details (2)
    • 1.1.1-2 · all · trixie

      Fixed · Fixed: 1.1.1-1

      usn · python-pymysql · debian · 13

    • 1.1.1-2 · all · trixie

      Fixed · Fixed: 1.1.1-1

      usn · python-pymysql · debian · 13

  • Source package: [python-pymysql]

    Details (2)
    • 1.1.1-2 · all · trixie

      Fixed · Fixed: 1.1.1-1

      usn · python-pymysql · debian · 13

    • 1.1.1-2 · all · trixie

      Fixed · Fixed: 1.1.1-1

      usn · python-pymysql · debian · 13

Observed:

References