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

Critical 9.8 Published Updated

A heap out-of-bounds write in DBD::Pg allows attackers to cause memory corruption or execute code via crafted numeric inputs.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-78183?

CVE-2026-78183 is a critical memory corruption vulnerability in perl-DBD-Pg, published on 23 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-787

Which versions are affected by CVE-2026-78183?

Linux distribution packages (1)
perl-DBD-Pg openSUSE:TumbleweedAll versions3.21.2-1.1

How do I fix CVE-2026-78183?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-78183 being exploited?

There is no known exploitation of CVE-2026-78183 in the wild and no public exploit code.

Sources

Also known as GHSA-6mq2-jf7v-pvjx, GHSA-785p-fw3v-r822, UBUNTU-CVE-2026-78183, openSUSE-SU-2026:11722-1.

Is CVE-2026-78183 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free