Input validation error in PostgreSQL - CVE-2010-0442

 

Input validation error in PostgreSQL - CVE-2010-0442

Published: February 24, 2023 / Updated: June 23, 2025


Vulnerability identifier: #VU111772
CSH Severity: Medium
CVSS v4: 5.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2010-0442
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote user to read and manipulate data.

The bitsubstr function in backend/utils/adt/varbit.c in PostgreSQL 8.0.23, 8.1.11, and 8.3.8 allows remote authenticated users to cause a denial of service (daemon crash) or have unspecified other impact via vectors involving a negative integer in the third argument, as demonstrated by a SELECT statement that contains a call to the substring function for a bit string, related to an "overflow."


Affected software

PostgreSQL
Gentoo Linux
Ubuntu
postgresql-8.1 (Ubuntu package)
postgresql-8.3 (Ubuntu package)
postgresql-8.4 (Ubuntu package)
dev-db/postgresql
dev-db/postgresql-server

How to mitigate CVE-2010-0442

Install update from vendor's website.

PostgreSQL - update to 8.0.24
postgresql-8.1 (Ubuntu package) - update to 8.1.20-0ubuntu0.6.06.1
postgresql-8.3 (Ubuntu package) - addressed in versions 8.3.10-0ubuntu8.04.1, 8.3.10-0ubuntu9.04.1
postgresql-8.4 (Ubuntu package) - update to 8.4.3-0ubuntu9.10.1
dev-db/postgresql - update to 9.0.5
dev-db/postgresql-server - update to 9.0.5

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins