Insufficient Logging Affecting python-psycopg2 package, versions *


Severity

Recommended
0.0
low
0
10

Based on CentOS security rating.

Threat Intelligence

EPSS
0.2% (11th percentile)

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 IDSNYK-CENTOS8-PYTHONPSYCOPG2-15630352
  • published15 Mar 2026
  • disclosed4 Mar 2026

Introduced: 4 Mar 2026

CVE-2026-2297  (opens in a new tab)
CWE-778  (opens in a new tab)

How to fix?

There is no fixed version for Centos:8 python-psycopg2.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python-psycopg2 package and not the python-psycopg2 package as distributed by Centos. See How to fix? for Centos:8 relevant fixed versions and status.

The import hook in CPython that handles legacy *.pyc files (SourcelessFileLoader) is incorrectly handled in FileLoader (a base class) and so does not use io.open_code() to read the .pyc files. sys.audit handlers for this audit event therefore do not fire.

CVSS Base Scores

version 3.1