Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. pymysql
  4. ›
  5. CVE-2024-36039

CVE-2024-36039: PyMySQL SQL Injection vulnerability

May 21, 2024

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

References

  • github.com/PyMySQL/PyMySQL
  • github.com/PyMySQL/PyMySQL/commit/521e40050cb386a499f68f483fefd144c493053c
  • github.com/PyMySQL/PyMySQL/releases/tag/v1.1.1
  • github.com/advisories/GHSA-v9hf-5j83-6xpp
  • nvd.nist.gov/vuln/detail/CVE-2024-36039

Code Behaviors & Features

Detect and mitigate CVE-2024-36039 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.1.1

Fixed versions

  • 1.1.1

Solution

Upgrade to version 1.1.1 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

pypi/pymysql/CVE-2024-36039.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:03 +0000.