Stack-based buffer overflow in PostgreSQL - CVE-2015-5289

 

Stack-based buffer overflow in PostgreSQL - CVE-2015-5289

Published: October 26, 2015 / Updated: July 28, 2020


Vulnerability identifier: #VU32376
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2015-5289
CWE-ID: CWE-121
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error when processing unspecified vectors, which are not properly handled in (1) json or (2) jsonb values. A remote unauthenticated attacker can trigger stack-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

PostgreSQL
Amazon Linux AMI
Gentoo Linux
Fedora
postgresql (Alpine package)
postgresql

How to mitigate CVE-2015-5289

Update to version 9.3.10.

PostgreSQL - update to 9.3.10
postgresql (Alpine package) - update to 9.3.10-r0
postgresql - addressed in versions 9.3.10-1.fc21, 9.4.5-1.fc22, 9.4.5-1.fc23

External References

Related Security Bulletins