CVE-2020-17446Magic Asyncpg
Critical 9.8 No auth needed
Follow: this CVE · Magic · Magic Asyncpg We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 2.4% probability of exploitation in 30 days · percentile 85
- Auth required
- No
- Published
- Aug 12, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-824
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Asyncpg.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | asyncpg |
< 0.21.0 |
0.21.0 |
pip install "asyncpg>=0.21.0" |
| PyPI | asyncpg |
< 0.21.0 |
0.21.0 |
pip install "asyncpg>=0.21.0" |
Per OSV / GitHub Advisories (GHSA-2xpj-f5g2-8p7m, PYSEC-2020-24). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| magic | asyncpg | < 0.21.0 |
| debian | debian_linux | 9.0 |
Official advisories
- python313-asyncpg-0.31.0-1.4 on GA media · SUSE · openSUSE-SU-2026:11998-1 · Oct 4, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Release Notes Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory