CVE-2009-2940Pygresql
High 7.5 No auth needed
Follow: this CVE · Pygresql · Pygresql We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 2.0
- 7.5
- EPSS
- 2.7% probability of exploitation in 30 days · percentile 87
- Auth required
- No
- Published
- Oct 22, 2009
- Updated
- Jun 16, 2026
- Category
- Application · Cross-platform
- Vector
AV:N/AC:L/Au:N/C:P/I:P/A:P
What happens
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.
What to do
- Apply the vendor's security update for Pygresql.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | pygresql |
≤ 3.8.1 |
no fixed version | — |
| PyPI | pygresql |
≥ 4.0 < 4.1 |
4.1 |
pip install "pygresql>=4.1" |
| PyPI | pygresql |
≥ 3.8.1 ≤ 4.0 |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-xv6x-43gq-4hfj, PYSEC-2009-18). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| pygresql | pygresql | 3.8.1 |
| pygresql | pygresql | 4.0 |
Official sources
References
Links published by the sources. Open them with care.
- secunia.com Vendor Advisory
- secunia.com
- ubuntu.com
- www.debian.org
- www.osvdb.org