CVE-2026-78183DBD::Pg version 3.21.0 for Perl has a heap out-of-bounds write in quote_float
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libdbd-pg-perl | Fix pending | UBUNTU-CVE-2026-78183 | |
| Ubuntu 26.04 | libdbd-pg-perl | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | libdbd-pg-perl | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | libdbd-pg-perl | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | libdbd-pg-perl | Fix pending | UBUNTU-CVE-2026-78183 | |
| Ubuntu 18.04 | libdbd-pg-perl | Fix pending | UBUNTU-CVE-2026-78183 | |
| Red Hat Enterprise Linux 10 | perl-DBD-Pg | Not affected | ||
| Red Hat Enterprise Linux 9 | perl-DBD-Pg | Not affected | ||
| Red Hat Enterprise Linux 8 | perl-DBD-Pg | Not affected | ||
| Red Hat Enterprise Linux 7 | perl-DBD-Pg | Not affected | ||
| Red Hat Enterprise Linux 7 | perl-DBD-Pg-tests | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-DBD-Pg | Not 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.
- DBD-Pg: affected: 3.21.0
Solution: Upgrade to version 3.21.1 or later.
Vendor advisories:
- https://github.com/bucardo/dbdpg/security/advisories/GHSA-785p-fw3v-r822 (vendor-advisory)
- https://metacpan.org/release/TURNSTEP/DBD-Pg-3.21.1/source/Changes (release-notes)
- https://github.com/bucardo/dbdpg/commit/6d6f47ed2403cda55c82b1bad56e388ba7390065.patch (patch)
References
- https://github.com/bucardo/dbdpg/security/advisories/GHSA-785p-fw3v-r822
- https://metacpan.org/release/TURNSTEP/DBD-Pg-3.21.1/source/Changes
- https://github.com/bucardo/dbdpg/commit/6d6f47ed2403cda55c82b1bad56e388ba7390065.patch
- https://github.com/bucardo/dbdpg/commit/adacf1de872326a465e13f9e4281a674ebcd227e
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.