Advisory

GHSA-v9hf-5j83-6xpp

Also known as: CVE-2024-36039, PYSEC-2026-502

Summary

PyMySQL SQL Injection vulnerability

Details

PyMySQL through 1.1.0 allows SQL injection if used with untrusted JSON input because keys are not escaped by escape_dict.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2024-05-21 18:31 UTC
Modified
2026-11-16 16:15 UTC

Affected packages and fixes

pymysql

PyPI · All systems

Affected

  • introduced 0, fixed 1.1.1 (ecosystem)

Fixed versions

1.1.1

Fix

  • Fixed version 1.1.1
    pip install --upgrade pymysql==1.1.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences