Security mailing lists by PureSourceCode

CVE-2009-2940

HIGH 7.5CVSS 2.0

PyGreSQL Might Be Vulnerable to Encoding-Based SQL Injection

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
22 Oct 2009
Last modified
16 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-89
Also known as
GHSA-xv6x-43gq-4hfjPYSEC-2009-18
Sources
NVDJSONOSV GHSA-xv6x-43gq-4hfjJSONOSV PYSEC-2009-18JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 2.0 HIGH 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD pygresql pygresql
cpe:2.3:a:pygresql:pygresql:3.8.1:*:*:*:*:*:*:*
= 3.8.1
NVD pygresql pygresql
cpe:2.3:a:pygresql:pygresql:4.0:*:*:*:*:*:*:*
= 4.0
OSV PyPI pygresql <= 3.8.1
OSV PyPI pygresql >= 4.0, < 4.1 4.1
OSV PyPI pygresql >= 3.8.1, <= 4.0

References

History

  • 25 Nov 2026 20:15 UTC · NVD: first stored (published 22 Oct 2009)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 22 Oct 2009)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 2 May 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.