{"id":"CVE-2026-120361","summary":"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","details":"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.\n\nThe 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.\n\nAn attacker who can name a directory can run code as any user who runs a script inside it.","modified":"2026-11-30T02:00:10.093177750Z","published":"2026-11-30T00:26:32.269Z","database_specific":{"cna_assigner":"CPANSec","cwe_ids":["CWE-95"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120361.json"},"references":[{"type":"WEB","url":"https://cpan.org/modules"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120361.json"},{"type":"PACKAGE","url":"https://gitlab.com/lembark/findbin-libs"},{"type":"ADVISORY","url":"https://metacpan.org/release/LEMBARK/FindBin-libs-v5.4.0/changes"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-120361"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://gitlab.com/lembark/findbin-libs","events":[{"introduced":"0"},{"fixed":"28871e0594035fd5f2dc38899156ec4749c93f5e"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"4.0.1"},{"fixed":"5.4.0"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"}]}}],"versions":["v5.3.9","v5.3.7","v5.3.6","v5.3.5","v5.2.5","v4.0.5","v2.20.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-120361.json"}}],"schema_version":"1.9.2"}