Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. pg8000
  4. ›
  5. CVE-2025-61385

CVE-2025-61385: pg8000 SQL injection vulnerability via a specially crafted Python list input

October 27, 2025 (updated November 10, 2025)

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.

References

  • codeberg.org/tlocke/pg8000
  • codeberg.org/tlocke/pg8000/commit/8663c746b02286c32f19c385f0e2e5da9e4fa140
  • github.com/advisories/GHSA-wq2g-r956-j8cc
  • github.com/bmcyver/vulnerability-research/tree/main/CVE-2025-61385
  • nvd.nist.gov/vuln/detail/CVE-2025-61385

Code Behaviors & Features

Detect and mitigate CVE-2025-61385 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.31.5

Fixed versions

  • 1.31.5

Solution

Upgrade to version 1.31.5 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

pypi/pg8000/CVE-2025-61385.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:26 +0000.