{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2009-2940","id":"CVE-2009-2940","title":"PyGreSQL Might Be Vulnerable to Encoding-Based SQL Injection","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.","descriptionLong":"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.","published":"2009-10-22T16:00:00.000Z","updated":"2026-06-16T23:10:32.623Z","reserved":"2009-08-23T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"NVD"},"metrics":[{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"NVD"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"pygresql","purl":"pkg:pypi/pygresql","ranges":["<=3.8.1",">=4.0 <4.1",">=3.8.1 <=4.0"],"fixed":["4.1"],"advisory":"GHSA-xv6x-43gq-4hfj"}],"cwes":["CWE-89"],"aliases":["GHSA-xv6x-43gq-4hfj","PYSEC-2009-18"],"references":[{"url":"http://secunia.com/advisories/37046","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory"]},{"url":"http://www.debian.org/security/2009/dsa-1911","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","advisory","web"]},{"url":"http://www.osvdb.org/59028","tags":["vdb-entry","x_refsource_OSVDB","x_transferred","web"]},{"url":"http://ubuntu.com/usn/usn-870-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","web"]},{"url":"http://secunia.com/advisories/37654","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2009-2940","tags":["advisory"]},{"url":"https://github.com/PyGreSQL/PyGreSQL/commit/8e19320b130946eed6f043297e3e4e005a523612","tags":["web"]},{"url":"https://github.com/PyGreSQL/PyGreSQL/commit/f7237d773e6f4d5a7da3d99bb6bc5062bd07935e","tags":["web"]},{"url":"https://github.com/PyGreSQL/PyGreSQL","tags":["package"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pygresql/PYSEC-2009-18.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-xv6x-43gq-4hfj","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.02702,"epssPercentile":0.86234,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2009-2940","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2009-2940","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2009-2940","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-xv6x-43gq-4hfj","ok":true,"note":"GHSA-xv6x-43gq-4hfj"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2009-2940","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}