ADVISORIES

Red Hat VEX

RHVEX-CVE-2024-36039

python-pymysql: SQL injection if used with untrusted JSON input

Moderate No fix available CVE-2024-36039

Details

A flaw was found in PyMySQL. When processing untrusted JSON input, keys are not escaped by the escape_dict function due to insufficient input sanitization, allowing an attacker to inject malicious SQL queries.

Affected packages

EcosystemPackageAffected versions
Red Hat:enterprise_linux:8python-PyMySQL
All versions, will not be fixed
Red Hat:enterprise_linux:8python2-PyMySQL
All versions, will not be fixed
Red Hat:enterprise_linux:8python3-PyMySQL
All versions, will not be fixed
Red Hat:enterprise_linux:8python38-PyMySQL
All versions, will not be fixed
Red Hat:enterprise_linux:8python39-PyMySQL
All versions, will not be fixed
Red Hat:enterprise_linux:9python3-PyMySQL
All versions, will not be fixed

References