The bitsubstr function in backend/utils/adt/varbit.c in PostgreSQL 8.0.23, 8.1.11, and…
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- — Not recorded in CVSS 2.0
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- Partial · Partial · Partial
- Fix status
- Fixed
Attack profile from CVSS 2.0 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-189 and the CVSS impact.
Summary
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."
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* | 7.4 to before 7.4.28; 8.0 to before 8.0.24; 8.1 to before 8.1.20; 8.2 to before 8.2.16; 8.3 to before 8.3.10; 8.4 to before 8.4.3 | Vulnerable | PostgreSQL |
- cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* Versions 7.4 to before 7.4.28; 8.0 to before 8.0.24; 8.1 to before 8.1.20; 8.2 to before 8.2.16; 8.3 to before 8.3.10; 8.4 to before 8.4.3 Vulnerable ·PostgreSQL
Remediation
Red Hat 3 advisories
- RHSA-2010:0429 Released 2010-05-19 · Red Hat rating Moderatepostgresql security update
- Red Hat Enterprise Linux (v. 5 server) postgresql-8.1.21-1.el5_5.1, postgresql-8.1.21-1.el5_5.1.i386, postgresql-8.1.21-1.el5_5.1.ia64 +37
- Red Hat Enterprise Linux Desktop (v. 5 client) postgresql-8.1.21-1.el5_5.1, postgresql-8.1.21-1.el5_5.1.i386, postgresql-contrib-8.1.21-1.el5_5.1 +13
- Red Hat Enterprise Linux Desktop Workstation (v. 5 client) postgresql-8.1.21-1.el5_5.1, postgresql-devel-8.1.21-1.el5_5.1, postgresql-devel-8.1.21-1.el5_5.1.i386 +6
- RHSA-2010:0428 Released 2010-05-19 · Red Hat rating Moderatepostgresql security update
- Red Hat Enterprise Linux AS version 4 postgresql-7.4.29-1.el4_8.1, postgresql-7.4.29-1.el4_8.1.i386, postgresql-7.4.29-1.el4_8.1.ia64 +41
- Red Hat Enterprise Linux Desktop version 4 postgresql-7.4.29-1.el4_8.1, postgresql-7.4.29-1.el4_8.1.i386, postgresql-contrib-7.4.29-1.el4_8.1 +19
- Red Hat Enterprise Linux ES version 4 postgresql-7.4.29-1.el4_8.1, postgresql-7.4.29-1.el4_8.1.i386, postgresql-7.4.29-1.el4_8.1.ia64 +30
- Red Hat Enterprise Linux WS version 4 postgresql-7.4.29-1.el4_8.1, postgresql-7.4.29-1.el4_8.1.i386, postgresql-7.4.29-1.el4_8.1.ia64 +30
- RHSA-2010:0427 Released 2010-05-19 · Red Hat rating Moderatepostgresql security update
- Red Hat Desktop version 3 rh-postgresql-7.3.21-3, rh-postgresql-7.3.21-3.i386, rh-postgresql-contrib-7.3.21-3 +19
- Red Hat Enterprise Linux AS version 3 rh-postgresql-7.3.21-3, rh-postgresql-7.3.21-3.i386, rh-postgresql-7.3.21-3.ia64 +41
- Red Hat Enterprise Linux ES version 3 rh-postgresql-7.3.21-3, rh-postgresql-7.3.21-3.i386, rh-postgresql-7.3.21-3.ia64 +30
- Red Hat Enterprise Linux WS version 3 rh-postgresql-7.3.21-3, rh-postgresql-7.3.21-3.i386, rh-postgresql-7.3.21-3.ia64 +30
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Desktop version 3 | Fixed | RHSA-2010:0427 |
| Red Hat Enterprise Linux (v. 5 server) | Fixed | RHSA-2010:0429 |
| Red Hat Enterprise Linux AS version 3 | Fixed | RHSA-2010:0427 |
| Red Hat Enterprise Linux AS version 4 | Fixed | RHSA-2010:0428 |
| Red Hat Enterprise Linux Desktop (v. 5 client) | Fixed | RHSA-2010:0429 |
| Red Hat Enterprise Linux Desktop Workstation (v. 5 client) | Fixed | RHSA-2010:0429 |
| Red Hat Enterprise Linux Desktop version 4 | Fixed | RHSA-2010:0428 |
| Red Hat Enterprise Linux ES version 3 | Fixed | RHSA-2010:0427 |
| Red Hat Enterprise Linux ES version 4 | Fixed | RHSA-2010:0428 |
| Red Hat Enterprise Linux WS version 3 | Fixed | RHSA-2010:0427 |
| Red Hat Enterprise Linux WS version 4 | Fixed | RHSA-2010:0428 |
Timeline
- 2026-10-02 Threatist record created from CVE-2010-0442
- 2026-10-03 Alias added: GHSA-gv9m-x3m7-x4g8
References
Advisory 16
- RHSA-2010:0427
- RHSA-2010:0428
- DSA-2051
- USN-933-1
- [oss-security] 20100127 Re: CVE id request: postgresql bitsubstr overflow
- 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://bugs.debian.org/cgi-bin/bugreport.cgi?bug=567058
- [pgsql-hackers] 20100107 Re: Patch: Allow substring/replace() to get/set bit values
- https://bugzilla.redhat.com/show_bug.cgi?id=559259
- [pgsql-committers] 20100107 pgsql: Make bit/varbit substring() treat any negative length as meaning
- RHSA-2010:0429
- oval:org.mitre.oval:def:9720
- https://bugzilla.redhat.com/show_bug.cgi?id=559194
- MDVSA-2010:103
More Postgresql vulnerabilities
- TI-2019-06651 In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and… CVSS 3.0HIGH 7.2
- TI-2017-05187 Improper authentication in postgresql CVSS 3.0CRITICAL 9.8
- TI-2020-15711 SQL injection in postgresql CVSS 3.1HIGH 8.8
- TI-2013-01675 Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9… CVSS 2.0MEDIUM 6.5
- TI-2007-03176 The Database Link library (dblink) in PostgreSQL 8.1 implements functions via CREATE… CVSS 2.0HIGH 9.0
- TI-2022-01423 SQL injection in postgresql CVSS 3.1HIGH 8.8
Sources
- CVE-2010-0442 · CVE Program
- CVE-2010-0442 · NVD
- FIRST EPSS
- GHSA-gv9m-x3m7-x4g8 · GitHub Advisory Database · CC BY 4.0
- CVE-2010-0442 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences