Asyncpg 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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | asyncpg | < 0.21.0 | 0.21.0 |
References
- https://github.com/MagicStack/asyncpg/releases/tag/v0.21.0
- https://lists.debian.org/debian-lts-announce/2020/09/msg00002.html
- https://github.com/advisories/GHSA-2xpj-f5g2-8p7m
- https://nvd.nist.gov/vuln/detail/CVE-2020-17446
- https://github.com/MagicStack/asyncpg/commit/69bcdf5bf7696b98ee708be5408fd7d854e910d0
- https://github.com/MagicStack/asyncpg
- https://github.com/pypa/advisory-database/tree/main/vulns/asyncpg/PYSEC-2020-24.yaml
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-824- Platform
- Python (PyPI)
- Package
asyncpg- Disclosed
- 12.08.2020
- Updated
- 11.10.2026 11:19
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2020-24 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-2xpj-f5g2-8p7m - CC BY 4.0
Vulnerability history: asyncpg
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.