Distro advisory · Debian 4
pygresql - missing escape function
Description
Vulnerability : missing escape function Problem type : remote Debian-specific: no CVE Id : CVE-2009-2940
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 the database connection as a first argument. The old function escape_string() has been preserved as well for backwards compatibility.
Developers using these bindings are encouraged to adjust their code to use the new function.
Manual fix · Debian 4
sudo apt-get updatesudo apt-get install --only-upgrade pygresqldpkg -s pygresql | grep VersionSources