{"id":"UBUNTU-CVE-2026-78183","details":"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-\u003equote method, for example     $dbh-\u003equote( \"Infinity\", DBI::SQL_NUMERIC ). This regression was introduced in 3.21.0 by the quote.c rewrite.","modified":"2026-09-02T19:36:47.444452326Z","published":"2026-08-23T20:16:00Z","upstream":["CVE-2026-78183"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-78183"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-78183"},{"type":"REPORT","url":"https://lists.security.metacpan.org/cve-announce/msg/42931839/"},{"type":"REPORT","url":"https://github.com/bucardo/dbdpg/security/advisories/GHSA-785p-fw3v-r822"}],"affected":[{"package":{"name":"libdbd-pg-perl","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/libdbd-pg-perl?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.5.1-1","3.5.3-1","3.5.3-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libdbd-pg-perl","binary_version":"3.5.3-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-78183.json"}},{"package":{"name":"libdbd-pg-perl","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/libdbd-pg-perl?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.6.2-2build1","3.7.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.7.0-1","binary_name":"libdbd-pg-perl"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-78183.json"}},{"package":{"name":"libdbd-pg-perl","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/libdbd-pg-perl?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.9.1-1","3.9.1-1build1","3.10.0-2","3.10.3-1","3.10.4-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libdbd-pg-perl","binary_version":"3.10.4-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-78183.json"}},{"package":{"name":"libdbd-pg-perl","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/libdbd-pg-perl?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.14.2-1build1","3.15.0-2","3.15.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libdbd-pg-perl","binary_version":"3.15.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-78183.json"}},{"package":{"name":"libdbd-pg-perl","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/libdbd-pg-perl?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.16.3-1","3.17.0-1","3.18.0-1","3.18.0-1build1","3.18.0-1build2","3.18.0-1build3"],"ecosystem_specific":{"binaries":[{"binary_name":"libdbd-pg-perl","binary_version":"3.18.0-1build3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-78183.json"}},{"package":{"name":"libdbd-pg-perl","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/libdbd-pg-perl?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.18.0-2","3.18.0-4"],"ecosystem_specific":{"binaries":[{"binary_name":"libdbd-pg-perl","binary_version":"3.18.0-4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-78183.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}