CVE-2020-17446: Critical severity Magic Asyncpg vulnerability

Published Aug 12, 2020
·
Updated

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

5 affected componentsFixes available
pip/asyncpg<0.21.0
0.21.0
Magic Asyncpg<0.21.0
Debian Debian Linux=9.0
ubuntu/asyncpg<0.13.0-1ubuntu3+esm1
0.13.0-1ubuntu3+esm1
ubuntu/asyncpg<0.20.0-1ubuntu0.1~esm1
0.20.0-1ubuntu0.1~esm1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/asyncpg to a version that resolves this vulnerability.

    Fixed in 0.21.0
  2. Upgrade

    Upgrade ubuntu/asyncpg to a version that resolves this vulnerability.

    Fixed in 0.13.0-1ubuntu3+esm1
  3. Upgrade

    Upgrade ubuntu/asyncpg to a version that resolves this vulnerability.

    Fixed in 0.20.0-1ubuntu0.1~esm1

Event History

Aug 12, 2020
CVE Published
via MITRE·03:56 PM
Data Sourced
via MITRE·03:56 PM
Description
Data Sourced
via OSV·04:15 PM
DescriptionSeverityAffected Software
Apr 20, 2021
Advisory Published
via GitHub·04:30 PM

Frequently Asked Questions

1

What is the severity of CVE-2020-17446?

CVE-2020-17446 is categorized as a critical vulnerability due to its potential to execute arbitrary code.

2

How do I fix CVE-2020-17446?

To fix CVE-2020-17446, upgrade asyncpg to version 0.21.0 or later.

3

What is the impact of CVE-2020-17446 on PostgreSQL?

CVE-2020-17446 allows a malicious PostgreSQL server to crash or execute arbitrary code on the database client.

4

Which versions of asyncpg are affected by CVE-2020-17446?

CVE-2020-17446 affects asyncpg versions prior to 0.21.0.

5

Who is affected by CVE-2020-17446?

Users of asyncpg versions before 0.21.0 who connect to untrusted PostgreSQL servers are at risk from CVE-2020-17446.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203