CVE-2006-2314
PostgreSQL 8.1.x before 8.1.4, 8.0.x before 8.0.8, 7.4.x before 7.4.13, 7.3.x before 7.3.15, and earlier versions allows context-dependent attackers to bypass SQL injection protection methods in applications that use multibyte encodings that allow the "\" (backslash) byte 0x5c to be the trailing byte of a multibyte character, such as SJIS, BIG5, GBK, GB18030, and UHC, which cannot be handled correctly by a client that does not understand multibyte encodings, aka a second variant of "Encoding-Based SQL Injection." NOTE: it could be argued that this is a class of issue related to interaction errors between the client and PostgreSQL, but a CVE has been assigned since PostgreSQL is treating this as a preventative measure against this class of problem.
What to do
Fixed builds are available from Debian, Red Hat: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Debian 14 | pygresql | Fixed | 3.8-1.1 | DEBIAN-CVE-2006-2314 |
| Debian 13 | pygresql | Fixed | 3.8-1.1 | DEBIAN-CVE-2006-2314 |
| Debian 12 | pygresql | Fixed | 3.8-1.1 | DEBIAN-CVE-2006-2314 |
| Red Hat Enterprise Linux 4 | postgresql | Fixed | 0:7.4.13-2.RHEL4.1 | RHSA-2006:0526 |
| Red Hat Enterprise Linux 4 | postgresql-contrib | Fixed | 0:7.4.13-2.RHEL4.1 | RHSA-2006:0526 |
| Red Hat Enterprise Linux 4 | postgresql-devel | Fixed | 0:7.4.13-2.RHEL4.1 | RHSA-2006:0526 |
| Red Hat Enterprise Linux 4 | postgresql-docs | Fixed | 0:7.4.13-2.RHEL4.1 | RHSA-2006:0526 |
| Red Hat Enterprise Linux 4 | postgresql-jdbc | Fixed | 0:7.4.13-2.RHEL4.1 | RHSA-2006:0526 |
| Red Hat Enterprise Linux 4 | postgresql-libs | Fixed | 0:7.4.13-2.RHEL4.1 | RHSA-2006:0526 |
| Red Hat Enterprise Linux 4 | postgresql-pl | Fixed | 0:7.4.13-2.RHEL4.1 | RHSA-2006:0526 |
| Red Hat Enterprise Linux 4 | postgresql-python | Fixed | 0:7.4.13-2.RHEL4.1 | RHSA-2006:0526 |
| Red Hat Enterprise Linux 4 | postgresql-server | Fixed | 0:7.4.13-2.RHEL4.1 | RHSA-2006:0526 |
| Red Hat Enterprise Linux 4 | postgresql-tcl | Fixed | 0:7.4.13-2.RHEL4.1 | RHSA-2006:0526 |
| Red Hat Enterprise Linux 4 | postgresql-test | Fixed | 0:7.4.13-2.RHEL4.1 | RHSA-2006:0526 |
| Red Hat Enterprise Linux 3 | rh-postgresql | Fixed | 0:7.3.15-2 | RHSA-2006:0526 |
| Red Hat Enterprise Linux 3 | rh-postgresql-contrib | Fixed | 0:7.3.15-2 | RHSA-2006:0526 |
| Red Hat Enterprise Linux 3 | rh-postgresql-devel | Fixed | 0:7.3.15-2 | RHSA-2006:0526 |
| Red Hat Enterprise Linux 3 | rh-postgresql-docs | Fixed | 0:7.3.15-2 | RHSA-2006:0526 |
| Red Hat Enterprise Linux 3 | rh-postgresql-jdbc | Fixed | 0:7.3.15-2 | RHSA-2006:0526 |
| Red Hat Enterprise Linux 3 | rh-postgresql-libs | Fixed | 0:7.3.15-2 | RHSA-2006:0526 |
| Red Hat Enterprise Linux 3 | rh-postgresql-pl | Fixed | 0:7.3.15-2 | RHSA-2006:0526 |
| Red Hat Enterprise Linux 3 | rh-postgresql-python | Fixed | 0:7.3.15-2 | RHSA-2006:0526 |
| Red Hat Enterprise Linux 3 | rh-postgresql-server | Fixed | 0:7.3.15-2 | RHSA-2006:0526 |
| Red Hat Enterprise Linux 3 | rh-postgresql-tcl | Fixed | 0:7.3.15-2 | RHSA-2006:0526 |
| Red Hat Enterprise Linux 3 | rh-postgresql-test | Fixed | 0:7.3.15-2 | RHSA-2006:0526 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- http://security.gentoo.org/glsa/glsa-200607-04.xml (vendor-advisory)
- http://lists.suse.com/archive/suse-security-announce/2006-Jun/0002.html (vendor-advisory)
- http://www.redhat.com/support/errata/RHSA-2006-0526.html (vendor-advisory)
- http://www.trustix.org/errata/2006/0032/ (vendor-advisory)
- ftp://patches.sgi.com/support/free/security/advisories/20060602-01-U.asc (vendor-advisory)
- https://usn.ubuntu.com/288-1/ (vendor-advisory)
References
- https://exchange.xforce.ibmcloud.com/vulnerabilities/26628
- http://security.gentoo.org/glsa/glsa-200607-04.xml
- http://secunia.com/advisories/20435
- http://www.securityfocus.com/bid/18092
- http://secunia.com/advisories/20503
- http://secunia.com/advisories/20451
- http://secunia.com/advisories/21001
- http://www.postgresql.org/docs/techdocs.50
- http://secunia.com/advisories/20231
- http://secunia.com/advisories/20653
- http://lists.suse.com/archive/suse-security-announce/2006-Jun/0002.html
- http://secunia.com/advisories/21749
- http://www.osvdb.org/25731
- http://secunia.com/advisories/20782
- http://www.redhat.com/support/errata/RHSA-2006-0526.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.