CVE catalog

CVE-2026-78183

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 s

[CVE catalog]

Severity
Critical · CVSS 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
Updated
Source
[NVD] · [CVE record]
EPSS
0.67% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlibdbd-pg-perlsid3.21.2-1not affected
Debianlibdbd-pg-perlforky3.21.2-1not affected
Debianlibdbd-pg-perltrixie3.18.0-1not affected
Debianlibdbd-pg-perlbookworm3.16.0-2not affected
Opensuseperl-DBD-Pgtumbleweed3.21.2-1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibdbd-pg-perlsourcesidNot affectedunimportantNot reportedNot reported
Debianlibdbd-pg-perlsourceforkyNot affectedunimportantNot reportedNot reported
Debianlibdbd-pg-perlsourcetrixieNot affectedunimportantNot reportedNot reported
Debianlibdbd-pg-perlsourcebookwormNot affectedunimportantNot reportedNot reported
Opensuseperl-DBD-Pgrpmtumbleweed3.21.2-1.1Not reportedOPENSUSE-SU-2026:11722-1Not reported

OpenFactory catalog packages

[openSUSE Tumbleweed]

  • [perl-DBD-Pg]Affected

    Source package: [perl-DBD-Pg]

    Details (1)
    • 3.20.2-1.4 · x86_64 · tumbleweed

      Affected · Fixed: 3.21.2-1.1

      nvd · perl-DBD-Pg · opensuse · tumbleweed

[Debian 12 (Bookworm)]

  • [libdbd-pg-perl]Not affected
    Details (2)
    • 3.16.0-2 · amd64 · bookworm

      Not affected

      nvd · libdbd-pg-perl · debian · bookworm

    • 3.16.0-2 · arm64 · bookworm

      Not affected

      nvd · libdbd-pg-perl · debian · bookworm

Observed:

References