Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
PyMySQL versions before 1.1.1 are vulnerable to SQL injection when untrusted JSON input is used, because dictionary keys are not escaped by escape_dict. The source does not say what level of access an attacker needs beyond supplying that input, or what data they could reach. Upgrade pymysql to version 1.1.1 or later.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 9.8 | Critical | 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | GitHub Advisory Database |
- CISA KEV Not listed.
- EPSS 0.0069, the 53rd percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 21 May 2024, 18:31 UTC Confirmed by GitHub Advisory Database
- 31 Oct 2026, 14:35 UTC First seen by agentprime
- 31 Oct 2026, 14:35 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-v9hf-5j83-6xpp
- OSV: GHSA-v9hf-5j83-6xpp
- nvd.nist.gov/vuln/detail/CVE-2024-36039
- github.com/PyMySQL/PyMySQL/commit/521e40050cb386a499f68f483fefd144c493053c
- github.com/PyMySQL/PyMySQL
- github.com/PyMySQL/PyMySQL/releases/tag/v1.1.1
- github.com/pypa/advisory-database/tree/main/vulns/pymysql/PYSEC-2026-502.yaml
- lists.debian.org/debian-lts-announce/2024/05/msg00017.html
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/23VXBV34GFRICCVYZ6KFMSSWY5UEXCF5
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/35VOJS3SRJNLQIO7YTZFNM6RWHIHWTMK
- pypi.org/project/pymysql