PyPA Advisory Database
PYSEC-2026-1766
pg8000 SQL injection vulnerability via a specially crafted Python list input
Details
SQL injection vulnerability in tlocke pg8000 1.31.4 allows remote attackers to execute arbitrary SQL commands via a specially crafted Python list input to function pg8000.native.literal.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | pg8000 | All versions before 1.31.5 (fixed in 1.31.5) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-61385
- https://codeberg.org/tlocke/pg8000
- https://codeberg.org/tlocke/pg8000/commit/8663c746b02286c32f19c385f0e2e5da9e4fa140
- https://github.com/bmcyver/vulnerability-research/tree/main/CVE-2025-61385
- https://pypi.org/project/pg8000
- https://github.com/advisories/GHSA-wq2g-r956-j8cc