PT-2009-5288

CVE-2009-2940

·

Published

2009-10-22

·

Updated

2022-05-02

Description by

CVSS 2.0
7.5
High
MetricsAV:N/AC:L/Au:N/C:P/I:P/A:P
Name of the Vulnerable Software and Affected Versions: PyGreSQL versions 3.8.1 and 4.0
Description: The issue arises from improper support of the PQescapeStringConn function in the pygresql module, potentially allowing remote attackers to exploit escaping issues involving multibyte character encodings. This can lead to SQL injections when processing certain multi-byte character sequences. The problem is due to PyGreSQL not using PostgreSQL's safe string and bytea functions in its own escaping functions.
Recommendations: For PyGreSQL version 3.8.1, adjust applications to use the new connection.escape string() and connection.escape bytea() functions instead of pg.escape string() and pg.escape bytea(). For PyGreSQL version 4.0, adjust applications to use the new connection.escape string() and connection.escape bytea() functions instead of pg.escape string() and pg.escape bytea().
Exploitability
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-XV6X-43GQ-4HFJ
DSA-1911-1
PYSEC-2009-18
Found an issue in the description? Have something to add? Feel free to write us 👾