{"id":"CVE-2024-36039","aliases":["CVE-2024-36039","GHSA-v9hf-5j83-6xpp","PYSEC-2026-502"],"related":[],"kind":"vulnerability","state":"published","title":"PyMySQL SQL Injection vulnerability","summary":"PyMySQL through 1.1.0 allows SQL injection if used with untrusted JSON input because keys are not escaped by escape_dict.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"PyMySQL through 1.1.0 allows SQL injection if used with untrusted JSON input because keys are not escaped by escape_dict.","source":"cvelist"},{"lang":"en","text":"PyMySQL through 1.1.0 allows SQL injection if used with untrusted JSON input because keys are not escaped by `escape_dict`.","format":"markdown","source":"ghsa"},{"lang":"es","text":"PyMySQL hasta 1.1.0 permite la inyección de SQL si se usa con entradas JSON que no son de confianza porque escape_dict no escapa las claves.","source":"nvd"}],"published":"2024-05-21T00:00:00.000Z","modified":"2026-11-16T16:15:05.337Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.1.1"}],"ecosystem":"PyPI","package":"pymysql","purl":"pkg:pypi/pymysql","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.1.1"}],"ecosystem":"PyPI","package":"pymysql","purl":"pkg:pypi/pymysql","source":"pysec"}],"references":[{"url":"https://github.com/PyMySQL/PyMySQL/releases/tag/v1.1.1","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/05/msg00017.html","tags":["mailing-list","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/35VOJS3SRJNLQIO7YTZFNM6RWHIHWTMK/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/23VXBV34GFRICCVYZ6KFMSSWY5UEXCF5/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-36039","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/PyMySQL/PyMySQL/commit/521e40050cb386a499f68f483fefd144c493053c","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/PyMySQL/PyMySQL","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pymysql/PYSEC-2026-502.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/23VXBV34GFRICCVYZ6KFMSSWY5UEXCF5","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/35VOJS3SRJNLQIO7YTZFNM6RWHIHWTMK","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/pymysql","tags":["package","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/advisories/GHSA-v9hf-5j83-6xpp","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-06-12T15:05:27.823Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-36039","url":"https://www.cve.org/CVERecord?id=CVE-2024-36039","licence":"CVE Terms of Use","modified":"2024-11-21T15:27:54.677Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v9hf-5j83-6xpp","url":"https://github.com/advisories/GHSA-v9hf-5j83-6xpp","licence":"CC-BY-4.0","modified":"2026-11-16T16:15:05.337Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-36039","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-36039","licence":"Public domain","modified":"2026-06-17T07:36:00.780Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-502","url":"https://osv.dev/vulnerability/PYSEC-2026-502","licence":"CC-BY-4.0","modified":"2026-07-01T20:23:03.004Z"}],"updatedAt":"2026-11-25T22:58:40.695Z","epss":{"score":0.00685,"percentile":0.53873,"date":"2026-12-01T12:00:22.000Z"}}