CVE-2010-0442

medium
Published 2010-02-02 ยท Modified 2026-04-29
CVSS v3
โ€”
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
7.5

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

Predictions

Exploit likelihood
20%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-33571 dos linux verified
Intevydis ยท 2010-01-27

PostgreSQL - 'bitsubstr' Buffer Overflow

Source code queued for fetch โ€” refresh in a moment.

Application impact

VendorProductVersionsFixed
postgresql postgresqlpostgresql{"startIncluding":"7.4","endExcluding":"7.4.28"}7.4.28
postgresql postgresqlpostgresql{"startIncluding":"8.0","endExcluding":"8.0.24"}8.0.24
postgresql postgresqlpostgresql{"startIncluding":"8.1","endExcluding":"8.1.20"}8.1.20
postgresql postgresqlpostgresql{"startIncluding":"8.2","endExcluding":"8.2.16"}8.2.16
postgresql postgresqlpostgresql{"startIncluding":"8.3","endExcluding":"8.3.10"}8.3.10
postgresql postgresqlpostgresql{"startIncluding":"8.4","endExcluding":"8.4.3"}8.4.3

References

CWEs

CWE-189

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.