# CVE-2026-120361: 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 yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Published: 2026-11-30T00:26:32.269Z
- Modified: 2026-11-30T00:26:32.269Z
- Weaknesses: CWE-95
- 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.

(As written by CVE List.)

## Affected

- FindBin-libs: from 4.0.1 before 5.4.0

## References

- <https://metacpan.org/release/LEMBARK/FindBin-libs-v5.4.0/changes> (release-notes)

## Sources

- CVE List: [CVE-2026-120361](https://www.cve.org/CVERecord?id=CVE-2026-120361), CVE Terms of Use, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-120361 · Whole record: https://cve.day/CVE-2026-120361.json · Rebuilt by cve.day 2026-11-30T00:42:09.928Z
