CVE-2020-17446
CRITICAL 9.8CVSS 3.1Asyncpg Arbitrary Code Execution Via Access to an Uninitialized Pointer
asyncpg before 0.21.0 allows a malicious PostgreSQL server to trigger a crash or execute arbitrary code (on a database client) via a crafted server response, because of access to an uninitialized pointer in the array data decoder.
- Published
- 12 Aug 2020
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-824
- Also known as
- GHSA-2xpj-f5g2-8p7mPYSEC-2020-24
- Sources
- NVDJSONOSV GHSA-2xpj-f5g2-8p7mJSONOSV PYSEC-2020-24JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | magic | asyncpgcpe:2.3:a:magic:asyncpg:*:*:*:*:*:*:*:* |
< 0.21.0 | 0.21.0 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| OSV | PyPI | asyncpg | < 0.21.0 | 0.21.0 |
References
- https://github.com/MagicStack/asyncpg/releases/tag/v0.21.0 · Patch, Release Notes, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2020/09/msg00002.html · Mailing List, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-17446 · ADVISORY
- https://github.com/MagicStack/asyncpg/commit/69bcdf5bf7696b98ee708be5408fd7d854e910d0 · WEB
- https://github.com/MagicStack/asyncpg · PACKAGE
- https://github.com/advisories/GHSA-2xpj-f5g2-8p7m · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/asyncpg/PYSEC-2020-24.yaml · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 12 Aug 2020)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 12 Aug 2020)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 20 Apr 2021)