Skip to main content
VulnerabilityPublished Updated

CVE-2024-36039: Mycli · PyMySQL SQL Injection vulnerability

Affects mycliSource GCVE Database

0
Compare
Authoritative record:CVE-2024-36039· Medium 6.3

Not known to be exploited · CVSS 6.3 Medium : upgrade to 1.27.2_1 when convenient.

Data as of 17 Nov 2026, 19:19 UTC

CVSS 3.1 base score
6.3Medium
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 1.27.2_1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 21 May 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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 mycli to 1.27.2_1.

Affected software

ProductAffectedFixed in
Homebrewmyclipkg:brew/mycliOther threatsAffected
  • >=1.0.0 <1.27.2_1
Fixed in
  • 1.27.2_1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade mycli to version 1.27.2_1 or later, where this SQL injection vulnerability is fixed. No other mitigations are specified or required once the patch is applied.

Description

CVE-2024-36039 is a critical SQL injection vulnerability in PyMySQL versions through 1.1.0 when used by the mycli client with untrusted JSON input. The flaw arises because keys in JSON input are not properly escaped by the escape_dict function, allowing injection of malicious SQL code. This vulnerability affects mycli versions from 1.0.0 up to but not including 1.27.2_1. A fix is available in version 1.27.2_1.

References

Community reviews

Loading reviews…