Skip to content

CVE-2009-2940 PyGreSQL Might Be Vulnerable to Encoding-Based SQL Injection

HighCVSS 7.5 EPSS 2.7%
Published
Updated
Exploit status
No public exploit known

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.

Affected products

ProductAffected versionsFixed in
pypi pygresql(PyPI) <= 3.8.1 No fix listed
pypi pygresql(PyPI) = 3.8.1 No fix listed
pypi pygresql(PyPI) >= 4.0, < 4.1 4.1
pypi pygresql(PyPI) = 4.0 No fix listed
pypi pygresql(PyPI) >= 3.8.1, <= 4.0 No fix listed
pygresql = 3.8.1 No fix listed
pygresql = 4.0 No fix listed
debian/pygresql(Debian:12) < 1:4.0-1 1:4.0-1
debian/pygresql(Debian:13) < 1:4.0-1 1:4.0-1
debian/pygresql(Debian:14) < 1:4.0-1 1:4.0-1

References