Skip to main content
No exploitation reportedFix available

CVE-2009-2940

No exploitation reported by the sources we read.

  • Published2009-10-22
  • Fixed in4.1

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2009-10-2216:30CVE publishedNVD

Versions per branch

OSV · NVD
pygresql
BranchAffectedFixed in
4.x≥ 4.0, < 4.14.1
3.8≤ 3.8.1no fix published
4.0≥ 3.8.1, ≤ 4.0no fix published
Pygresqlversion to verify
BranchAffectedFixed in
3.8= 3.8.1no fix published
4.0= 4.0no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • pygresqlDebian:14all versions · fixed in 1:4.0-1
  • pygresqlDebian:13all versions · fixed in 1:4.0-1
  • pygresqlDebian:12all versions · fixed in 1:4.0-1
  • pygresqlDebian:5.0all versions · fixed in 1:3.8.1-3+lenny1
  • pygresqlDebian:4.0all versions · fixed in 1:3.8.1-1etch2

Vendor advisories

  • CVE-2009-2940 Red Hat Product Security1 known affected

    PyGreSQL: Missing a function to call PQescapeStringConn()

    PyGreSQL.src as a component of Red Hat Enterprise Linux 6

Full record on NVD

Fix

  1. Update pygresql to 4.1
  2. No fix planned, says the vendor Red Hat Product Security CVE-2009-2940 · 1 productWill not fix

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

Published
2009-10-22
Last Modified
2026-06-16
NVD status
Modified
GitHub Advisory
GHSA-xv6x-43gq-4hfj

Frequently asked questions

What is 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.

Is CVE-2009-2940 actively exploited?

Active exploitation of CVE-2009-2940 has not been confirmed. Its EPSS score was 2.7% on 2026-11-16, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2009-2940?

A CVSS score has not been assigned to CVE-2009-2940 yet.

Running pygresql? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Related vulnerabilities

Same product first, then the same vendor advisory and the same publication week.

Sources for this record