openEuler Security Advisory
OESA-2024-1719
python-PyMySQL security update
Details
This package contains a pure-Python MySQL client library, based on PEP 249. Most public APIs are compatible with mysqlclient and MySQLdb.
Security Fix(es):
PyMySQL through 1.1.0 allows SQL injection if used with untrusted JSON input because keys are not escaped by escape_dict.(CVE-2024-36039)
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| openEuler:20.03-LTS-SP4 | python-PyMySQL | All versions before 0.9.2-4.oe2003sp4 (fixed in 0.9.2-4.oe2003sp4) |
| openEuler:22.03-LTS-SP1 | python-PyMySQL | All versions before 0.9.3-4.oe2203sp1 (fixed in 0.9.3-4.oe2203sp1) |
| openEuler:22.03-LTS-SP3 | python-PyMySQL | All versions before 0.9.3-4.oe2203sp3 (fixed in 0.9.3-4.oe2203sp3) |
| openEuler:24.03-LTS | python-PyMySQL | All versions before 1.1.0-2.oe2403 (fixed in 1.1.0-2.oe2403) |