CRITICAL 9.8 PyPI
PyMySQL SQL Injection vulnerability
GHSA-v9hf-5j83-6xpp · CVE-2024-36039 · PYSEC-2026-502
Published · Modified
AI SAST
Find this class of vulnerability in your own code
Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.
Description
PyMySQL through 1.1.0 allows SQL injection if used with untrusted JSON input because keys are not escaped by escape_dict.
References
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2024-36039
- WEB https://github.com/PyMySQL/PyMySQL/commit/521e40050cb386a499f68f483fefd144c493053c
- PACKAGE https://github.com/PyMySQL/PyMySQL
- WEB https://github.com/PyMySQL/PyMySQL/releases/tag/v1.1.1
- WEB https://github.com/pypa/advisory-database/tree/main/vulns/pymysql/PYSEC-2026-502.yaml
- WEB https://lists.debian.org/debian-lts-announce/2024/05/msg00017.html
- WEB https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/23VXBV34GFRICCVYZ6KFMSSWY5UEXCF5
- WEB https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/35VOJS3SRJNLQIO7YTZFNM6RWHIHWTMK
- WEB https://pypi.org/project/pymysql
Ready to move
Start Securing
Free, no credit card | First findings in minutes