LWN.net Logo

Security

SQL injection vulnerabilities in PostgreSQL

May 31, 2006

This article was contributed by Jake Edge.

A recent urgent update to PostgreSQL vividly demonstrates the problems with validating user input that are the foundation of SQL injection attacks. Widely used techniques to escape characters in user input can still allow SQL injection when coupled with multibyte character encodings. While this problem was first discovered in PostgreSQL, today's security fix announcement for MySQL indicates a similar problem there as well.

As discussed in the LWN SQL injection article, inserting strings of user input into SQL queries can be hazardous. Many applications do little or no validation of strings entered by a user before dropping them into a query; this negligence can lead to a compromise of the entire database. Better behaved programs attempt to escape various troublesome characters (typically single-quote and backslash), but because of the multibyte-encoding problem, problems can remain.

It is not just database clients that need to validate user input, the database server needs to validate as well as the first bug shows. PostgreSQL allows the "\'" (backslash + single-quote) sequence to be used to represent a single-quote character in a query as well as the two single-quote character sequence ("''") that is the SQL standard. Unfortunately, the escaping code used by database clients often ignores the character encoding and just looks for bytes with a 0x27 ("'") value and replaces them with an escaped version. The security hole comes about because illegal multibyte character sequences can be used to enable quotes to slip past the escaping process. An example provided in the technical information describes how this can be done.

In the UTF8 encoding, the byte value 0xc8 introduces a two-byte character; the second byte must be within the range 0xa0-0xff. However, PostgreSQL would accept any value for the second byte and treat both bytes as a single character. A malicious user could enter "0xc8'text", which would be converted by the well meaning client to "0xc8''text" (or "0xc8\'text"); the server would then treat the 0xc8' or 0xc8\ sequence as a single character, leaving an unescaped single-quote in the input, effectively injecting the attacker-supplied text.

The second issue stems from certain far-eastern encodings where the value 0x5c ("\") is a valid value for the second byte of a two-byte character. In the SJIS encoding for example, the two-byte sequence 0x95 0x5c is a valid character, but a client that is not encoding-aware may try to escape the 'backslash' that it sees by doubling it. Adding single-quotes into the mix provides a means for a SQL injection. "0x95 0x5c'text" could become "0x95 0x5c\''text", which effectively inserts an unescaped single-quote into the query. It is interesting to note that 0x27 ("'") is not a valid value for the second byte of a two-byte character and, if PostgreSQL had rigidly adhered to the SQL standard and only accepted "''" to escape single-quotes, this issue would not exist.

There is a straightforward fix for the first problem: do not accept illegal multibyte character sequences and refuse to process queries that contain them. Unfortunately, the second problem is more complicated and there is no single simple fix on the database server side. If database clients did their escaping in an encoding aware manner, this problem would not exist; expecting this from all clients is hopeless, however. The PostgreSQL developers chose to disallow "\'" for any encoding that allows embedded 0x5c characters. This closes the hole for all clients that use "''" to escape single-quotes but still allows for injections for clients that use "\'". This change is likely to break those clients altogether, however.

Both of these problems could have been avoided by using prepared statements with placeholders (i.e. 'SELECT * FROM tbl WHERE id=?'). Even if the libraries did not implement the quoting correctly, the SQL engine would still not allow the parameter to be treated as anything but data for that particular spot in the query, thereby avoiding the injection. Another way to avoid this kind of problem is to use stored procedures. As these bugs show, it can be very difficult to appropriately filter and/or validate user input.

Comments (30 posted)

New vulnerabilities

binutils: buffer overflow

Package(s):binutils CVE #(s):CVE-2006-2362
Created:May 27, 2006 Updated:August 29, 2006
Description: The GNU Binutils has a buffer overflow vulnerability in libbfd. Maliciously crafted Tektronix Hex Format files with improper length characters can cause a crash and possibly lead to the execution of arbitrary code.
Alerts:
OpenPKG OpenPKG-SA-2006.009 2006-05-26
Ubuntu USN-292-1 2006-06-09
Mandriva MDKSA-2006:153 2006-08-28

Comments (none posted)

cherrypy: information disclosure

Package(s):cherrypy CVE #(s):CVE-2006-0847
Created:May 31, 2006 Updated:May 31, 2006
Description: The CherryPy web development framework (prior to version 2.1.1) has a directory traversal vulnerability which could lead to undesired information disclosure.
Alerts:
Gentoo 200605-16 2006-05-30

Comments (none posted)

dovecot: information disclosure

Package(s):dovecot CVE #(s):CVE-2006-2414
Created:May 31, 2006 Updated:June 14, 2006
Description: The Dovecot imap server contains a directory traversal vulnerability which could be exploited by authenticated users to read files other than their mailboxes.
Alerts:
Debian DSA-1080-1 2006-05-29
Ubuntu USN-288-4 2006-06-13

Comments (1 posted)

ImageMagick: heap overflow vulnerability

Package(s):ImageMagick CVE #(s):CVE-2006-2440
Created:May 25, 2006 Updated:September 5, 2006
Description: The ImageMagick DisplayImageCommand has a heap overflow vulnerability. If an maliciously created unexpanded glob is passed to ImageMagick, a heap overflow can result.
Alerts:
Fedora FEDORA-2006-587 2006-05-24
Fedora FEDORA-2006-588 2006-05-24
Debian DSA-1168-1 2006-09-04

Comments (none posted)

kernel: netfilter memory corruption

Package(s):kernel CVE #(s):CVE-2006-2444
Created:May 25, 2006 Updated:July 5, 2006
Description: The 2.6.12 kernel has a remote memory corruption vulnerability that can be remotely triggered by loading the ip_nat_snmp_basic module and traffic is network-translated on port 161 or 162.
Alerts:
Mandriva MDKSA-2006:087 2006-05-24
Trustix TSLSA-2006-0030 2006-05-26
Ubuntu USN-302-1 2006-06-15
Mandriva MDKSA-2006:116 2006-07-05

Comments (none posted)

kernel: information disclosure

Package(s):kernel CVE #(s):CVE-2006-1343
Created:May 31, 2006 Updated:July 20, 2006
Description: The 2.6 kernel netfilter code contains an information leak; this vulnerability has been fixed in the 2.6.16.19 release.
Alerts:
rPath rPSA-2006-0087-1 2006-05-31
Trustix TSLSA-2006-0032 2006-06-05
Fedora FEDORA-2006-697 2006-06-11
Fedora FEDORA-2006-698 2006-06-11
Debian DSA-1097-1 2006-06-14
Red Hat RHSA-2006:0437-01 2006-07-20

Comments (none posted)

libtiff: buffer overflow

Package(s):libtiff CVE #(s):CVE-2006-2656
Created:May 26, 2006 Updated:June 8, 2006
Description: The tiffsplit command has a problem in the way that it handles fixed-size buffers, a stack overflow can result.
Alerts:
Fedora FEDORA-2006-591 2006-05-25
Fedora FEDORA-2006-592 2006-05-25
Mandriva MDKSA-2006:095 2006-06-05
Debian DSA-1091-1 2006-06-08
Ubuntu USN-289-1 2006-06-08

Comments (none posted)

lynx: denial of service

Package(s):lynx CVE #(s):CVE-2004-1617
Created:May 26, 2006 Updated:June 1, 2006
Description: The lynx text-mode web browser has a problem understanding invalid html involving the TEXTAREA tag. An infinite loop can happen, resulting in a denial of service.
Alerts:
Debian DSA-1076-1 2006-05-26
Debian DSA-1077-1 2006-05-26
Debian DSA-1085-1 2006-06-01

Comments (1 posted)

php: multiple vulnerabilities

Package(s):php CVE #(s):CVE-2006-1990 CVE-2006-1991 CVE-2006-3017
Created:May 25, 2006 Updated:August 18, 2006
Description: The php wordwrap() function is vulnerable to an integer overflow. Attackers can submit long arguments to cause a heap-based buffer overflow, allowing arbitrary code execution.

PHP 5.x and PHP 4.4.2 have a problem with the substr_compare() function. An attacker can use an out-of-bounds offset argument to cause a memory access violation, causing a denial of service.

A bug in zend_hash_del() allowed attackers to prevent unsetting of some variables

Alerts:
Mandriva MDKSA-2006:091 2006-05-24
SuSE SUSE-SA:2006:031 2006-06-14
SuSE SUSE-SA:2006:034 2006-06-22
Mandriva MDKSA-2006:122 2006-07-13
Red Hat RHSA-2006:0568-01 2006-07-12
Ubuntu USN-320-1 2006-07-19
Red Hat RHSA-2006:0567-01 2006-07-25
Ubuntu USN-320-2 2006-07-26
Fedora-Legacy FLSA:175040 2006-07-27
Gentoo 200605-08:02 2006-05-08
Slackware SSA:2006-217-01 2006-08-07

Comments (none posted)

shadow-utils: mailbox creation vulnerability

Package(s):shadow-utils CVE #(s):CVE-2006-1174
Created:May 25, 2006 Updated:June 12, 2007
Description: The useradd tool from the shadow-utils package has a potential security problem. When a new user's mailbox is created, the permissions are set to random garbage from the stack, potentially allowing the file to be read or written during the time before fchmod() is called.
Alerts:
Mandriva MDKSA-2006:090 2006-05-24
Gentoo 200606-02 2006-06-07
Red Hat RHSA-2007:0276-02 2007-05-01
rPath rPSA-2007-0096-1 2007-05-11
Red Hat RHSA-2007:0431-01 2007-06-11

Comments (none posted)

tiff: denial of service

Package(s):tiff CVE #(s):CVE-2006-2120
Created:May 27, 2006 Updated:May 31, 2006
Description: The tiff image library is vulnerable to a denial of service attack. Images with specially crafted Yr/Yg/Yb values that exceed the YCR/YCG/YCB values can cause a crash of the associated application.
Alerts:
Debian DSA-1078-1 2006-05-27

Comments (none posted)

typespeed: buffer overflow

Package(s):typespeed CVE #(s):CVE-2006-1515
Created:May 31, 2006 Updated:June 19, 2006
Description: The typespeed game has a buffer overflow in its network data processing code which could possibly be exploited to execute arbitrary code.
Alerts:
Debian DSA-1084-1 2006-05-31
Gentoo 200606-20 2006-06-19

Comments (none posted)

vixie-cron: privilege escalation

Package(s):cron CVE #(s):CVE-2006-2607
Created:May 31, 2006 Updated:July 13, 2006
Description: The Vixie cron daemon does not check the return code from setuid(); if that call can be made to fail, a local attacker may be able to execute commands as root.
Alerts:
rPath rPSA-2006-0082-1 2006-05-25
SuSE SUSE-SA:2006:027 2006-05-31
Gentoo 200606-07 2006-06-09
Red Hat RHSA-2006:0539-01 2006-07-12

Comments (1 posted)

Updated vulnerabilities

Py2Play: remote execution of arbitrary Python code

Package(s):Py2Play CVE #(s):CAN-2005-2875
Created:September 19, 2005 Updated:September 6, 2006
Description: Py2Play uses Python pickles to send objects over a peer-to-peer game network, that clients accept without restriction the objects and code sent by peers. A remote attacker participating in a Py2Play-powered game can send malicious Python pickles, resulting in the execution of arbitrary Python code on the targeted game client.
Alerts:
Gentoo 200509-09 2005-09-17
Debian DSA-856-1 2005-10-10
Gentoo 200509-09:02 2005-09-17

Comments (none posted)

awstats: missing input sanitizing

Package(s):awstats CVE #(s):CVE-2006-2237
Created:May 19, 2006 Updated:June 20, 2006
Description: Hendrik Weimer discovered that specially crafted web requests can cause awstats, a powerful and featureful web server log analyzer, to execute arbitrary commands.
Alerts:
Debian DSA-1058-1 2006-05-18
Ubuntu USN-285-1 2006-05-23
Debian DSA-1075-1 2006-05-26
Gentoo 200606-06 2006-06-07
Ubuntu USN-290-1 2006-06-08
SuSE SUSE-SA:2006:033 2006-06-20

Comments (none posted)

zoo: archive problem

Package(s):bin CVE #(s):
Created:May 23, 2006 Updated:May 24, 2006
Description: A security problem is zoo's fullpath() function could cause problems if zoo was run in an automated way, or if a user were to open a malicious zoo archive manually.
Alerts:
Slackware SSA:2006-142-02 2006-05-23

Comments (none posted)

blender: integer overflow

Package(s):blender CVE #(s):CVE-2005-4470
Created:January 6, 2006 Updated:June 15, 2006
Description: Damian Put discovered that Blender did not properly validate a 'length' value in .blend files. Negative values led to an insufficiently sized memory allocation. By tricking a user into opening a specially crafted .blend file, this could be exploited to execute arbitrary code with the privileges of the Blender user.
Alerts:
Ubuntu USN-238-1 2006-01-06
Ubuntu USN-238-2 2006-01-06
Gentoo 200601-08 2006-01-13
Debian DSA-1039-1 2006-04-24
Debian-Testing DTSA-29-1 2006-06-15

Comments (none posted)

busybox: insecure password generation

Package(s):busybox CVE #(s):CVE-2006-1058
Created:May 5, 2006 Updated:May 2, 2007
Description: The BusyBox 1.1.1 passwd command does not use a proper salt when generating passwords. This would create an instance where a brute force attack could take very little time.
Alerts:
Fedora FEDORA-2006-510 2006-05-04
Fedora FEDORA-2006-511 2006-05-04
Red Hat RHSA-2007:0244-02 2007-05-01

Comments (2 posted)

bzip2: race condition and infinite loop

Package(s):bzip2 CVE #(s):CAN-2005-0953 CAN-2005-1260
Created:May 17, 2005 Updated:January 10, 2007
Description: A race condition in bzip2 1.0.2 and earlier allows local users to modify permissions of arbitrary files via a hard link attack on a file while it is being decompressed, whose permissions are changed by bzip2 after the decompression is complete. Also specially crafted bzip2 archives may cause an infinite loop in the decompressor.
Alerts:
Ubuntu USN-127-1 2005-05-17
Mandriva MDKSA-2005:091 2005-05-18
Debian DSA-730-1 2005-05-27
SuSE SUSE-SR:2005:015 2005-06-07
OpenPKG OpenPKG-SA-2005.008 2005-06-10
Red Hat RHSA-2005:474-01 2005-06-16
Debian DSA-741-1 2005-07-07
rPath rPSA-2007-0004-1 2007-01-09

Comments (2 posted)

ktools: buffer overflow

Package(s):centericq CVE #(s):CVE-2005-3863
Created:December 7, 2005 Updated:August 29, 2006
Description: From the Debian-Testing alert: Mehdi Oudad "deepfear" and Kevin Fernandez "Siegfried" from the Zone-H Research Team discovered a buffer overflow in kkstrtext.h of the ktools library, which is included in (at least) centericq and motor.
Alerts:
Debian-Testing DTSA-23-1 2005-12-05
Gentoo 200512-11 2005-12-20
Debian DSA-1083-1 2006-05-31
Debian DSA-1088-1 2006-06-03
Gentoo 200608-27 2006-08-29

Comments (none posted)

cpio: arbitrary code execution

Package(s):cpio CVE #(s):CVE-2005-4268
Created:January 2, 2006 Updated:May 8, 2007
Description: Richard Harms discovered that cpio did not sufficiently validate file properties when creating archives. Files with e. g. a very large size caused a buffer overflow. By tricking a user or an automatic backup system into putting a specially crafted file into a cpio archive, a local attacker could probably exploit this to execute arbitrary code with the privileges of the target user (which is likely root in an automatic backup system).
Alerts:
Ubuntu USN-234-1 2006-01-02
Red Hat RHSA-2007:0245-02 2007-05-01
rPath rPSA-2007-0094-1 2007-05-07

Comments (none posted)

cscope: buffer overflows

Package(s):cscope CVE #(s):CVE-2004-2541
Created:May 22, 2006 Updated:June 12, 2006
Description: A buffer overflow in Cscope 15.5, and possibly multiple overflows, allows remote attackers to execute arbitrary code via a C file with a long #include line that is later browsed by the target.
Alerts:
Debian DSA-1064-1 2006-05-19
Gentoo 200606-10 2006-06-11

Comments (1 posted)

curl: heap-based buffer overflow

Package(s):curl CVE #(s):CVE-2006-1061
Created:March 21, 2006 Updated:June 28, 2006
Description: Heap-based buffer overflow in cURL and libcURL 7.15.0 through 7.15.2 allows remote attackers to execute arbitrary commands via a TFTP URL (tftp://) with a valid hostname and a long path.
Alerts:
Fedora FEDORA-2006-189 2006-03-21
Gentoo 200603-19 2006-03-21
Trustix TSLSA-2006-0016 2006-03-24
OpenPKG OpenPKG-SA-2006.012 2006-06-28

Comments (none posted)

Cyrus-SASL: DIGEST-MD5 Pre-Authentication Denial of Service

Package(s):cyrus-sasl CVE #(s):CVE-2006-1721
Created:April 21, 2006 Updated:September 4, 2007
Description: Cyrus-SASL contains an unspecified vulnerability in the DIGEST-MD5 process that could lead to a Denial of Service. An attacker could possibly exploit this vulnerability by sending specially crafted data stream to the Cyrus-SASL server, resulting in a Denial of Service even if the attacker is not able to authenticate.
Alerts:
Gentoo 200604-09 2006-04-21
Ubuntu USN-272-1 2006-04-24
Mandriva MDKSA-2006:073 2006-04-24
Debian DSA-1042-1 2006-04-25
Fedora FEDORA-2006-515 2006-05-04
SuSE SUSE-SA:2006:025 2006-05-05
Red Hat RHSA-2007:0795-01 2007-09-04
Red Hat RHSA-2007:0878-01 2007-09-04

Comments (none posted)

dia: format string vulnerabilities

Package(s):dia CVE #(s):CVE-2006-2453 CVE-2006-2480
Created:May 24, 2006 Updated:June 8, 2006
Description: The dia drawing utility suffers from several format string vulnerabilities exploitable via a maliciously crafted dia file - or a file with a well-chosen name.
Alerts:
Ubuntu USN-286-1 2006-05-24
Fedora FEDORA-2006-580 2006-05-24
Mandriva MDKSA-2006:093 2006-05-30
Red Hat RHSA-2006:0541-02 2006-06-01
SuSE SUSE-SR:2006:012 2006-06-02
Gentoo 200606-03 2006-06-07

Comments (none posted)

enscript: arbitrary code execution

Package(s):enscript CVE #(s):CAN-2004-1184 CAN-2004-1185 CAN-2004-1186
Created:January 21, 2005 Updated:May 27, 2006
Description: Erik Sjölund has discovered several security relevant problems in enscript, a program to convert ASCII text into Postscript and other formats. Unsanitized input can cause the execution of arbitrary commands via EPSF pipe support. Due to missing sanitizing of filenames it is possible that a specially crafted filename can cause arbitrary commands to be executed. Multiple buffer overflows can cause the program to crash.
Alerts:
Debian DSA-654-1 2005-01-21
Ubuntu USN-68-1 2005-01-24
Fedora FEDORA-2005-015 2005-01-26
Fedora FEDORA-2005-016 2005-01-26
Fedora FEDORA-2005-091 2005-01-28
Fedora FEDORA-2005-092 2005-01-28
Fedora FEDORA-2005-096 2005-01-31
Red Hat RHSA-2005:039-01 2005-02-01
Gentoo 200502-03 2005-02-02
Mandrake MDKSA-2005:033 2005-02-10
Red Hat RHSA-2005:040-01 2005-02-15
Fedora-Legacy FLSA:152892 2005-12-17
rPath rPSA-2006-0083-1 2006-05-26

Comments (none posted)

fetchmail: multidrop bug

Package(s):fetchmail CVE #(s):CVE-2005-4348
Created:December 20, 2005 Updated:May 27, 2006
Description: Fetchmail contains a bug which allows a malicious mail server to crash the client by sending a message without headers. This occurs when running in multidrop mode.
Alerts:
Fedora FEDORA-2005-1186 2005-12-20
Fedora FEDORA-2005-1187 2005-12-20
Mandriva MDKSA-2005:236 2005-12-23
Ubuntu USN-233-1 2006-01-02
Debian DSA-939-1 2006-01-13
Slackware SSA:2006-045-01 2006-02-15
Fedora-Legacy FLSA:164512 2006-05-12
rPath rPSA-2006-0084-1 2006-05-26

Comments (none posted)

firefox: multiple vulnerabilities

Package(s):firefox mozilla CVE #(s):CVE-2006-0749 CVE-2006-1724 CVE-2006-1727 CVE-2006-1728 CVE-2006-1729 CVE-2006-1730 CVE-2006-1731 CVE-2006-1732 CVE-2006-1733 CVE-2006-1734 CVE-2006-1735 CVE-2006-1737 CVE-2006-1738 CVE-2006-1739 CVE-2006-1740 CVE-2006-1741 CVE-2006-1742
Created:April 14, 2006 Updated:June 9, 2006
Description: There are multiple vulnerabilities in Firefox and related products including Thunderbird, SeaMonkey and the Mozilla Suite. This CERT Advisory contains additional information.
Alerts:
Red Hat RHSA-2006:0328-01 2006-04-14
Slackware SSA:2006-107-01 2006-04-17
Red Hat RHSA-2006:0329-01 2006-04-18
Fedora FEDORA-2006-410 2006-04-18
Fedora FEDORA-2006-411 2006-04-18
Ubuntu USN-271-1 2006-04-19
SuSE SUSE-SA:2006:021 2006-04-20
Red Hat RHSA-2006:0330-01 2006-04-21
Gentoo 200604-12 2006-04-23
Slackware SSA:2006-114-01 2006-04-25
Mandriva MDKSA-2006:075 2006-04-24
SuSE SUSE-SA:2006:022 2006-04-25
Debian DSA-1044-1 2006-04-26
Mandriva MDKSA-2006:076 2006-04-25
Mandriva MDKSA-2006:078 2006-04-25
Gentoo 200604-18 2006-04-28
Slackware SSA:2006-120-01 2006-05-01
Ubuntu USN-276-1 2006-05-03
Fedora FEDORA-2006-488 2006-05-03
Fedora FEDORA-2006-489 2006-05-03
Fedora FEDORA-2006-486 2006-05-03
Fedora FEDORA-2006-492 2006-05-03
Fedora FEDORA-2006-495 2006-05-03
Fedora FEDORA-2006-487 2006-05-03
Fedora FEDORA-2006-490 2006-05-03
Fedora FEDORA-2006-491 2006-05-03
Fedora FEDORA-2006-493 2006-05-03
Fedora FEDORA-2006-494 2006-05-03
Slackware SSA:2006-123-02 2006-05-04
Gentoo 200605-09 2006-05-08
Fedora-Legacy FLSA:189137-1 2006-06-06
Fedora-Legacy FLSA:189137-2 2006-06-06
Ubuntu USN-296-1 2006-06-09

Comments (1 posted)

Foomatic: Arbitrary command execution in foomatic-rip

Package(s):foomatic CVE #(s):CAN-2004-0801
Created:September 20, 2004 Updated:May 31, 2006
Description: There is a vulnerability in the foomatic-filters package. This vulnerability is due to insufficient checking of command-line parameters and environment variables in the foomatic-rip filter. This vulnerability may allow both local and remote attackers to execute arbitrary commands on the print server with the permissions of the spooler.
Alerts:
Gentoo 200409-24 2004-09-20
Fedora FEDORA-2004-303 2004-09-21
Conectiva CLA-2004:880 2004-10-27
Fedora-Legacy FLSA:2076 2004-11-05
SuSE SUSE-SA:2006:026 2006-05-30

Comments (none posted)

freeradius: authentication bypass

Package(s):freeradius CVE #(s):CVE-2006-1354
Created:March 24, 2006 Updated:June 5, 2006
Description: An unspecified vulnerability in FreeRADIUS 1.0.0 up to 1.1.0 allows remote attackers to bypass authentication or cause a denial of service (server crash) via "Insufficient input validation" in the EAP-MSCHAPv2 state machine module.
Alerts:
Mandriva MDKSA-2006:060 2006-03-23
SuSE SUSE-SA:2006:019 2006-03-28
Red Hat RHSA-2006:0271-01 2006-04-04
Gentoo 200604-03 2006-04-04
Mandriva MDKSA-2006:066 2006-04-05
Debian DSA-1089-1 2006-06-03

Comments (none posted)

gdb: multiple vulnerabilities

Package(s):gdb CVE #(s):CAN-2005-1704 CAN-2005-1705
Created:May 20, 2005 Updated:August 11, 2006
Description: Tavis Ormandy of the Gentoo Linux Security Audit Team discovered an integer overflow in the BFD library, resulting in a heap overflow. A review also showed that by default, gdb insecurely sources initialization files from the working directory. Successful exploitation would result in the execution of arbitrary code on loading a specially crafted object file or the execution of arbitrary commands.
Alerts:
Gentoo 200505-15 2005-05-20
Ubuntu USN-135-1 2005-05-27
Ubuntu USN-136-1 2005-05-27
Ubuntu USN-136-2 2005-05-27
Mandriva MDKSA-2005:095 2005-05-30
Trustix TSLSA-2005-0025 2005-05-31
Gentoo 200506-01 2005-06-01
Fedora FEDORA-2005-497 2005-06-29
Fedora FEDORA-2005-498 2005-06-29
Red Hat RHSA-2005:659-01 2005-09-28
Red Hat RHSA-2005:673-01 2005-10-05
Red Hat RHSA-2005:709-01 2005-10-05
Red Hat RHSA-2005:763-01 2005-10-11
Red Hat RHSA-2005:801-01 2005-10-18
Fedora FEDORA-2005-1032 2005-10-27
Fedora FEDORA-2005-1033 2005-10-27
Mandriva MDKSA-2005:215 2005-11-23
Red Hat RHSA-2006:0368-01 2006-07-20
Red Hat RHSA-2006:0354-01 2006-08-10

Comments (5 posted)

gdm: improper file permissions

Package(s):gdm CVE #(s):CVE-2006-1057
Created:April 19, 2006 Updated:May 2, 2007
Description: The .ICEauthority file may be created with the wrong ownership and permissions; gdm 2.14.2 fixes the problem.
Alerts:
Fedora FEDORA-2006-338 2006-04-19
Debian DSA-1040-1 2006-04-24
Ubuntu USN-278-1 2006-05-03
Mandriva MDKSA-2006:083 2006-05-09
Red Hat RHSA-2007:0286-02 2007-05-01

Comments (none posted)

gzip: arbitrary command execution

Package(s):gzip CVE #(s):CAN-2005-0758
Created:August 1, 2005 Updated:January 9, 2007
Description: zgrep in gzip before 1.3.5 does not handle shell metacharacters like '|' and '&' properly when they occurred in input file names. This could be exploited to execute arbitrary commands with user privileges if zgrep is run in an untrusted directory with specially crafted file names.
Alerts:
Ubuntu USN-158-1 2005-08-01
Ubuntu USN-161-1 2005-08-04
Fedora-Legacy FLSA:157696 2005-08-10
Fedora-Legacy FLSA:158801 2005-11-14
Mandriva MDKSA-2006:026 2006-01-30
Mandriva MDKSA-2006:027 2006-01-30
OpenPKG OpenPKG-SA-2007.002 2007-01-08

Comments (2 posted)

hostapd: insufficient boundary checks

Package(s):hostapd CVE #(s):CVE-2006-2213
Created:May 22, 2006 Updated:May 25, 2006
Description: Matteo Rosi and Leonardo Maccari discovered that hostapd, a wifi network authenticator daemon, performs insufficient boundary checks on a key length value, which might be exploited to crash the service.
Alerts:
Debian DSA-1065-1 2006-05-19
Mandriva MDKSA-2006:088 2006-05-24

Comments (none posted)

ipsec-tools: denial of service

Package(s):ipsec-tools CVE #(s):CVE-2005-3732
Created:December 1, 2005 Updated:June 8, 2006
Description: ipsec-tools has a remote denial of service vulnerability in the racoon daemon. If racoon is running in aggressive mode, it fails to check all peer payloads during When the daemon the IKE negotiation phase, allowing a malicious peer to crash the daemon. One should always be careful around aggressive racoons.
Alerts:
Ubuntu USN-221-1 2005-12-01
Gentoo 200512-04 2005-12-12
SuSE SUSE-SA:2005:070 2005-12-20
Mandriva MDKSA-2006:020 2006-01-25
Debian DSA-965-1 2006-02-06
Red Hat RHSA-2006:0267-01 2006-04-25
Fedora-Legacy FLSA:190941 2006-06-06

Comments (none posted)

kdebase: local root vulnerability

Package(s):kdebase CVE #(s):CAN-2005-2494
Created:September 7, 2005 Updated:August 11, 2006
Description: The kdebase package (and kcheckpass in particular) found in KDE versions 3.2.0 through 3.4.2 suffers from a lock file handling error which can enable a local attacker to obtain root access. See this advisory for details.
Alerts:
Mandriva MDKSA-2005:160 2005-09-06
Ubuntu USN-176-1 2005-09-07
Slackware SSA:2005-251-01 2005-09-09
Debian DSA-815-1 2005-09-16
Red Hat RHSA-2006:0582-01 2006-08-10

Comments (none posted)

kdelibs: kate backup file permission leak

Package(s):kdelibs kate kwrite CVE #(s):CAN-2005-1920
Created:July 19, 2005 Updated:November 27, 2006
Description: Kate / Kwrite, as shipped with KDE 3.2.x up to including 3.4.0, creates a file backup before saving a modified file. These backup files are created with default permissions, even if the original file had more strict permissions set. See this advisory for more information.
Alerts:
Fedora FEDORA-2005-594 2005-07-19
Mandriva MDKSA-2005:122 2005-07-20
Ubuntu USN-150-1 2005-07-21
Red Hat RHSA-2005:612-01 2005-07-27
Debian DSA-804-1 2005-09-08
Debian DSA-804-2 2005-11-10
Gentoo 200611-21 2006-11-27

Comments (none posted)

kernel: multiple vulnerabilities

Package(s):kernel CVE #(s):CVE-2006-2271 CVE-2006-2272 CVE-2006-2274 CVE-2006-2275 CVE-2006-1864
Created:May 12, 2006 Updated:July 13, 2006
Description: Multiple vulnerabilities in the Linux have been found.
  • An error in the Stream Control Transmission Protocol (SCTP) code that uses incorrect state table entries when certain ECNE chunks are received in CLOSED state, could be exploited by attackers to cause a kernel panic via a specially crafted packet.
  • An error exist when handling incoming IP-fragmented SCTP control chunks, which could be exploited by attackers to cause a kernel panic via a specially crafted packet.
  • Linux SCTP (lksctp) allows remote attackers to cause a denial of service (infinite recursion and crash) via a packet that contains two or more DATA fragments, which causes an skb pointer to refer back to itself when the full message is reassembled, leading to infinite recursion in the sctp_skb_pull function
  • Linux SCTP (lksctp) allows remote attackers to cause a denial of service (deadlock) via a large number of small messages to a receiver application that cannot process the messages quickly enough, which leads to "spillover of the receive buffer."
  • A vulnerability has been identified due to an input validation error when processing arguments containing backslash ("\\") characters passed to certain commands (e.g. "cd"), which could be exploited by authenticated attackers to escape chroot restrictions for a CIFS or SMBFS mounted filesystem.
Alerts:
Trustix TSLSA-2006-0026 2006-05-12
Mandriva MDKSA-2006:086 2006-05-18
Red Hat RHSA-2006:0493-01 2006-05-24
SuSE SUSE-SA:2006:028 2006-05-31
Debian DSA-1103-1 2006-06-27
Red Hat RHSA-2006:0579-01 2006-07-13
Red Hat RHSA-2006:0580-01 2006-07-13

Comments (none posted)

kernel: denial of service

Package(s):kernel CVE #(s):CVE-2006-1859 CVE-2006-1860
Created:May 19, 2006 Updated:May 24, 2006
Description: Memory leak in __setlease in fs/locks.c in Linux kernel before 2.6.16.16 allows attackers to cause a denial of service (memory consumption) via unspecified actions related to an "uninitialized return value," aka "slab leak."

lease_init in fs/locks.c in Linux kernel before 2.6.16.16 allows attackers to cause a denial of service (fcntl_setlease lockup) via actions that cause lease_init to free a lock that might not have been allocated on the stack.

Alerts:
Trustix TSLSA-2006-0028 2006-05-19
Fedora FEDORA-2006-572 2006-05-21
Fedora FEDORA-2006-573 2006-05-21
rPath rPSA-2006-0079-1 2006-05-23

Comments (none posted)

kernel: multiple vulnerabilities

Package(s):kernel CVE #(s):CAN-2005-0449 CAN-2005-0209 CAN-2005-0529 CAN-2005-0530 CAN-2005-0532 CAN-2005-0384 CAN-2005-0210 CAN-2005-0504 CAN-2005-0003
Created:March 24, 2005 Updated:May 31, 2006
Description: A number of vulnerabilities have been found in the Linux kernel, including a PPP-related denial of service problem, an integer overflow in the epoll() code, memory corruption in the ELF loader, and exploitable overflows in the ISO9660 code.
Alerts:
SuSE SUSE-SA:2005:018 2005-03-24
Fedora FEDORA-2005-262 2005-03-28
Conectiva CLA-2005:945 2005-03-31
Debian DSA-1067-1 2006-05-20
Debian DSA-1070-1 2006-05-21
Debian DSA-1069-1 2006-05-20
Debian DSA-1082-1 2006-05-29

Comments (none posted)

kernel-patch-vserver: privilege escalation

Package(s):kernel-patch-vserver CVE #(s):CVE-2006-2110
Created:May 22, 2006 Updated:May 24, 2006
Description: Jan Rekorajski discovered that the kernel patch for virtual private servers does not limit context capabilities to the root user within the virtual server, which might lead to privilege escalation for some virtual server specific operations.
Alerts:
Debian DSA-1060-1 2006-05-19

Comments (none posted)

kphone: insecure file creation

Package(s):kphone CVE #(s):CVE-2006-2442
Created:May 22, 2006 Updated:May 25, 2006
Description: Sven Dreyer discovered that KPhone, a Voice over IP client for KDE, creates a configuration file world-readable, which could leak sensitive information like SIP passwords.
Alerts:
Debian DSA-1062-1 2006-05-19
Mandriva MDKSA-2006:089 2006-05-24

Comments (none posted)

libextractor: heap-based buffer overflows

Package(s):libextractor CVE #(s):CVE-2006-2458
Created:May 22, 2006 Updated:May 31, 2006
Description: Luigi Auriemma has found two heap-based buffer overflows in libextractor 0.5.13 and earlier: one of them occurs in the asf_read_header function in the ASF plugin, and the other occurs in the parse_trak_atom function in the Qt plugin.
Alerts:
Gentoo 200605-14 2006-05-21
Debian DSA-1081-1 2006-05-29

Comments (none posted)

libgadu: memory alignment bug

Package(s):libgadu CVE #(s):CAN-2005-2370
Created:July 29, 2005 Updated:June 25, 2007
Description: Szymon Zygmunt and Michal Bartoszkiewicz discovered a memory alignment error in libgadu (from ekg, console Gadu Gadu client, an instant messaging program) which is included in gaim, a multi-protocol instant messaging client, as well. This can not be exploited on the x86 architecture but on others, e.g. on Sparc and lead to a bus error, in other words a denial of service.
Alerts:
Debian DSA-769-1 2005-07-29
Red Hat RHSA-2005:627-01 2005-08-09
Debian DSA-813-1 2005-09-15

Comments (none posted)

libgd2: buffer overflows in PNG handling

Package(s):libgd2 CVE #(s):CAN-2004-0990 CAN-2004-0941
Created:October 29, 2004 Updated:June 28, 2006
Description: Several buffer overflows have been discovered in libgd's PNG handling functions.
If an attacker tricked a user into loading a malicious PNG image, they could leverage this into executing arbitrary code in the context of the user opening image. Most importantly, this library is commonly used in PHP. One possible target would be a PHP driven photo website that lets users upload images. Therefore this vulnerability might lead to privilege escalation to a web server's privileges.
Multiple buffer overflows in the gd graphics library (libgd) 2.0.21 and earlier may allow remote attackers to execute arbitrary code via malformed image files that trigger the overflows due to improper calls to the gdMalloc function.
Alerts:
Ubuntu USN-11-1 2004-10-28
OpenPKG OpenPKG-SA-2004.049 2004-10-30
Gentoo 200411-08 2004-11-03
Debian DSA-589-1 2004-11-09
Debian DSA-591-1 2004-11-09
Ubuntu USN-21-1 2004-11-09
Fedora FEDORA-2004-411 2004-11-11
Fedora FEDORA-2004-412 2004-11-11
Ubuntu USN-25-1 2004-11-15
Mandrake MDKSA-2004:132 2004-11-15
Debian DSA-601-1 2004-11-29
Debian DSA-602-1 2004-11-29
Ubuntu USN-33-1 2004-11-29
Red Hat RHSA-2004:638-01 2004-12-17
Fedora-Legacy FLSA:152838 2005-07-15
Red Hat RHSA-2006:0194-01 2006-02-01
Mandriva MDKSA-2006:114 2006-06-27

Comments (none posted)

libpam-ldap: authentication bypass

Package(s):libpam-ldap CVE #(s):CAN-2005-2641
Created:August 25, 2005 Updated:October 6, 2006
Description: libpam-ldap, the PAM LDAP interface, has a vulnerability in which it fails to authenticate with an LDAP server which is not configured properly, allowing an authentication bypass.
Alerts:
Debian DSA-785-1 2005-08-25
Gentoo 200508-22 2005-08-31
Mandriva MDKSA-2005:190 2005-10-20
rPath rPSA-2006-0183-1 2006-10-05

Comments (none posted)

libtiff: denial of service

Package(s):libtiff CVE #(s):CVE-2006-2024
Created:April 28, 2006 Updated:May 31, 2006
Description: Multiple vulnerabilities in libtiff before 3.8.1 allow context-dependent attackers to cause a denial of service via a TIFF image that triggers errors in (1) the TIFFFetchAnyArray function in (a) tif_dirread.c; (2) certain "codec cleanup methods" in (b) tif_lzw.c, (c) tif_pixarlog.c, and (d) tif_zip.c; (3) and improper restoration of setfield and getfield methods in cleanup functions within (e) tif_jpeg.c, tif_pixarlog.c, (f) tif_fax3.c, and tif_zip.c.
Alerts:
Fedora FEDORA-2006-473 2006-04-27
Fedora FEDORA-2006-474 2006-04-27
SuSE SUSE-SR:2006:009 2006-04-28
Ubuntu USN-277-1 2006-05-03
Mandriva MDKSA-2006:082 2006-05-03
Debian DSA-1054-1 2006-05-09
Red Hat RHSA-2006:0425-01 2006-05-09
Gentoo 200605-17 2006-05-30

Comments (none posted)

mailman: denial of service

Package(s):mailman CVE #(s):CVE-2006-0052
Created:March 30, 2006 Updated:June 9, 2006
Description: Mailman 2.1.5 and below have a denial of service vulnerability in the Scrubber.py script. If a maliciously created message with a mime multi part format is received, mailman delivery can be stopped.
Alerts:
Mandriva MDKSA-2006:061 2006-03-29
Ubuntu USN-267-1 2006-04-03
Debian DSA-1027-1 2006-04-06
SuSE SUSE-SR:2006:008 2006-04-07
Red Hat RHSA-2006:0486-01 2006-06-09

Comments (none posted)

mpg123: buffer overflows

Package(s):mpg123 CVE #(s):CVE-2006-1655
Created:May 24, 2006 Updated:July 3, 2006
Description: mpg123 does not properly validate MPEG 2.0 layer 3 files, leading to a number of buffer overflow vulnerabilities.
Alerts:
Debian DSA-1074-1 2006-05-24
Mandriva MDKSA-2006:092 2006-05-26
Gentoo 200607-01 2006-07-03

Comments (none posted)

MySQL: logging bypass

Package(s):mysql CVE #(s):CVE-2006-0903
Created:April 4, 2006 Updated:May 21, 2008
Description: MySQL 5.0.18 and earlier allows local users to bypass logging mechanisms via SQL queries that contain the NULL character, which are not properly handled by the mysql_real_query function. NOTE: this issue was originally reported for the mysql_query function, but the vendor states that since mysql_query expects a null character, this is not an issue for mysql_query.
Alerts:
Mandriva MDKSA-2006:064 2006-04-03
Ubuntu USN-274-1 2006-04-27
Ubuntu USN-274-2 2006-05-15
Red Hat RHSA-2008:0364-01 2008-05-21

Comments (2 posted)

mysql: information leaks

Package(s):mysql mysql-dfsg CVE #(s):CVE-2006-1516 CVE-2006-1517
Created:May 8, 2006 Updated:June 23, 2006
Description: Stefano Di Paola discovered an information leak in the login packet parser. By sending a specially crafted malformed login packet, a remote attacker could exploit this to read a random piece of memory, which could potentially reveal sensitive data. (CVE-2006-1516)

Stefano Di Paola also found a similar information leak in the parser for the COM_TABLE_DUMP request. (CVE-2006-1517)

Alerts:
Ubuntu USN-283-1 2006-05-08
Mandriva MDKSA-2006:084 2006-05-10
Slackware SSA:2006-129-02 2006-05-10
Gentoo 200605-13 2006-05-11
Fedora FEDORA-2006-554 2006-05-17
Fedora FEDORA-2006-553 2006-05-17
Debian DSA-1071-1 2006-05-22
Debian DSA-1073-1 2006-05-22
Debian DSA-1079-1 2006-05-29
SuSE SUSE-SA:2006:036 2006-06-23

Comments (1 posted)

nagios: buffer overflow

Package(s):nagios CVE #(s):CVE-2006-2162
Created:May 8, 2006 Updated:May 31, 2006
Description: A buffer overflow in CGI scripts in Nagios 1.x before 1.4 and 2.x before 2.3 allows remote attackers to execute arbitrary code via a negative content length (Content-Length) HTTP header.
Alerts:
Gentoo 200605-07 2006-05-07
Ubuntu USN-282-1 2006-05-08
Gentoo 200605-07a 2006-05-07
SuSE SUSE-SR:2006:011 2006-05-19
Debian DSA-1072-1 2006-05-22
Ubuntu USN-287-1 2006-05-29

Comments (none posted)

ntp: uses wrong gid

Package(s):ntp CVE #(s):CAN-2005-2496
Created:August 26, 2005 Updated:August 11, 2006
Description: When starting xntpd with the -u option and specifying the group by using a string not a numeric gid the daemon uses the gid of the user not the group. This problem is now fixed by this update.
Alerts:
Fedora FEDORA-2005-812 2005-08-26
Ubuntu USN-175-1 2005-09-01
Debian DSA-801-1 2005-09-05
Mandriva MDKSA-2005:156 2005-09-06
Red Hat RHSA-2006:0393-01 2006-08-10

Comments (none posted)

OpenLDAP: boundary error

Package(s):openldap CVE #(s):
Created:May 23, 2006 Updated:May 24, 2006
Description: According to this Secunia advisory, a weakness exists in OpenLDAP which is caused due to a boundary error in slurpd within the handling of the status file. This can be exploited to cause a stack-based buffer overflow via an overly long hostname read from the status file. The weakness has been reported to be in OpenLDAP version 2.3.21 and earlier.
Alerts:
OpenPKG OpenPKG-SA-2006.008 2006-05-22

Comments (none posted)

openmotif: buffer overflows

Package(s):openmotif CVE #(s):CVE-2005-3964
Created:December 29, 2005 Updated:July 27, 2006
Description: The libUil component of the OpenMotif toolkit has a pair of buffer overflow vulnerabilities that can possibly be used for the execution of arbitrary code.
Alerts:
Gentoo 200512-16 2005-12-28
Red Hat RHSA-2006:0272-01 2006-04-04
Fedora FEDORA-2006-854 2006-07-26

Comments (none posted)

OpenSSH: double shell expansion

Package(s):openssh CVE #(s):