{"id":"CVE-2024-36039","published":"2024-05-21T00:00:00Z","modified":"2024-11-21T15:27:54Z","title":"PyMySQL through 1.1.0 allows SQL injection if used with untrusted JSON input because keys are not escaped by escape_dict","vendor":null,"product":null,"tier":"tail","description":{"text":"PyMySQL through 1.1.0 allows SQL injection if used with untrusted JSON input because keys are not escaped by escape_dict.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00691,"percentile":0.53746,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/PyMySQL/PyMySQL/releases/tag/v1.1.1","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/05/msg00017.html","tags":["mailing-list"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/35VOJS3SRJNLQIO7YTZFNM6RWHIHWTMK/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/23VXBV34GFRICCVYZ6KFMSSWY5UEXCF5/","tags":["vendor-advisory"]}],"priority":{"score":20.2,"factors":[{"name":"EPSS percentile","points":10.75},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.41}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-03-26","earliestUrl":"https://github.com/zenniskayy2k4/CVE-2024-36039_PoC","repos":[{"name":"zenniskayy2k4/CVE-2024-36039_PoC","url":"https://github.com/zenniskayy2k4/CVE-2024-36039_PoC","stars":1,"created":"2026-03-26"}]},"first":{"date":"2026-03-26","source":"PoC-in-GitHub","url":"https://github.com/zenniskayy2k4/CVE-2024-36039_PoC"},"provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-06-12T15:05:27.823630Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pymysql","vulnerableRanges":["<1.1.1"],"patched":["1.1.1"],"from":["GHSA-v9hf-5j83-6xpp","PYSEC-2026-502"],"provenance":"source"}],"summary":{"text":"The flaw lies in PyMySQL, a Python MySQL client library, through version 1.1.0, in its escape_dict function, which fails to escape dictionary keys. An attacker who can supply untrusted JSON input that is used with the affected library can inject SQL through those keys, and exploiting it requires only low-privileged authentication with no user interaction, reachable over the network.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:32:50Z"},"euvd":{"id":"EUVD-2024-1798","exploited":false,"provenance":"source"}}