Skip to main content

CVE-2025-61385 — Vulnerability in pg8000 — CVE Details

HIGH

pg8000 SQL injection vulnerability via a specially crafted Python list input

Published October 27, 2025Updated July 7, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.69%). Schedule for your next planned update.

Does your project use an affected pg8000 version?

Paste your requirements.txt to check it for CVE-2025-61385 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my requirements.txt

Summary

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.

Advisory Timeline

  • First published October 27, 2025 (395 days ago).
  • Last revised July 7, 2026 — 253 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

pip
Update pg8000 to 1.31.5 or later
pip install "pg8000>=1.31.5"

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: PyPI (1).

PackageFixed In
pg8000 PyPI · Affected: 1.00, 1.01, 1.02, 1.03 (+96 more)1.31.5

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
—
Confidentiality
—
Integrity
—
Availability
—

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U

Frequently Asked Questions

What is CVE-2025-61385?
pg8000 SQL injection vulnerability via a specially crafted Python list input. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2025-61385?
CVE-2025-61385 affects pg8000. It has a 0.7% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-61385 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
0.69%
EPSS percentile: 47.8

This is a below-median EPSS score — only 47.8% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-wq2g-r956-j8cc
PYSEC-2026-1766

Related CVEs

  • CVE-2026-128139
    HIGH

    NLTK: XMLCorpusView comment and CDATA parsing permits quadratic CPU denial of service

  • CVE-2026-129222
    HIGH

    Natural Language Toolkit (NLTK): Uncontrolled recursion (crash DoS) in DependencyGraph.tree()/triples()

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my requirements.txt