Lucene search

K
ubuntuUbuntuUSN-288-2
HistoryJun 09, 2006 - 12:00 a.m.

PostgreSQL server/client vulnerabilities

2006-06-0900:00:00
ubuntu.com
30

7.4 High

AI Score

Confidence

Low

7.5 High

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

0.023 Low

EPSS

Percentile

89.6%

Releases

  • Ubuntu 6.06

Details

USN-288-1 fixed two vulnerabilities in Ubuntu 5.04 and Ubuntu 5.10.
This update fixes the same vulnerabilities for Ubuntu 6.06 LTS.

For reference, these are the details of the original USN:

CVE-2006-2313:
Akio Ishida and Yasuo Ohgaki discovered a weakness in the handling of
invalidly-encoded multibyte text data. If a client application
processed untrusted input without respecting its encoding and applied
standard string escaping techniques (such as replacing a single quote

>>'<< with >>\'<< or >>''<<), the PostgreSQL server could interpret the
resulting string in a way that allowed an attacker to inject arbitrary
SQL commands into the resulting SQL query. The PostgreSQL server has
been modified to reject such invalidly encoded strings now, which
completely fixes the problem for some 'safe' multibyte encodings like
UTF-8.

CVE-2006-2314:
However, there are some less popular and client-only multibyte
encodings (such as SJIS, BIG5, GBK, GB18030, and UHC) which contain
valid multibyte characters that end with the byte 0x5c, which is the
representation of the backslash character >>&lt;< in ASCII. Many client
libraries and applications use the non-standard, but popular way of
escaping the >>'<< character by replacing all occurences of it with

&gt;&gt;\'&lt;&lt;. If a client application uses one of the affected encodings and
does not interpret multibyte characters, and an attacker supplies a
specially crafted byte sequence as an input string parameter, this
escaping method would then produce a validly-encoded character and
an excess &gt;&gt;'&lt;&lt; character which would end the string. All subsequent
characters would then be interpreted as SQL code, so the attacker
could execute arbitrary SQL commands.

To fix this vulnerability end-to-end, client-side applications must
be fixed to properly interpret multibyte encodings and use &gt;&gt;''&lt;&lt;
instead of &gt;&gt;\'&lt;&lt;. However, as a precautionary measure, the sequence
&gt;&gt;\'&lt;&lt; is now regarded as invalid when one of the affected client
encodings is in use. If you depend on the previous behaviour, you
can restore it by setting 'backslash_quote = on' in postgresql.conf.
However, please be aware that this could render you vulnerable
again.

This issue does not affect you if you only use single-byte (like
SQL_ASCII or the ISO-8859-X family) or unaffected multibyte (like
UTF-8) encodings.

Please see <http://www.postgresql.org/docs/techdocs.50&gt; for further
details.

OSVersionArchitecturePackageVersionFilename
Ubuntu6.06noarchpostgresql-8.1< 8.1.4-0ubuntu1UNKNOWN
Ubuntu6.06noarchpostgresql-client-8.1< 8.1.4-0ubuntu1UNKNOWN
Ubuntu6.06noarchpostgresql-contrib-8.1< 8.1.4-0ubuntu1UNKNOWN
Ubuntu6.06noarchlibpq4< 8.1.4-0ubuntu1UNKNOWN
Ubuntu6.06noarchlibpq-dev< 8.1.4-0ubuntu1UNKNOWN

7.4 High

AI Score

Confidence

Low

7.5 High

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

0.023 Low

EPSS

Percentile

89.6%