{"id":"CVE-2026-120361","aliases":["CVE-2026-120361"],"related":[],"kind":"vulnerability","state":"published","title":"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","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.\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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T00:26:32.269Z","modified":"2026-11-30T00:26:32.269Z","severities":[],"cwes":["CWE-95"],"affected":[{"ranges":[{"type":"custom","introduced":"4.0.1","fixed":"5.4.0","status":"affected"}],"package":"FindBin-libs","repo":"https://gitlab.com/lembark/findbin-libs","source":"cvelist"}],"references":[{"url":"https://metacpan.org/release/LEMBARK/FindBin-libs-v5.4.0/changes","tags":["release-notes"],"sources":["cvelist"]}],"credits":[],"assigner":"CPANSec","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-120361","url":"https://www.cve.org/CVERecord?id=CVE-2026-120361","licence":"CVE Terms of Use","modified":"2026-11-30T00:26:32.269Z"}],"updatedAt":"2026-11-30T00:42:09.928Z","epss":{"score":0.00399,"percentile":0.36258,"date":"2026-12-01T12:00:22.000Z"}}