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 denial of service (daemon crash) or have unspecified other imp...
MediumCVSS 6.5
EPSS 13.3%
PoC
- Published
- Updated
- Exploit status
- Proof-of-concept only
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."
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| postgresql | >= 7.4, < 7.4.28 | 7.4.28 |
| postgresql | >= 8.0, < 8.0.24 | 8.0.24 |
| postgresql | >= 8.1, < 8.1.20 | 8.1.20 |
| postgresql | >= 8.2, < 8.2.16 | 8.2.16 |
| postgresql | >= 8.3, < 8.3.10 | 8.3.10 |
| postgresql | >= 8.4, < 8.4.3 | 8.4.3 |
References
- [pgsql-committers] 20100107 pgsql: Make bit/varbit substring() treat any negative length as meaning mailing-list vendor-advisory
- [pgsql-hackers] 20100107 Re: Patch: Allow substring/replace() to get/set bit values mailing-list vendor-advisory
- bugs.debian.org third-party-advisory
- git.postgresql.org vendor-advisory
- git.postgresql.org vendor-advisory
- intevydis.blogspot.com third-party-advisory
- 39566 broken-link third-party-advisory
- 39820 broken-link third-party-advisory
- 39939 broken-link third-party-advisory
- 1023510 third-party-advisory vdb-entry
- USN-933-1 third-party-advisory vendor-advisory
- DSA-2051 third-party-advisory vendor-advisory
- MDVSA-2010:103 broken-link vendor-advisory
- [oss-security] 20100127 Re: CVE id request: postgresql bitsubstr overflow mailing-list third-party-advisory
- RHSA-2010:0427 third-party-advisory vendor-advisory
- RHSA-2010:0428 third-party-advisory vendor-advisory
- RHSA-2010:0429 third-party-advisory vendor-advisory
- 37973 exploit third-party-advisory vdb-entry
- ADV-2010-1022 permissions-required vdb-entry
- ADV-2010-1197 permissions-required vdb-entry
- ADV-2010-1207 permissions-required vdb-entry
- ADV-2010-1221 permissions-required vdb-entry
- bugzilla.redhat.com issue-tracking third-party-advisory
- bugzilla.redhat.com issue-tracking third-party-advisory
- postgresql-substring-bo(55902) third-party-advisory vdb-entry
- oval:org.mitre.oval:def:9720 signature third-party-advisory vdb-entry