CVE-2024-36039: Dolphie · PyMySQL SQL Injection vulnerability
Affects dolphieSource GCVE Database
Not known to be exploited · CVSS 6.3 Medium : upgrade to 5.0.3 when convenient.
Data as of 17 Nov 2026, 19:37 UTC
- Patch
- Available – fixed in 5.0.3
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:LExploitation evidence
Disclosed: evidence found.
CVE published 21 May 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 16 Nov 2026.
What to do
Upgrade dolphie to 5.0.3.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewdolphiepkg:brew/dolphieOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade PyMySQL to version 5.0.3 or later, where this vulnerability is fixed. No other mitigation is necessary as the patch fully addresses the issue.
Description
CVE-2024-36039 is a critical SQL injection vulnerability in PyMySQL versions >=3.0.4 and <5.0.3. The flaw arises because the escape_dict function does not properly escape keys when handling untrusted JSON input, allowing attackers to inject malicious SQL. This vulnerability has a CVSS score of 9.8, indicating high severity with network attack vector and no privileges or user interaction required. The issue is fixed in version 5.0.3.
References
- nvd.nist.gov/vuln/detail/CVE-2024-36039 (opens in a new tab)
- github.com/PyMySQL/PyMySQL/commit/521e40050cb386a499f68f483fefd144c493053c (opens in a new tab)
- github.com/PyMySQL/PyMySQL (opens in a new tab)
- github.com/PyMySQL/PyMySQL/releases/tag/v1.1.1 (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/pymysql/PYSEC-2026-502.yaml (opens in a new tab)
- lists.debian.org/debian-lts-announce/2024/05/msg00017.html (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/23VXBV34GFRICCVYZ6KFMSSWY5UEXCF5 (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/35VOJS3SRJNLQIO7YTZFNM6RWHIHWTMK (opens in a new tab)
- pypi.org/project/pymysql (opens in a new tab)