CVE-2019-20919
Description
A NULL pointer dereference in the DBI module before 1.643 for Perl allows denial of service via a crafted Profile attribute.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
A NULL pointer dereference in the DBI module before 1.643 for Perl allows denial of service via a crafted Profile attribute.
Vulnerability
The vulnerability is a NULL pointer dereference in the dbi_profile() function of the Perl DBI module (versions before 1.643). The code checks if a profile variable is NULL but then calls SvOK(profile) without guarding against NULL, leading to a crash. [2][3]
Exploitation
An attacker can exploit this by providing a non-hash reference as the Profile attribute to a database handle, causing the vulnerable code path to be triggered. The attacker does not need authentication if they can influence the profile attribute. [2]
Impact
Successful exploitation causes a denial of service due to a segmentation fault (NULL pointer dereference). This can crash the Perl process. [2]
Mitigation
The issue is fixed in DBI version 1.643, released on or before the commit date (2020-09-17). Upgrade to version 1.643 or later. Users unable to upgrade should ensure that the Profile attribute is not set to a non-hash reference. [2][3]
AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
30- Perl/DBI moduledescription
- Range: < 1.643
- osv-coords28 versionspkg:rpm/opensuse/perl-DBI&distro=openSUSE%20Leap%2015.1pkg:rpm/opensuse/perl-DBI&distro=openSUSE%20Leap%2015.2pkg:rpm/opensuse/perl-DBI&distro=openSUSE%20Tumbleweedpkg:rpm/suse/perl-DBI&distro=HPE%20Helion%20OpenStack%208pkg:rpm/suse/perl-DBI&distro=SUSE%20Enterprise%20Storage%205pkg:rpm/suse/perl-DBI&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-ESPOSpkg:rpm/suse/perl-DBI&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-LTSSpkg:rpm/suse/perl-DBI&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP1pkg:rpm/suse/perl-DBI&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP2pkg:rpm/suse/perl-DBI&distro=SUSE%20Linux%20Enterprise%20Point%20of%20Sale%2011%20SP3pkg:rpm/suse/perl-DBI&distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP4-LTSSpkg:rpm/suse/perl-DBI&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-BCLpkg:rpm/suse/perl-DBI&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-LTSSpkg:rpm/suse/perl-DBI&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-BCLpkg:rpm/suse/perl-DBI&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-LTSSpkg:rpm/suse/perl-DBI&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4-LTSSpkg:rpm/suse/perl-DBI&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/perl-DBI&distro=SUSE%20Linux%20Enterprise%20Server%2015-LTSSpkg:rpm/suse/perl-DBI&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP2pkg:rpm/suse/perl-DBI&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP3pkg:rpm/suse/perl-DBI&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP4pkg:rpm/suse/perl-DBI&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/perl-DBI&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015pkg:rpm/suse/perl-DBI&distro=SUSE%20OpenStack%20Cloud%207pkg:rpm/suse/perl-DBI&distro=SUSE%20OpenStack%20Cloud%208pkg:rpm/suse/perl-DBI&distro=SUSE%20OpenStack%20Cloud%209pkg:rpm/suse/perl-DBI&distro=SUSE%20OpenStack%20Cloud%20Crowbar%208pkg:rpm/suse/perl-DBI&distro=SUSE%20OpenStack%20Cloud%20Crowbar%209
< 1.639-lp151.3.13.1+ 27 more
- (no CPE)range: < 1.639-lp151.3.13.1
- (no CPE)range: < 1.642-lp152.2.6.1
- (no CPE)range: < 1.643-4.1
- (no CPE)range: < 1.628-5.6.1
- (no CPE)range: < 1.628-5.6.1
- (no CPE)range: < 1.639-3.11.1
- (no CPE)range: < 1.639-3.11.1
- (no CPE)range: < 1.639-3.11.1
- (no CPE)range: < 1.642-3.6.1
- (no CPE)range: < 1.607-3.6.1
- (no CPE)range: < 1.607-3.6.1
- (no CPE)range: < 1.628-5.6.1
- (no CPE)range: < 1.628-5.6.1
- (no CPE)range: < 1.628-5.6.1
- (no CPE)range: < 1.628-5.6.1
- (no CPE)range: < 1.628-5.6.1
- (no CPE)range: < 1.628-5.6.1
- (no CPE)range: < 1.639-3.11.1
- (no CPE)range: < 1.628-5.6.1
- (no CPE)range: < 1.628-5.6.1
- (no CPE)range: < 1.628-5.6.1
- (no CPE)range: < 1.628-5.6.1
- (no CPE)range: < 1.639-3.11.1
- (no CPE)range: < 1.628-5.6.1
- (no CPE)range: < 1.628-5.6.1
- (no CPE)range: < 1.628-5.6.1
- (no CPE)range: < 1.628-5.6.1
- (no CPE)range: < 1.628-5.6.1
Patches
21 file changed · +1 −1
DBI.pm+1 −1 modified@@ -11,7 +11,7 @@ package DBI; require 5.008_001; BEGIN { -our $XS_VERSION = our $VERSION = "1.642"; # ==> ALSO update the version in the pod text below! +our $XS_VERSION = our $VERSION = "1.643"; # ==> ALSO update the version in the pod text below! $VERSION = eval $VERSION; }
eca7d7c8f43dFix a NULL profile dereference in dbi_profile()
1 file changed · +6 −2
DBI.xs+6 −2 modified@@ -2888,8 +2888,12 @@ dbi_profile(SV *h, imp_xxh_t *imp_xxh, SV *statement_sv, SV *method, NV t1, NV t mg_get(profile); /* FETCH */ if (!profile || !SvROK(profile)) { DBIc_set(imp_xxh, DBIcf_Profile, 0); /* disable */ - if (SvOK(profile) && !PL_dirty) - warn("Profile attribute isn't a hash ref (%s,%ld)", neatsvpv(profile,0), (long)SvTYPE(profile)); + if (!PL_dirty) { + if (!profile) + warn("Profile attribute does not exist"); + else if (SvOK(profile)) + warn("Profile attribute isn't a hash ref (%s,%ld)", neatsvpv(profile,0), (long)SvTYPE(profile)); + } return &PL_sv_undef; }
Vulnerability mechanics
Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
7- lists.opensuse.org/opensuse-security-announce/2020-10/msg00012.htmlmitrevendor-advisoryx_refsource_SUSE
- lists.opensuse.org/opensuse-security-announce/2020-10/msg00013.htmlmitrevendor-advisoryx_refsource_SUSE
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JXLKODJ7B57GITDEZZXNSHPK4VBYXYHR/mitrevendor-advisoryx_refsource_FEDORA
- usn.ubuntu.com/4534-1/mitrevendor-advisoryx_refsource_UBUNTU
- github.com/perl5-dbi/dbi/commit/eca7d7c8f43d96f6277e86d1000e842eb4cc67ffmitrex_refsource_MISC
- lists.debian.org/debian-lts-announce/2020/09/msg00026.htmlmitremailing-listx_refsource_MLIST
- metacpan.org/pod/distribution/DBI/Changesmitrex_refsource_MISC
News mentions
0No linked articles in our index yet.