Input validation error in PostgreSQL - CVE-2013-1899

 

Input validation error in PostgreSQL - CVE-2013-1899

Published: April 4, 2013 / Updated: July 29, 2020


Vulnerability identifier: #VU32710
CSH Severity: Low
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2013-1899
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows remote attackers to cause a denial of service (file corruption), and allows remote authenticated users to perform a denial of service (DoS) attack.

The vulnerability exists due to insufficient validation of user-supplied input. A remote attacker can modify configuration settings and execute arbitrary code, via a connection request using a database name that begins with a "-" (hyphen).


Affected software

PostgreSQL
Amazon Linux AMI
Gentoo Linux
Ubuntu
SUSE Linux
postgresql (Alpine package)
postgresql-8.3 (Ubuntu package)
postgresql-8.4 (Ubuntu package)
postgresql-9.1 (Ubuntu package)

How to mitigate CVE-2013-1899

Update to version 9.2.4.

PostgreSQL - update to 9.2.4
postgresql (Alpine package) - update to 9.1.9-r0
postgresql-8.3 (Ubuntu package) - update to 8.3.23-0ubuntu8.04.1
postgresql-8.4 (Ubuntu package) - update to 8.4.17-0ubuntu10.04
postgresql-9.1 (Ubuntu package) - addressed in versions 9.1.9-0ubuntu11.10, 9.1.9-0ubuntu12.04, 9.1.9-0ubuntu12.10

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins