Live threats

All CVEs / Pygresql

CVE-2009-2940Pygresql

High 7.5 No auth needed

Priority
60
CVSS 2.0
7.5
EPSS
2.7%
probability of exploitation in 30 days · percentile 87
Auth required
No
Published
Oct 22, 2009
Updated
Jun 16, 2026
Category
Application · Cross-platform
Vector
AV:N/AC:L/Au:N/C:P/I:P/A:P

What happens

The pygresql module 3.8.1 and 4.0 for Python does not properly support the PQescapeStringConn function, which might allow remote attackers to leverage escaping issues involving multibyte character encodings.

Original NVD text.

What to do

  1. Apply the vendor's security update for Pygresql.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI pygresql ≤ 3.8.1 no fixed version —
PyPI pygresql ≥ 4.0 < 4.1 4.1 pip install "pygresql>=4.1"
PyPI pygresql ≥ 3.8.1 ≤ 4.0 no fixed version —

Per OSV / GitHub Advisories (GHSA-xv6x-43gq-4hfj, PYSEC-2009-18). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
pygresqlpygresql3.8.1
pygresqlpygresql4.0

Official sources

References

Links published by the sources. Open them with care.