Live threats

All CVEs / Magic

CVE-2020-17446Magic Asyncpg

Critical 9.8 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Asyncpg.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
magicasyncpg< 0.21.0
debiandebian_linux9.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.