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
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
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