postgresql: substring() negative length argument buffer overflow
Published Feb 2, 2010
6.5
MEDIUMCVSS 2.0
EPSS 13.26%
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
No data.
- ≥ 7.4 · < 7.4.28
- ≥ 8.0 · < 8.0.24
- ≥ 8.1 · < 8.1.20
- ≥ 8.2 · < 8.2.16
- ≥ 8.3 · < 8.3.10
- ≥ 8.4 · < 8.4.3
No data.
Red Hat Enterprise Linux 3
rh-postgresql-0:7.3.21-3
Fixed · RHSA-2010:0427
Red Hat Enterprise Linux 4
postgresql-0:7.4.29-1.el4_8.1
Fixed · RHSA-2010:0428
Red Hat Enterprise Linux 5
postgresql-0:8.1.21-1.el5_5.1
Fixed · RHSA-2010:0429
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 3 | rh-postgresql-0:7.3.21-3 | Fixed | RHSA-2010:0427 |
| Red Hat Enterprise Linux 4 | postgresql-0:7.4.29-1.el4_8.1 | Fixed | RHSA-2010:0428 |
| Red Hat Enterprise Linux 5 | postgresql-0:8.1.21-1.el5_5.1 | Fixed | RHSA-2010:0429 |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:N/AC:L/Au:S/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (19 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 13.26% (0.13255) | 96.27th | v5 (v2026.06.15) |
| Jun 15, 2026 | 13.26% (0.13255) | 95.88th | v5 (v2026.06.15) |
| May 2, 2026 | 9.97% (0.09972) | 93.07th | v4 (v2025.03.14) |
| Apr 30, 2026 | 7.60% (0.07597) | 91.87th | v4 (v2025.03.14) |
| Feb 25, 2026 | 13.53% (0.13526) | 94.07th | v4 (v2025.03.14) |
| Jun 3, 2025 | 16.19% (0.16189) | 94.50th | v4 (v2025.03.14) |
| Mar 30, 2025 | 13.53% (0.13526) | 93.61th | v4 (v2025.03.14) |
| Mar 29, 2025 | 28.43% (0.28435) | 94.47th | v4 (v2025.03.14) |
| Mar 17, 2025 | 13.53% (0.13526) | 93.68th | v4 (v2025.03.14) |
| Dec 17, 2024 | 72.49% (0.72490) | 98.27th | v3 (v2023.03.01) |
| Jun 21, 2024 | 95.61% (0.95606) | 99.42th | v3 (v2023.03.01) |
| Mar 22, 2024 | 96.00% (0.96001) | 99.44th | v3 (v2023.03.01) |
| Sep 26, 2023 | 96.21% (0.96207) | 99.33th | v3 (v2023.03.01) |
| Jul 8, 2023 | 96.36% (0.96365) | 99.32th | v3 (v2023.03.01) |
| May 19, 2023 | 96.06% (0.96064) | 99.18th | v3 (v2023.03.01) |
| Mar 7, 2023 | 96.36% (0.96365) | 99.21th | v3 (v2023.03.01) |
| Mar 6, 2023 | 11.06% (0.11063) | 94.88th | v2 (v2022.01.01) |
| Apr 1, 2022 | 11.06% (0.11063) | 94.45th | v2 (v2022.01.01) |
| Feb 4, 2022 | 11.06% (0.11063) | 88.54th | v2 (v2022.01.01) |
References (29)
- http://archives.postgresql.org/pgsql-committers/2010-01/msg00125.php mailing-listx_refsource_MLISTVendor Advisory
- http://archives.postgresql.org/pgsql-hackers/2010-01/msg00634.php mailing-listx_refsource_MLISTVendor Advisory
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=567058 x_refsource_MISCThird Party Advisory
- http://git.postgresql.org/gitweb?p=postgresql.git%3Ba=commit%3Bh=75dea10196c31d98d98c0bafeeb576ae99c09b12 x_refsource_CONFIRMVendor Advisory
- http://git.postgresql.org/gitweb?p=postgresql.git%3Ba=commit%3Bh=b15087cb39ca9e4bde3c8920fcee3741045d2b83 x_refsource_CONFIRMVendor Advisory
- http://intevydis.blogspot.com/2010/01/postgresql-8023-bitsubstr-overflow.html x_refsource_MISCThird Party Advisory
- http://secunia.com/advisories/39566 third-party-advisoryx_refsource_SECUNIABroken Link
- http://secunia.com/advisories/39820 third-party-advisoryx_refsource_SECUNIABroken Link
- http://secunia.com/advisories/39939 third-party-advisoryx_refsource_SECUNIABroken Link
- http://securitytracker.com/id?1023510 vdb-entryx_refsource_SECTRACKThird Party AdvisoryVDB Entry
- http://ubuntu.com/usn/usn-933-1 vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- http://www.debian.org/security/2010/dsa-2051 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- http://www.mandriva.com/security/advisories?name=MDVSA-2010:103 vendor-advisoryx_refsource_MANDRIVABroken Link
- http://www.openwall.com/lists/oss-security/2010/01/27/5 mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- http://www.redhat.com/support/errata/RHSA-2010-0427.html vendor-advisoryx_refsource_REDHATThird Party Advisory
- http://www.redhat.com/support/errata/RHSA-2010-0428.html vendor-advisoryx_refsource_REDHATThird Party Advisory
- http://www.redhat.com/support/errata/RHSA-2010-0429.html vendor-advisoryx_refsource_REDHATThird Party Advisory
- http://www.securityfocus.com/bid/37973 vdb-entryx_refsource_BIDExploitThird Party AdvisoryVDB Entry
- http://www.vupen.com/english/advisories/2010/1022 vdb-entryx_refsource_VUPENPermissions Required
- http://www.vupen.com/english/advisories/2010/1197 vdb-entryx_refsource_VUPENPermissions Required
- http://www.vupen.com/english/advisories/2010/1207 vdb-entryx_refsource_VUPENPermissions Required
- http://www.vupen.com/english/advisories/2010/1221 vdb-entryx_refsource_VUPENPermissions Required
- https://access.redhat.com/security/cve/CVE-2010-0442 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=559194 x_refsource_CONFIRMIssue TrackingThird Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=559259 x_refsource_CONFIRMIssue TrackingThird Party Advisory
- https://exchange.xforce.ibmcloud.com/vulnerabilities/55902 vdb-entryx_refsource_XFThird Party AdvisoryVDB Entry
- https://nvd.nist.gov/vuln/detail/CVE-2010-0442
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9720 vdb-entrysignaturex_refsource_OVALThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2010-0442
Change history (0)
No recorded changes yet.