CVE-2026-120361

Source
https://cve.org/CVERecord?id=CVE-2026-120361
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-120361.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-120361
Downstream
Published
2026-11-30T00:26:32Z
Modified
2026-11-30T02:00:10Z
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.

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.

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

Affected packages

Git / gitlab.com/lembark/findbin-libs

Affected ranges

Type
GIT
Repo
https://gitlab.com/lembark/findbin-libs
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "4.0.1"
                },
                {
                    "fixed":  "5.4.0"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandardRange"
        }
    ]
}

Affected versions

v2.*
v2.20.2
v4.*
v4.0.5
v5.*
v5.2.5
v5.3.5
v5.3.6
v5.3.7
v5.3.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-120361.json"