SQL Injection Affecting pg8000 package, versions [,1.31.5)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-PG8000-13723709
  • published28 Oct 2025
  • disclosed27 Oct 2025
  • creditUnknown

Introduced: 27 Oct 2025

NewCVE-2025-61385  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade pg8000 to version 1.31.5 or higher.

Overview

pg8000 is a PostgreSQL interface library

Affected versions of this package are vulnerable to SQL Injection via the literal function. An attacker can execute arbitrary SQL commands by supplying a specially crafted Python list as input.

CVSS Base Scores

version 4.0
version 3.1