Skip to content
Fencer Intel
medium 6.5

CVE-2010-0442 json

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 16y ago modified 4mo ago also EUVD-2010-0473

cvss
6.5
version 2.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
13.3%
EPSS 13.3% chance of exploitation in 30 days, percentile 96%
public exploits
1
Exploit-DB

Summary

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

Patch / fix

  • postgresql postgresql 7.4.28, 8.0.24, 8.1.20, 8.2.16, 8.3.10, 8.4.3
  • postgresql RHEL 5 8.1.21-1.el5_5.1
  • postgresql-pl RHEL 5 8.1.21-1.el5_5.1
  • postgresql-tcl RHEL 5 8.1.21-1.el5_5.1
  • postgresql-libs RHEL 5 8.1.21-1.el5_5.1
  • postgresql-test RHEL 5 8.1.21-1.el5_5.1
  • postgresql-python RHEL 5 8.1.21-1.el5_5.1
  • postgresql-server RHEL 5 8.1.21-1.el5_5.1
  • postgresql-contrib RHEL 5 8.1.21-1.el5_5.1

red hat advisories RHSA-2010:0429RHSA-2010:0428RHSA-2010:0427

Is CVE-2010-0442 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2010-0442 updated cvss 5.2

postgresql: substring() negative length argument buffer overflow

  • Red Hat Desktop version 3 rh-postgresql 7.3.21-3, rh-postgresql-pl 7.3.21-3, rh-postgresql-tcl 7.3.21-3, rh-postgresql-jdbc 7.3.21-3, rh-postgresql-libs 7.3.21-3, rh-postgresql-test 7.3.21-3, +3 more
    fixed: vendor fix RHSA-2010:0427
  • Red Hat Enterprise Linux (v. 5 server) postgresql 8.1.21-1.el5_5.1, postgresql-pl 8.1.21-1.el5_5.1, postgresql-tcl 8.1.21-1.el5_5.1, postgresql-libs 8.1.21-1.el5_5.1, postgresql-test 8.1.21-1.el5_5.1, postgresql-python 8.1.21-1.el5_5.1, +2 more
    fixed: vendor fix RHSA-2010:0429
  • Red Hat Enterprise Linux AS version 3 rh-postgresql 7.3.21-3, rh-postgresql-pl 7.3.21-3, rh-postgresql-tcl 7.3.21-3, rh-postgresql-jdbc 7.3.21-3, rh-postgresql-libs 7.3.21-3, rh-postgresql-test 7.3.21-3, +3 more
    fixed: vendor fix RHSA-2010:0427
  • Red Hat Enterprise Linux AS version 4 postgresql 7.4.29-1.el4_8.1, postgresql-pl 7.4.29-1.el4_8.1, postgresql-tcl 7.4.29-1.el4_8.1, postgresql-jdbc 7.4.29-1.el4_8.1, postgresql-libs 7.4.29-1.el4_8.1, postgresql-test 7.4.29-1.el4_8.1, +3 more
    fixed: vendor fix RHSA-2010:0428
  • Red Hat Enterprise Linux Desktop (v. 5 client) postgresql 8.1.21-1.el5_5.1, postgresql-pl 8.1.21-1.el5_5.1, postgresql-tcl 8.1.21-1.el5_5.1, postgresql-libs 8.1.21-1.el5_5.1, postgresql-test 8.1.21-1.el5_5.1, postgresql-python 8.1.21-1.el5_5.1, +2 more
    fixed: vendor fix RHSA-2010:0429
  • Red Hat Enterprise Linux Desktop version 4 postgresql 7.4.29-1.el4_8.1, postgresql-pl 7.4.29-1.el4_8.1, postgresql-tcl 7.4.29-1.el4_8.1, postgresql-jdbc 7.4.29-1.el4_8.1, postgresql-libs 7.4.29-1.el4_8.1, postgresql-test 7.4.29-1.el4_8.1, +3 more
    fixed: vendor fix RHSA-2010:0428
  • Red Hat Enterprise Linux Desktop Workstation (v. 5 client) postgresql 8.1.21-1.el5_5.1, postgresql-pl 8.1.21-1.el5_5.1, postgresql-tcl 8.1.21-1.el5_5.1, postgresql-libs 8.1.21-1.el5_5.1, postgresql-test 8.1.21-1.el5_5.1, postgresql-python 8.1.21-1.el5_5.1, +2 more
    fixed: vendor fix RHSA-2010:0429
  • Red Hat Enterprise Linux ES version 3 rh-postgresql 7.3.21-3, rh-postgresql-pl 7.3.21-3, rh-postgresql-tcl 7.3.21-3, rh-postgresql-jdbc 7.3.21-3, rh-postgresql-libs 7.3.21-3, rh-postgresql-test 7.3.21-3, +3 more
    fixed: vendor fix RHSA-2010:0427
show 3 more
  • Red Hat Enterprise Linux ES version 4 postgresql 7.4.29-1.el4_8.1, postgresql-pl 7.4.29-1.el4_8.1, postgresql-tcl 7.4.29-1.el4_8.1, postgresql-jdbc 7.4.29-1.el4_8.1, postgresql-libs 7.4.29-1.el4_8.1, postgresql-test 7.4.29-1.el4_8.1, +3 more
    fixed: vendor fix RHSA-2010:0428
  • Red Hat Enterprise Linux WS version 3 rh-postgresql 7.3.21-3, rh-postgresql-pl 7.3.21-3, rh-postgresql-tcl 7.3.21-3, rh-postgresql-jdbc 7.3.21-3, rh-postgresql-libs 7.3.21-3, rh-postgresql-test 7.3.21-3, +3 more
    fixed: vendor fix RHSA-2010:0427
  • Red Hat Enterprise Linux WS version 4 postgresql 7.4.29-1.el4_8.1, postgresql-pl 7.4.29-1.el4_8.1, postgresql-tcl 7.4.29-1.el4_8.1, postgresql-jdbc 7.4.29-1.el4_8.1, postgresql-libs 7.4.29-1.el4_8.1, postgresql-test 7.4.29-1.el4_8.1, +3 more
    fixed: vendor fix RHSA-2010:0428

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Timeline

  1. First public exploit (EDB-33571)
  2. Published

Exploit prediction

13.26% chance of exploitation in the next 30 days, higher than 96% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • EDB-33571 PostgreSQL - 'bitsubstr' Buffer Overflow dos, 2010-01-27
  • securityfocus.com http://www.securityfocus.com/bid/37973 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 2.0 6.5 AV:N/AC:L/Au:S/C:P/I:P/A:P

Classification

Weakness
Technology feeds

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.