{"id":"CVE-2024-36039","aliases":["GHSA-v9hf-5j83-6xpp","PYSEC-2026-502"],"url":"https://o3.security/vulnerability/CVE-2024-36039","summary":"PyMySQL SQL Injection vulnerability","details":"PyMySQL through 1.1.0 allows SQL injection if used with untrusted JSON input because keys are not escaped by escape_dict.","published":"2024-05-21T00:00:00Z","modified":"2026-08-12T03:51:39.342972725Z","cvss":{"score":6.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"},"epss":{"score":0.00691,"percentile":0.51197,"asOf":"2026-09-17"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"pymysql","fixedVersion":"1.1.1"}],"fix":{"url":"https://github.com/PyMySQL/PyMySQL/commit/521e40050cb386a499f68f483fefd144c493053c","label":"PyMySQL/PyMySQL@521e400"},"references":[{"type":"WEB","url":"https://github.com/PyMySQL/PyMySQL/releases/tag/v1.1.1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36039.json"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/23VXBV34GFRICCVYZ6KFMSSWY5UEXCF5/"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/35VOJS3SRJNLQIO7YTZFNM6RWHIHWTMK/"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-36039"},{"type":"ARTICLE","url":"https://lists.debian.org/debian-lts-announce/2024/05/msg00017.html"},{"type":"WEB","url":"https://github.com/PyMySQL/PyMySQL/commit/521e40050cb386a499f68f483fefd144c493053c"},{"type":"PACKAGE","url":"https://github.com/PyMySQL/PyMySQL"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/23VXBV34GFRICCVYZ6KFMSSWY5UEXCF5"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/35VOJS3SRJNLQIO7YTZFNM6RWHIHWTMK"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:39.342972725Z"}}