Skip to content
Noroxi
CVE-2010-0442· NVD / CVE Program· CNA redhat

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 de

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."

MediumCVSS 6.5 · v2.0—Proof of concept Fix available

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for the hundreds of thousands of vulnerabilities in the database; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help
Published
Feb 2, 2010
Updated
Jun 16, 2026
EPSS
13.3% · 96th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

30

Monitor

Low priority for now.

CVSS
26 / 40 · 6.5 / 10
CISA KEV
0 / 30 · Not listed
EPSS
4 / 30 · 13.3%

Affected systems

VendorProduct
postgresqlpostgresql

Using postgresql? Add it to your stack and be the first to know about CVEs like this one. (PostgreSQL)

Add to my stack

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • postgresql postgresql7.4 and later · before 7.4.28
  • postgresql postgresql8.0 and later · before 8.0.24
  • postgresql postgresql8.1 and later · before 8.1.20
  • postgresql postgresql8.2 and later · before 8.2.16
  • postgresql postgresql8.3 and later · before 8.3.10
  • postgresql postgresql8.4 and later · before 8.4.3

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:5.0postgresql-8.3before 8.3.11-0lenny18.3.11-0lenny1
Red Hat:enterprise_linux:3::asrh-postgresqlbefore 0:7.3.21-30:7.3.21-3
Red Hat:enterprise_linux:3::asrh-postgresql-contribbefore 0:7.3.21-30:7.3.21-3
Red Hat:enterprise_linux:3::asrh-postgresql-debuginfobefore 0:7.3.21-30:7.3.21-3
Red Hat:enterprise_linux:3::asrh-postgresql-develbefore 0:7.3.21-30:7.3.21-3
Red Hat:enterprise_linux:3::asrh-postgresql-docsbefore 0:7.3.21-30:7.3.21-3
Red Hat:enterprise_linux:3::asrh-postgresql-jdbcbefore 0:7.3.21-30:7.3.21-3
Red Hat:enterprise_linux:3::asrh-postgresql-libsbefore 0:7.3.21-30:7.3.21-3
Red Hat:enterprise_linux:3::asrh-postgresql-plbefore 0:7.3.21-30:7.3.21-3
Red Hat:enterprise_linux:3::asrh-postgresql-pythonbefore 0:7.3.21-30:7.3.21-3
Red Hat:enterprise_linux:3::asrh-postgresql-serverbefore 0:7.3.21-30:7.3.21-3
Red Hat:enterprise_linux:3::asrh-postgresql-tclbefore 0:7.3.21-30:7.3.21-3
Red Hat:enterprise_linux:3::asrh-postgresql-testbefore 0:7.3.21-30:7.3.21-3
Red Hat:enterprise_linux:4::aspostgresqlbefore 0:7.4.29-1.el4_8.10:7.4.29-1.el4_8.1
Red Hat:enterprise_linux:4::aspostgresql-contribbefore 0:7.4.29-1.el4_8.10:7.4.29-1.el4_8.1
Red Hat:enterprise_linux:4::aspostgresql-debuginfobefore 0:7.4.29-1.el4_8.10:7.4.29-1.el4_8.1
Red Hat:enterprise_linux:4::aspostgresql-develbefore 0:7.4.29-1.el4_8.10:7.4.29-1.el4_8.1
Red Hat:enterprise_linux:4::aspostgresql-docsbefore 0:7.4.29-1.el4_8.10:7.4.29-1.el4_8.1
Red Hat:enterprise_linux:4::aspostgresql-jdbcbefore 0:7.4.29-1.el4_8.10:7.4.29-1.el4_8.1
Red Hat:enterprise_linux:4::aspostgresql-libsbefore 0:7.4.29-1.el4_8.10:7.4.29-1.el4_8.1
Red Hat:enterprise_linux:4::aspostgresql-plbefore 0:7.4.29-1.el4_8.10:7.4.29-1.el4_8.1
Red Hat:enterprise_linux:4::aspostgresql-pythonbefore 0:7.4.29-1.el4_8.10:7.4.29-1.el4_8.1
Red Hat:enterprise_linux:4::aspostgresql-serverbefore 0:7.4.29-1.el4_8.10:7.4.29-1.el4_8.1
Red Hat:enterprise_linux:4::aspostgresql-tclbefore 0:7.4.29-1.el4_8.10:7.4.29-1.el4_8.1

+12

Other highest-scoring records for the same primary product.

  • CVE-2017-7546PostgreSQL versions before 9.2.22, 9.3.18, 9.4.13, 9.5.8 and 9.6.4 are vulnerable to incorrect authentication flaw allowing remote attackers
    57Plan
  • CVE-2019-9193In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_server_program' group to
    55Plan
  • CVE-2020-25695A flaw was found in PostgreSQL versions before 13.1, before 12.5, before 11.10, before 10.15, before 9.6.20 and before 9.5.24.
    49Plan
  • CVE-2007-3280The Database Link library (dblink) in PostgreSQL 8.1 implements functions via CREATE statements that map to arbitrary libraries based on the
    44Plan
  • CVE-2013-1899Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9, and 9.0.x before 9.0.13 allows remote attackers to ca
    42Plan
  • CVE-2018-16850postgresql before versions 11.1, 10.6 is vulnerable to a to SQL injection in pg_upgrade and pg_dump via CREATE TRIGGER ...
    41Plan

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
debian:postgresql-8.38.3.11-0lenny1 · Debian:5.0Package registry (OSV)
red hat:rh-postgresql0:7.3.21-3 · Red Hat:enterprise_linux:3::asPackage registry (OSV)
red hat:rh-postgresql-contrib0:7.3.21-3 · Red Hat:enterprise_linux:3::asPackage registry (OSV)
red hat:rh-postgresql-debuginfo0:7.3.21-3 · Red Hat:enterprise_linux:3::asPackage registry (OSV)
red hat:rh-postgresql-devel0:7.3.21-3 · Red Hat:enterprise_linux:3::asPackage registry (OSV)
red hat:rh-postgresql-docs0:7.3.21-3 · Red Hat:enterprise_linux:3::asPackage registry (OSV)
red hat:rh-postgresql-jdbc0:7.3.21-3 · Red Hat:enterprise_linux:3::asPackage registry (OSV)
red hat:rh-postgresql-libs0:7.3.21-3 · Red Hat:enterprise_linux:3::asPackage registry (OSV)
red hat:rh-postgresql-pl0:7.3.21-3 · Red Hat:enterprise_linux:3::asPackage registry (OSV)
red hat:rh-postgresql-python0:7.3.21-3 · Red Hat:enterprise_linux:3::asPackage registry (OSV)
red hat:rh-postgresql-server0:7.3.21-3 · Red Hat:enterprise_linux:3::asPackage registry (OSV)
red hat:rh-postgresql-tcl0:7.3.21-3 · Red Hat:enterprise_linux:3::asPackage registry (OSV)
red hat:rh-postgresql-test0:7.3.21-3 · Red Hat:enterprise_linux:3::asPackage registry (OSV)

Exploit status

Proof of concept available

A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.

Evidence

  • Exploit-DB entry ×1

Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.

Public exploit evidence
SourceKindDate
Exploit-DB entrydos2010-01-27

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

  1. First PoC-7 d
  2. Published
  3. TodaySep 30, 2026+6084 d
EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • No special conditions are required; it is repeatable.

If successful

Confidentiality
P · data can be read
Integrity
P · data or configuration can be modified
Availability
P · the service can be disrupted
Attack complexity
Low
Confidentiality impact
P
Integrity impact
P
Availability impact
P

Weakness class (CWE)

CWE-189 · Numeric Errors

CVSS vector

AV:N/AC:L/Au:S/C:P/I:P/A:P

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

MITRE has no CAPEC/ATT&CK mapping for this CWE.

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records