CVE-2009-2940
No exploitation reported by the sources we read.
- Published2009-10-22
- Fixed in4.1
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « 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- 2009-10-2216:30CVE publishedNVD
Versions per branch
OSV · NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 4.x | ≥ 4.0, < 4.1 | 4.1 | OSV |
| 3.8 | ≤ 3.8.1 | no fix published | OSV |
| 4.0 | ≥ 3.8.1, ≤ 4.0 | no fix published | OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 3.8 | = 3.8.1 | no fix published | NVD |
| 4.0 | = 4.0 | no fix published | NVD |
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
PyGreSQL: Missing a function to call PQescapeStringConn()
PyGreSQL.src as a component of Red Hat Enterprise Linux 6
Fix
- Update pygresql to 4.1
- No fix planned, says the vendor Red Hat Product Security CVE-2009-2940 · 1 productWill not fix
Advisories and patches
- secunia.comVendor Advisory
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-17
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVSS 2.07.5read 2026-10-23
- FIRST EPSSEPSS score2.7 %2026-11-16
- OSVaffected packages—
- GitHub AdvisoriesadvisoryHIGH2024-02-08
Identifiers
- EUVD-2022-5860same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-xv6x-43gq-4hfjsame flawGitHub Advisory Database · CC-BY-4.0
- PYSEC-2009-18same flawPyPA Advisory Database · CC-BY-4.0
- DSA-1911-1advisory covering several CVEsDebian · LicenseRef-unstated
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?
Is CVE-2009-2940 actively exploited?
What is the CVSS score for CVE-2009-2940?
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
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-xv6x-43gq-4hfj
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0