Description
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 in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | asyncpg | 0.21.0-1 | — |
| Debian 13 | asyncpg | 0.21.0-1 | — |
| Debian 12 | asyncpg | 0.21.0-1 | — |
| Debian 9 | asyncpg | 0.8.4-1+deb9u1 | DLA-2363-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | asyncpg | 0.20.0-1ubuntu0.1~esm1 | USN-9047-1 |
| Ubuntu Pro 18.04 LTS | asyncpg | 0.13.0-1ubuntu3+esm1 | USN-9047-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-asyncpg | 0.29.0-1.3 | openSUSE-SU-2026:11998-1, openSUSE-SU-2024:14132-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | asyncpg | < 0.21.0 | 0.21.0 | GHSA-2xpj-f5g2-8p7m |
Advisories 4
- USN-9047-1 asyncpg vulnerability Ubuntu Security Notices (USN) · Nov 12, 2026
- openSUSE-SU-2026:11998-1 python313-asyncpg-0.31.0-1.4 on GA media SUSE / openSUSE Security Updates · Oct 5, 2026
- DLA-2363-1 asyncpg - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:14132-1 python310-asyncpg-0.29.0-1.3 on GA media SUSE / openSUSE Security Updates · May 7, 2025