Skip to content

Asyncpg Arbitrary Code Execution Via Access to an Uninitialized Pointer

Critical severity GitHub Reviewed Published Apr 20, 2021 to the GitHub Advisory Database • Updated Aug 30, 2023

Package

pip asyncpg (pip)

Affected versions

< 0.21.0

Patched versions

0.21.0

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.

References

Published by the National Vulnerability Database Aug 12, 2020
Reviewed Apr 14, 2021
Published to the GitHub Advisory Database Apr 20, 2021
Last updated Aug 30, 2023

Severity

Critical
9.8
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CVE ID

CVE-2020-17446

GHSA ID

GHSA-2xpj-f5g2-8p7m

Source code

No known source code
Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.