CVE-2026-120361
JSON

Not scored

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

Severity
Not scored
Exploit likelihood
0.40% (higher than 36% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
CPANSec

Description

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.

Affected

Product or packageVersionsReported by
FindBin-libsfrom 4.0.1 before 5.4.0CVE List

Classification

References

Sources

SourceRecordLicence
CVE ListCVE-2026-120361 changed 2026-11-30CVE Terms of Use