{"id":"CVE-2026-108518","summary":"DBI versions before 1.656 for Perl crash via type confusion in dbi_profile when a database handle is destroyed under a Profile Path with an {attr} element","details":"DBI versions before 1.656 for Perl crash via type confusion in dbi_profile when a database handle is destroyed under a Profile Path with an {attr} element.\n\nAn {attr} element names a database handle attribute, which dbi_profile reads from the handle's inner hash. It expects the inner handle as a reference and dereferences it, but a handle that is being destroyed hands back the inner hash itself, so the dereference yields the hash's bucket array. A type check on that pointer usually fails and the call goes unprofiled. When the memory it addresses passes the check, the attribute lookup dereferences a NULL or invalid pointer and the process dies on SIGSEGV.\n\nThe Path is set by the application, by the Profile handle attribute, or by the DBI_PROFILE environment variable, so `DBI_PROFILE={ImplementorClass}` can crash an unmodified program.","aliases":["GHSA-7393-6f8r-fhh3"],"modified":"2026-10-21T17:42:30.164038903Z","published":"2026-10-20T21:23:13.373Z","related":["openSUSE-SU-2026:12201-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/108xxx/CVE-2026-108518.json","cna_assigner":"CPANSec","cwe_ids":["CWE-843"]},"references":[{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2026/10/20/37"},{"type":"WEB","url":"https://cpan.org/modules"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/108xxx/CVE-2026-108518.json"},{"type":"PACKAGE","url":"https://github.com/perl5-dbi/dbi"},{"type":"FIX","url":"https://github.com/perl5-dbi/dbi/commit/c2ff4df575d7af625bb4d0d1ef7539f90b22d8b2.patch"},{"type":"ADVISORY","url":"https://github.com/perl5-dbi/dbi/security/advisories/GHSA-7393-6f8r-fhh3"},{"type":"ADVISORY","url":"https://metacpan.org/release/HMBRAND/DBI-1.656/changes"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-108518"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/perl5-dbi/dbi","events":[{"introduced":"0"},{"fixed":"1c71a976433b46da98b4844d2ae01326b5a242d7"},{"fixed":"c2ff4df575d7af625bb4d0d1ef7539f90b22d8b2"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"0"},{"fixed":"1.656"}],"source":"AFFECTED_FIELD"},{"range":[{"fixed":"c2ff4df575d7af625bb4d0d1ef7539f90b22d8b2"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["1.655","1.654","1.653","1.652","1.651","1.650","1.649","1.648","1.647","1.646","1.645","1.644","1.643_02","1.643_01","1.643","1.642","1.641","1.640","1.639","1.638","1.637","1.636","1.635","1.634","1.633_92","1.633_91","1.633_90","1.633","1.632_90","1.632","1.631","1.630","1.628","1.627","1.626","1.625","1.624","1.622","1.619","1.618","1.615","1.614_90","1.613_93","1.613_92","1.613_91","1.613_90","1.613_71","1.613_70","1.611_94","1.611_93","1.611_92","1.611_91","1.611_90","1.607","1.602","DBI-1.58","DBI-1.57","DBI-1.51","DBI-1.47"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-108518.json"}}],"schema_version":"1.9.0"}