Skip to content
OpenAdvisories
Unscored Public exploit CVE-2010-0442 EUVD-2010-0473GHSA-gv9m-x3m7-x4g8

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

Published Feb 2, 2010 · Updated Aug 7, 2024 · Assigned by redhat

Description

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

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 5.0 postgresql-8.3 8.3.11-0lenny1 DSA-2051-1
ReleasePackageFixed inAdvisory
RHEL 5 postgresql +9 8.1.21-1.el5_5.1 RHSA-2010:0429
RHEL 4 postgresql +10 7.4.29-1.el4_8.1 RHSA-2010:0428
RHEL 3 rh-postgresql +10 7.3.21-3 RHSA-2010:0427

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 4

References