FindBin::Bin versions from 4.0.1 before 5.4.0 for Perl execute code from the script's directory...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| CPANFindBin-libs |
≥ 4.0.1, < 5.4.0→ 5.4.0 |
5.4.0 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-120361 libfindbin-libs-perl No fixed version in this record
- Ubuntu UBUNTU-CVE-2026-120361 libfindbin-libs-perl No fixed version in this record
Original description The description as published by the source.
FindBin::Bin versions from 4.0.1 before 5.4.0 for Perl execute code from the script's directory name via a string eval.
The module defines Bin by interpolating the script's directory, or the current directory for perl -e, into a single-quoted literal inside a string eval, without escaping. A single quote in any directory name ends the literal and the rest of the name is compiled as Perl code. FindBin::Bin is installed only on Perl 5.40 and later, and FindBin::libs loads it.
An attacker who can name a directory can run code as any user who runs a script inside it.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- package gitlab.com
- web metacpan.org
- web cpan.org
- web nvd.nist.gov
- web github.com