Multiple vulnerabilities have been identified in PostgreSQL, which could be exploited by remote attackers to bypass security restrictions and execute arbitrary SQL commands.
The first issue is due to an input validation error when handling a parameter containing invalidly-encoded multibyte characters, which could be exploited by malicious people to bypass standard string-escaping methods and conduct SQL injection attacks via a supposedly secure script.
The second issue is due to an error when escaping ASCII single quote "'" characters (by turning them into "\'") and operating in multibyte encodings (e.g. SJIS, BIG5, GBK, GB18030, or UHC) that allow using the "0x5c" ASCII code (backslash) as the trailing byte of a multibyte character, which could be exploited by attackers to inject arbitrary SQL queries.
Credits
Vulnerabilities reported by Akio Ishida and Yasuo Ohgaki
ChangeLog
2006-05-23 : Initial release
Vulnerability Management
Subscribe to FrSIRT VNS and receive real-time e-mail and SMS alerts when new vulnerabilities, exploits, or patches relevant to your systems and network configurations are available.
Feedback
If you have additional information or corrections for this security advisory please submit them via our contact form or by email to updates@frsirt.com.