Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

magicstack/asyncpg
master @ db8ecc2
2
Fixes
1
CVEs
CRITICAL
Peak severity
50.0%
Coverage
Highlights
Auth Bypass: 1 prior fix. Scrutinize any change in this area.
asyncpg/connect_utils.py: most-fixed (1 issue). Treat as high-risk during review.
1 high-severity fix in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Memory Corruption: An uninitialized pointer access and buffer overflow vulnerability exists in the array decoding implementation. A malicious or compromised PostgreSQL server can return crafted multidimensional array metadata to trigger a client-side crash or potential arbitrary code execution, as tracked under CVE-2020-17446. Ensure strict validation of all dimensions and bound checks before decoding elements.
Auth Bypass: Insecure SSL fallback mechanisms can cause the connection process to implicitly trust system-default root certificate authorities despite explicit, restrictive SSL modes configured for PostgreSQL. This bypass allows potential machine-in-the-middle attacks if an attacker can obtain a certificate signed by any trusted system CA.