ADVISORIES

Vulnerability

CVE-2009-2940

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.

5 advisories report this vulnerability, across 3 ecosystems.

High severity All Debian 2PyPI 2Red Hat 1

Advisories

  • DEBIAN-CVE-2009-2940

    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.

    CVE-2009-2940 Debian Updated 23 October 2026
  • DSA-1911-1

    pygresql - missing escape function

    CVE-2009-2940 Debian Updated 20 November 2026
  • GHSA-xv6x-43gq-4hfj

    PyGreSQL Might Be Vulnerable to Encoding-Based SQL Injection

    High CVE-2009-2940 PyPI Updated 8 June 2026
  • PYSEC-2009-18

    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.

    CVE-2009-2940 PyPI Updated 10 June 2026
  • RHVEX-CVE-2009-2940

    PyGreSQL: Missing a function to call PQescapeStringConn()

    Moderate CVE-2009-2940 Red Hat Updated 5 November 2026

References