CVE-2020-17446
Asyncpg Arbitrary Code Execution Via Access to an Uninitialized Pointer
Reported by mitre · Published August 12, 2020
asyncpg is fixed in 0.21.0 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| asyncpg | PyPI | 0.21.0 |
| asyncpg | magic | 0.21.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| PyPI | asyncpg | 0 |
| n/a | n/a | * |
Timeline
- Aug 12, 2020 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Sep 12, 2024 CVE Updated
- Mar 9, 2026 Security Advisory
- Sep 3, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-17446
vulnetix vdb fixes CVE-2020-17446
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-17446/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- [debian-lts-announce] 20200902 [SECURITY] [DLA 2363-1] asyncpg security update mailing-listx_refsource_MLIST
- https://nvd.nist.gov/vuln/detail/CVE-2020-17446 advisory
- https://github.com/advisories/GHSA-2xpj-f5g2-8p7m advisory
- https://github.com/MagicStack/asyncpg/commit/69bcdf5bf7696b98ee708be5408fd7d854e910d0 patch
- https://github.com/MagicStack/asyncpg url
- https://github.com/pypa/advisory-database/tree/main/vulns/asyncpg/PYSEC-2020-24.yaml advisory