CVEfocus › CVE database › CVE-2026-78183

CVE-2026-78183DBD::Pg version 3.21.0 for Perl has a heap out-of-bounds write in quote_float

CVSS 9.8 CriticalEPSS 0.7% (higher than 47% of CVEs)Published 2026-08-23Updated 2026-08-25Assigner: CPANSec

DBD::Pg version 3.21.0 for Perl has a heap out-of-bounds write in quote_float. quote_float() allocates the length of the string + 1, which is the size of the bare numeric symbol plus NULL. But for special literals NaN, Inf, +Inf, -Inf, Infinity, +Infinity, -Infinity it emits the literal surrounded by quotes plus NULL, which is length + 3 bytes. Every recognised literal (case-insensitive) overflows by 2 bytes, a single quote and a NULL. This can be reached by the $dbh->quote method, for example $dbh->quote( "Infinity", DBI::SQL_NUMERIC ). This regression was introduced in 3.21.0 by the quote.c rewrite.

CWE-787

What to do

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fix pending
9Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libdbd-pg-perlFix pendingUBUNTU-CVE-2026-78183
Ubuntu 26.04libdbd-pg-perlNot affected
vulnerable_code_not_present
Ubuntu 24.04libdbd-pg-perlNot affected
vulnerable_code_not_present
Ubuntu 22.04libdbd-pg-perlNot affected
vulnerable_code_not_present
Ubuntu 20.04libdbd-pg-perlFix pendingUBUNTU-CVE-2026-78183
Ubuntu 18.04libdbd-pg-perlFix pendingUBUNTU-CVE-2026-78183
Red Hat Enterprise Linux 10perl-DBD-PgNot affected
Red Hat Enterprise Linux 9perl-DBD-PgNot affected
Red Hat Enterprise Linux 8perl-DBD-PgNot affected
Red Hat Enterprise Linux 7perl-DBD-PgNot affected
Red Hat Enterprise Linux 7perl-DBD-Pg-testsNot affected
Red Hat Enterprise Linux 6perl-DBD-PgNot affected

What the vendor says

As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Solution: Upgrade to version 3.21.1 or later.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.