{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-120361",
        "assignerOrgId": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
        "state": "PUBLISHED",
        "assignerShortName": "CPANSec",
        "dateReserved": "2026-11-01T21:57:40.839Z",
        "datePublished": "2026-11-30T00:26:32.269Z",
        "dateUpdated": "2026-11-30T00:26:32.269Z"
    },
    "containers": {
        "cna": {
            "affected": [
                {
                    "collectionURL": "https://cpan.org/modules",
                    "defaultStatus": "unaffected",
                    "modules": [
                        "FindBin::Bin"
                    ],
                    "packageName": "FindBin-libs",
                    "packageURL": "pkg:cpan/FindBin-libs",
                    "programFiles": [
                        "version/v5.40/lib/FindBin/Bin.pm"
                    ],
                    "repo": "https://gitlab.com/lembark/findbin-libs",
                    "versions": [
                        {
                            "lessThan": "5.4.0",
                            "status": "affected",
                            "version": "4.0.1",
                            "versionType": "custom"
                        }
                    ]
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-95",
                            "description": "CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
                "shortName": "CPANSec",
                "dateUpdated": "2026-11-30T00:26:32.269Z"
            },
            "references": [
                {
                    "tags": [
                        "release-notes"
                    ],
                    "url": "https://metacpan.org/release/LEMBARK/FindBin-libs-v5.4.0/changes"
                }
            ],
            "solutions": [
                {
                    "lang": "en",
                    "value": "Upgrade to FindBin-libs 5.4.0 or later."
                }
            ],
            "source": {
                "discovery": "UNKNOWN"
            },
            "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",
            "x_generator": {
                "engine": "cpansec-cna-tool 0.1"
            }
        }
    }
}