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…
Check your servers for CVE-2010-0442
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2010-0442 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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."
Exploitation
EPSS 13.2%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 97.0% of all scored CVEs. Scores of 29 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2010-0442 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2010-0442RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2010-0442Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2010-0442
trivy image --scanners vuln IMAGE | grep CVE-2010-0442
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- RHSA-2010:0427 redhat.com · vendor advisory
- RHSA-2010:0428 redhat.com · vendor advisory
- DSA-2051 debian.org · vendor advisory
- USN-933-1 ubuntu.com · vendor advisory
- 39820 secunia.com · third party advisory
- http://git.postgresql.org/gitweb?p=postgresql.git%3Ba=commit%3Bh=75dea10196c31d98d98c0bafeeb576ae99c09b12 git.postgresql.org
- http://git.postgresql.org/gitweb?p=postgresql.git%3Ba=commit%3Bh=b15087cb39ca9e4bde3c8920fcee3741045d2b83 git.postgresql.org
- 39566 secunia.com · third party advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=559259 bugzilla.redhat.com
- RHSA-2010:0429 redhat.com · vendor advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=559194 bugzilla.redhat.com
- MDVSA-2010:103 mandriva.com · vendor advisory
- 39939 secunia.com · third party advisory
Other references
- 1023510 securitytracker.com · vdb entry
- [oss-security] 20100127 Re: CVE id request: postgresql bitsubstr overflow openwall.com · mailing list
- ADV-2010-1221 vupen.com · vdb entry
- 37973 securityfocus.com · vdb entry
- http://intevydis.blogspot.com/2010/01/postgresql-8023-bitsubstr-overflow.html intevydis.blogspot.com
- ADV-2010-1207 vupen.com · vdb entry
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=567058 bugs.debian.org
- ADV-2010-1022 vupen.com · vdb entry
- [pgsql-hackers] 20100107 Re: Patch: Allow substring/replace() to get/set bit values archives.postgresql.org · mailing list
- postgresql-substring-bo(55902) exchange.xforce.ibmcloud.com · vdb entry
- [pgsql-committers] 20100107 pgsql: Make bit/varbit substring() treat any negative length as meaning archives.postgresql.org · mailing list
- oval:org.mitre.oval:def:9720 oval.cisecurity.org · vdb entry, signature
- ADV-2010-1197 vupen.com · vdb entry
Source: the record CVE-2010-0442 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse