CVE
CVE-2024-36039
published medium CVSS 3.1 · 6.3python-pymysql: SQL injection if used with untrusted JSON input
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| AlmaLinux | 8 | python3.11-PyMySQL | Advisory build | 1.0.2-2.el8_10 | ALSA-2024:4244 |
| Debian | bookworm | python-pymysql | Advisory build | 1.0.2-2+deb12u1 | DSA-5700-1 |
| Oracle Linux | 8 | python3.11-PyMySQLaarch64 | Advisory build | 0:1.0.2-2.el8_10 | ELSA-2024-4244 |
| Red Hat Enterprise Linux | RHEL-8 | python3.11-PyMySQLnoarch | Advisory build | 1.0.2-2.el8_10 | RHSA-2024:4244 |
| SUSE / openSUSE | SLE-15-SP5 | python3-PyMySQLnoarch | Advisory build | 0.7.11-150000.3.3.1 | SUSE-SU-2024:1855-1 |
| Ubuntu | focal | python-pymysql | Advisory build | 0.9.3-2ubuntu3.1 | USN-6801-1 |
| Rocky Linux | 8 | python3.11-PyMySQLnoarch | Listed in advisory | Not stated | RLSA-2024:4244 |
Show 64 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 8 | python3.12-PyMySQL | Advisory build | 1.1.0-3.el8_10 | ALSA-2024:4245 |
| AlmaLinux | 9 | python3.11-PyMySQL | Advisory build | 1.0.2-2.el9 | ALSA-2024:9194 |
| AlmaLinux | 9 | python3.11-PyMySQL+rsa | Advisory build | 1.0.2-2.el9 | ALSA-2024:9194 |
| AlmaLinux | 9 | python3.12-PyMySQL | Advisory build | 1.1.0-3.el9 | ALSA-2024:9193 |
| AlmaLinux | 9 | python3.12-PyMySQL+rsa | Advisory build | 1.1.0-3.el9 | ALSA-2024:9193 |
| Debian | bullseye | python-pymysql | Advisory build | 0.9.3-2+deb11u1 | DSA-5700-1 |
| Debian | buster | python-pymysql | Advisory build | 0.9.3-1+deb10u1 | DLA-3822-1 |
| Oracle Linux | 8 | python3.11-PyMySQLx86_64 | Advisory build | 0:1.0.2-2.el8_10 | ELSA-2024-4244 |
| Oracle Linux | 8 | python3.12-PyMySQLaarch64 | Advisory build | 0:1.1.0-3.el8_10 | ELSA-2024-4245 |
| Oracle Linux | 8 | python3.12-PyMySQLx86_64 | Advisory build | 0:1.1.0-3.el8_10 | ELSA-2024-4245 |
| Oracle Linux | 9 | python3.11-PyMySQLaarch64 | Advisory build | 0:1.0.2-2.el9 | ELSA-2024-9194 |
| Oracle Linux | 9 | python3.11-PyMySQLx86_64 | Advisory build | 0:1.0.2-2.el9 | ELSA-2024-9194 |
| Oracle Linux | 9 | python3.11-PyMySQL+rsaaarch64 | Advisory build | 0:1.0.2-2.el9 | ELSA-2024-9194 |
| Oracle Linux | 9 | python3.11-PyMySQL+rsax86_64 | Advisory build | 0:1.0.2-2.el9 | ELSA-2024-9194 |
| Oracle Linux | 9 | python3.12-PyMySQLaarch64 | Advisory build | 0:1.1.0-3.el9 | ELSA-2024-9193 |
| Oracle Linux | 9 | python3.12-PyMySQLx86_64 | Advisory build | 0:1.1.0-3.el9 | ELSA-2024-9193 |
| Oracle Linux | 9 | python3.12-PyMySQL+rsaaarch64 | Advisory build | 0:1.1.0-3.el9 | ELSA-2024-9193 |
| Oracle Linux | 9 | python3.12-PyMySQL+rsax86_64 | Advisory build | 0:1.1.0-3.el9 | ELSA-2024-9193 |
| Red Hat Enterprise Linux | RHEL-8 | python3.11-PyMySQLsrc | Advisory build | 1.0.2-2.el8_10 | RHSA-2024:4244 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-PyMySQLnoarch | Advisory build | 1.1.0-3.el8_10 | RHSA-2024:4245 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-PyMySQLsrc | Advisory build | 1.1.0-3.el8_10 | RHSA-2024:4245 |
| Red Hat Enterprise Linux | RHEL-9 | python3.11-PyMySQLnoarch | Advisory build | 1.0.2-2.el9 | RHSA-2024:9194 |
| Red Hat Enterprise Linux | RHEL-9 | python3.11-PyMySQLsrc | Advisory build | 1.0.2-2.el9 | RHSA-2024:9194 |
| Red Hat Enterprise Linux | RHEL-9 | python3.11-PyMySQL+rsanoarch | Advisory build | 1.0.2-2.el9 | RHSA-2024:9194 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12-PyMySQLnoarch | Advisory build | 1.1.0-3.el9 | RHSA-2024:9193 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12-PyMySQLsrc | Advisory build | 1.1.0-3.el9 | RHSA-2024:9193 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12-PyMySQL+rsanoarch | Advisory build | 1.1.0-3.el9 | RHSA-2024:9193 |
| SUSE / openSUSE | SLE-15-SP6 | python3-PyMySQLnoarch | Advisory build | 0.7.11-150000.3.3.1 | SUSE-SU-2024:1855-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | python3-PyMySQLnoarch | Advisory build | 0.7.11-150000.3.3.1 | SUSE-SU-2024:1855-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python311-PyMySQLnoarch | Advisory build | 1.1.0-150600.3.3.1 | SUSE-SU-2024:1925-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-PyMySQLaarch64 | Advisory build | 1.1.1-1.1 | OPENSUSE-SU-2024:13993-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-PyMySQLppc64le | Advisory build | 1.1.1-1.1 | OPENSUSE-SU-2024:13993-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-PyMySQLs390x | Advisory build | 1.1.1-1.1 | OPENSUSE-SU-2024:13993-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-PyMySQLx86_64 | Advisory build | 1.1.1-1.1 | OPENSUSE-SU-2024:13993-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-PyMySQLaarch64 | Advisory build | 1.1.1-1.1 | OPENSUSE-SU-2024:13993-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-PyMySQLppc64le | Advisory build | 1.1.1-1.1 | OPENSUSE-SU-2024:13993-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-PyMySQLs390x | Advisory build | 1.1.1-1.1 | OPENSUSE-SU-2024:13993-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-PyMySQLx86_64 | Advisory build | 1.1.1-1.1 | OPENSUSE-SU-2024:13993-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-PyMySQLaarch64 | Advisory build | 1.1.1-1.1 | OPENSUSE-SU-2024:13993-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-PyMySQLppc64le | Advisory build | 1.1.1-1.1 | OPENSUSE-SU-2024:13993-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-PyMySQLs390x | Advisory build | 1.1.1-1.1 | OPENSUSE-SU-2024:13993-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-PyMySQLx86_64 | Advisory build | 1.1.1-1.1 | OPENSUSE-SU-2024:13993-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-PyMySQLaarch64 | Advisory build | 1.2.0-1.2 | OPENSUSE-SU-2026:11995-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-PyMySQLppc64le | Advisory build | 1.2.0-1.2 | OPENSUSE-SU-2026:11995-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-PyMySQLs390x | Advisory build | 1.2.0-1.2 | OPENSUSE-SU-2026:11995-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-PyMySQLx86_64 | Advisory build | 1.2.0-1.2 | OPENSUSE-SU-2026:11995-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-PyMySQLaarch64 | Advisory build | 1.2.0-1.2 | OPENSUSE-SU-2026:11995-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-PyMySQLppc64le | Advisory build | 1.2.0-1.2 | OPENSUSE-SU-2026:11995-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-PyMySQLs390x | Advisory build | 1.2.0-1.2 | OPENSUSE-SU-2026:11995-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-PyMySQLx86_64 | Advisory build | 1.2.0-1.2 | OPENSUSE-SU-2026:11995-1 |
| Ubuntu | focal | python3-pymysql | Advisory build | 0.9.3-2ubuntu3.1 | USN-6801-1 |
| Ubuntu | jammy | python-pymysql | Advisory build | 1.0.2-1ubuntu1.22.04.1 | USN-6801-1 |
| Ubuntu | jammy | python3-pymysql | Advisory build | 1.0.2-1ubuntu1.22.04.1 | USN-6801-1 |
| Ubuntu | noble | python-pymysql | Advisory build | 1.0.2-2ubuntu1.1 | USN-6801-1 |
| Ubuntu | noble | python3-pymysql | Advisory build | 1.0.2-2ubuntu1.1 | USN-6801-1 |
| Rocky Linux | 8 | python3.11-PyMySQLsrc | Listed in advisory | Not stated | RLSA-2024:4244 |
| Rocky Linux | 8 | python3.12-PyMySQLnoarch | Listed in advisory | Not stated | RLSA-2024:4245 |
| Rocky Linux | 8 | python3.12-PyMySQLsrc | Listed in advisory | Not stated | RLSA-2024:4245 |
| Rocky Linux | 9 | python3.11-PyMySQLnoarch | Listed in advisory | Not stated | RLSA-2024:9194 |
| Rocky Linux | 9 | python3.11-PyMySQLsrc | Listed in advisory | Not stated | RLSA-2024:9194 |
| Rocky Linux | 9 | python3.11-PyMySQL+rsanoarch | Listed in advisory | Not stated | RLSA-2024:9194 |
| Rocky Linux | 9 | python3.12-PyMySQLnoarch | Listed in advisory | Not stated | RLSA-2024:9193 |
| Rocky Linux | 9 | python3.12-PyMySQLsrc | Listed in advisory | Not stated | RLSA-2024:9193 |
| Rocky Linux | 9 | python3.12-PyMySQL+rsanoarch | Listed in advisory | Not stated | RLSA-2024:9193 |
Description
PyMySQL through 1.1.0 allows SQL injection if used with untrusted JSON input because keys are not escaped by escape_dict.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.3 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
2- n/a
- CWE-89 CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
References
4- https://github.com/PyMySQL/PyMySQL/releases/tag/v1.1.1
- [debian-lts-announce] 20240527 [SECURITY] [DLA 3822-1] python-pymysql security update https://lists.debian.org/debian-lts-announce/2024/05/msg00017.html
- FEDORA-2024-b26f07d27b https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/23VXBV34GFRICCVYZ6KFMSSWY5UEXCF5/
- FEDORA-2024-e7141ab284 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/35VOJS3SRJNLQIO7YTZFNM6RWHIHWTMK/
Provider assertions
3mitre · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 89b619a41ed15f1a5eedff7d9d3f9f0e3f1976dba7cf6173b7d321296241c00b
- Ingested
- 23 Sep 2026, 08:24:05 UTC
- Source record
- Official CVE record