CVE-2010-0442
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
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 withsource_tier=community-verified.
Exploits
Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.
Exploit-DB
PostgreSQL - 'bitsubstr' Buffer Overflow
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| postgresql | postgresql | {"startIncluding":"7.4","endExcluding":"7.4.28"} | 7.4.28 |
| postgresql | postgresql | {"startIncluding":"8.0","endExcluding":"8.0.24"} | 8.0.24 |
| postgresql | postgresql | {"startIncluding":"8.1","endExcluding":"8.1.20"} | 8.1.20 |
| postgresql | postgresql | {"startIncluding":"8.2","endExcluding":"8.2.16"} | 8.2.16 |
| postgresql | postgresql | {"startIncluding":"8.3","endExcluding":"8.3.10"} | 8.3.10 |
| postgresql | postgresql | {"startIncluding":"8.4","endExcluding":"8.4.3"} | 8.4.3 |
References
- http://archives.postgresql.org/pgsql-committers/2010-01/msg00125.php
- http://archives.postgresql.org/pgsql-hackers/2010-01/msg00634.php
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=567058
- http://git.postgresql.org/gitweb?p=postgresql.git%3Ba=commit%3Bh=75dea10196c31d98d98c0bafeeb576ae99c09b12
- http://git.postgresql.org/gitweb?p=postgresql.git%3Ba=commit%3Bh=b15087cb39ca9e4bde3c8920fcee3741045d2b83
- http://intevydis.blogspot.com/2010/01/postgresql-8023-bitsubstr-overflow.html
- http://secunia.com/advisories/39566
- http://secunia.com/advisories/39820
- http://secunia.com/advisories/39939
- http://securitytracker.com/id?1023510
- http://ubuntu.com/usn/usn-933-1
- http://www.debian.org/security/2010/dsa-2051
- http://www.mandriva.com/security/advisories?name=MDVSA-2010:103
- http://www.openwall.com/lists/oss-security/2010/01/27/5
- http://www.redhat.com/support/errata/RHSA-2010-0427.html
- http://www.redhat.com/support/errata/RHSA-2010-0428.html
- http://www.redhat.com/support/errata/RHSA-2010-0429.html
- http://www.securityfocus.com/bid/37973
- http://www.vupen.com/english/advisories/2010/1022
- http://www.vupen.com/english/advisories/2010/1197
- http://www.vupen.com/english/advisories/2010/1207
- http://www.vupen.com/english/advisories/2010/1221
- https://bugzilla.redhat.com/show_bug.cgi?id=559194
- https://bugzilla.redhat.com/show_bug.cgi?id=559259
- https://exchange.xforce.ibmcloud.com/vulnerabilities/55902
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.