7.5
CVSSv2

CVE-2009-2940

Published: 22/10/2009 Updated: 19/12/2009
CVSS v2 Base Score: 7.5 | Impact Score: 6.4 | Exploitability Score: 10
VMScore: 668
Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P

Vulnerability Summary

The pygresql module 3.8.1 and 4.0 for Python does not properly support the PQescapeStringConn function, which might allow remote malicious users to leverage escaping issues involving multibyte character encodings.

Vulnerable Product Search on Vulmon Subscribe to Product

pygresql pygresql 3.8.1

pygresql pygresql 4.0

Vendor Advisories

Steffen Joeris discovered that PyGreSQL 38 did not use PostgreSQL’s safe string and bytea functions in its own escaping functions As a result, applications written to use PyGreSQL’s escaping functions are vulnerable to SQL injections when processing certain multi-byte character sequences Because the safe functions require a database connecti ...
It was discovered that pygresql, a PostgreSQL module for Python, was missing a function to call PQescapeStringConn() This is needed, because PQescapeStringConn() honours the charset of the connection and prevents insufficient escaping, when certain multibyte character encodings are used The new function is called pg_escape_string(), which takes t ...