Advisory

GHSA-wq2g-r956-j8cc

Also known as: CVE-2025-61385, PYSEC-2026-1766

Summary

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2025-10-27 18:31 UTC
Modified
2026-07-07 17:56 UTC

Affected packages and fixes

pg8000

PyPI · All systems

Affected

  • introduced 0, fixed 1.31.5 (ecosystem)

Fixed versions

1.31.5

Fix

  • Fixed version 1.31.5
    pip install --upgrade pg8000==1.31.5

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences