{"cve":"CVE-2009-2940","nvd":{"published":"2009-10-22T16:30:00.250","modified":"2026-06-16T23:10:32.623","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":null,"cwes":[],"references":["http://secunia.com/advisories/37046","http://secunia.com/advisories/37654","http://ubuntu.com/usn/usn-870-1","http://www.debian.org/security/2009/dsa-1911","http://www.osvdb.org/59028"],"products":["pygresql:pygresql"],"source":"nvd","synced_at":"2026-10-19T19:54:26.868835795+00:00"},"epss":{"cve":"CVE-2009-2940","score":0.02702,"percentile":0.85945,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-xv6x-43gq-4hfj","url":"https://osv.dev/vulnerability/GHSA-xv6x-43gq-4hfj","summary":"PyGreSQL Might Be Vulnerable to Encoding-Based SQL Injection","modified":"2026-06-08T19:15:12.507974558Z","packages":[{"ecosystem":"PyPI","name":"pygresql","purl":"pkg:pypi/pygresql","ranges":["<=3.8.1"],"fixed":[]},{"ecosystem":"PyPI","name":"pygresql","purl":"pkg:pypi/pygresql","ranges":[">=4.0 <4.1"],"fixed":["4.1"]}]},{"id":"PYSEC-2009-18","url":"https://osv.dev/vulnerability/PYSEC-2009-18","summary":"","modified":"2026-06-10T17:01:44.540836585Z","packages":[{"ecosystem":"PyPI","name":"pygresql","purl":"pkg:pypi/pygresql","ranges":[">=3.8.1 <=4.0"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}