CPANSA-DBI-2026-111879: DBI vulnerability
| Publisher | giterlizzi | Document category | csaf_security_advisory |
|---|---|---|---|
| Initial release date | 2026-10-20T00:00:00 | Engine | CSAF Perl Toolkit 0.26 |
| Current release date | 2026-10-20T00:00:00 | Build Date | |
| Current version | 1 | Status | final |
| CVSS v3.1 Base Score | 6.5 | Severity | Medium |
| Original language | Language | en | |
| Also referred to | |||
Vulnerability Description
DBI versions before 1.656 for Perl hang on a later open of a DBD::DBM table because a failed open_data does not release the table's lock.
open_data creates the table's lock file and takes an exclusive flock on it for a CREATE, before the checks that can croak: a dbm_mldbm value that is not a module name, a failing tie, or a missing data file. The croak unwinds before the table object is blessed, so nothing releases the lock, and the meta data holding the open descriptor stays cached on the database handle.
The dbm_mldbm and dbm_type values come from the DSN or the connect attributes, so a caller that chooses the serializer or the storage backend can trigger the failure.
The flock has no timeout, so a later open of that table (even through a separate database handle) blocks for as long as the handle holding the stale lock lives, in the same process or any other.
Vulnerabilities
CVE-2026-111879
Vulnerability DescriptionDBI versions before 1.656 for Perl hang on a later open of a DBD::DBM table because a failed open_data does not release the table's lock.
open_data creates the table's lock file and takes an exclusive flock on it for a CREATE, before the checks that can croak: a dbm_mldbm value that is not a module name, a failing tie, or a missing data file. The croak unwinds before the table object is blessed, so nothing releases the lock, and the meta data holding the open descriptor stays cached on the database handle.
The dbm_mldbm and dbm_type values come from the DSN or the connect attributes, so a caller that chooses the serializer or the storage backend can trigger the failure.
The flock has no timeout, so a later open of that table (even through a separate database handle) blocks for as long as the handle holding the stale lock lives, in the same process or any other.
| Weakness | CWE-667 : Improper Locking |
|---|
Product status
Known affected
| Product | Score | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| DBI less than 1.656 |
|
Fixed
- DBI greater than or equal 1.656
giterlizzi
Namespace: https://github.com/giterlizzi/
gdt@cpan.org
References
- CPANSA-DBI-2026-111879 JSON self
https://raw.githubusercontent.com/giterlizzi/perl-CPANSA-CSAF/develop/csaf/white/2026/cpansa-dbi-2026-111879.json - https://github.com/perl5-dbi/dbi/commit/99bbf2ab9d137e6f042a770bd3bbba3bc0b3a901.patch external
https://github.com/perl5-dbi/dbi/commit/99bbf2ab9d137e6f042a770bd3bbba3bc0b3a901.patch - https://github.com/perl5-dbi/dbi/security/advisories/GHSA-8cx8-9vj9-9x7j external
https://github.com/perl5-dbi/dbi/security/advisories/GHSA-8cx8-9vj9-9x7j - https://metacpan.org/release/HMBRAND/DBI-1.656/changes external
https://metacpan.org/release/HMBRAND/DBI-1.656/changes - http://www.openwall.com/lists/oss-security/2026/10/20/38 external
http://www.openwall.com/lists/oss-security/2026/10/20/38 - CVE-2026-111879 (NVD) external
https://nvd.nist.gov/vuln/detail/CVE-2026-111879
Revision history
| Version | Date of the revision | Summary of the revision |
|---|---|---|
| 1 | Tue Oct 20 00:00:00 2026 | First release |
Sharing rules
TLP:WHITE
For the TLP version see: https://www.first.org/tlp/