FindBin-libs local code execution has two distinct paths in the Perl distribution. The CPAN Security Group disclosure of November 30, 2026 identifies CVE-2026-120359 and CVE-2026-120361. Both have local prerequisites, and the group’s recommended fix is FindBin-libs 5.4.0 or later.
One path changes how a child program finds shared libraries. The other evaluates part of a script’s directory name as Perl code. A team should identify the module version loaded at runtime, then inspect which people or processes can control the relevant directories.
How FindBin-libs Local Code Execution Crosses Two Boundaries
FindBin-libs is a distribution that supplies FindBin::libs and FindBin::Bin. The advisory places the affected modules in installations on Perl 5.40 and later. FindBin::libs loads FindBin::Bin, so an application using the former may encounter the latter’s directory handling.
These are different trust boundaries. CVE-2026-120359 moves from a writable working directory into a program’s library search. CVE-2026-120361 moves from a directory name into evaluated Perl code. Both require local control of a directory, according to the CPAN Security Group.
Teams using a vulnerability intelligence platform can record the affected module version and local prerequisites alongside each CVE. That inventory helps separate a package finding from a workload with the directory conditions described in the advisory.
- Library pathA script enables ld_lib and sets a library search path
- Writable directoryA child program may search its working directory
- Directory nameFindBin::Bin processes the script directory
- String evaluationA directory name enters evaluated Perl code
The diagram separates the paths because their exposed directories differ. A writable working directory for a child program matters to the first path. Control over a script directory’s name matters to the second. Patching the distribution is the common response.
What Happens in the Library Search Path?
CVE-2026-120359 applies to FindBin::libs versions from 4.1.0 before 5.4.0, according to the disclosure. Its relevant option is ld_lib. When LD_LIBRARY_PATH is initially unset, the option builds a value that ends with a path separator.
The advisory says the dynamic linker interprets the resulting empty path element as the current directory. A program run by the script may therefore consider a local directory when loading a shared library. The exposure depends on the script invoking that program and on the directory being writable by a local attacker.
The attacker’s required control is specific. The CPAN Security Group describes someone able to write to the working directory of a program run by the script. If that program loads a planted shared library, its code runs as the script’s user.
That account does not describe remote access to a service. A web-facing application is not automatically exposed merely because the package exists. Teams need to inspect the actual ld_lib use, the child’s working directory, and the permissions on that directory.
For triage, record where each affected script starts its child programs. Review whether their working directories can be changed by less trusted local users. A restricted directory reduces the documented planting opportunity, but the advisory’s durable fix remains the distribution upgrade.
How Does a Directory Name Reach Perl Evaluation?
CVE-2026-120361 covers FindBin::Bin versions from 4.0.1 before 5.4.0. The CPAN Security Group says the module inserts the script directory into a string evaluation without sufficient escaping. A specially named directory can then change the code being evaluated.
The advisory states that an attacker who can name a directory may run code as a user who runs a script inside it. The attacker does not need write access to the script itself for this described path. The decisive condition is control of the directory name supplied to the vulnerable module.
This distinction changes an inventory review. A script can reside in a directory that a less trusted party created, renamed, or supplied through a workflow. Check the provenance and ownership of execution directories, especially where jobs accept staged project trees.
FindBin::libs loads FindBin::Bin, according to the disclosure. An application importing FindBin::libs may therefore need review even when its own source does not explicitly name FindBin::Bin. Determine the effective module version in the runtime environment rather than assuming the source import reveals the whole path.
The advisory classifies this issue as CWE-95, an evaluation injection weakness. It classifies the library search issue as CWE-427, an uncontrolled search path element. Those labels describe different causes and should lead to different directory checks.
Why Does 5.4.0 Matter When Earlier Notes Mention Changes?
MetaCPAN’s distribution change log dates FindBin-libs 5.4.0 to November 15, 2026. The CPAN Security Group published the two CVE descriptions on November 30. The release predates that disclosure, so the fix was available when the advisory appeared.
The change log also records an earlier removal of a trailing library-path separator and an earlier directory escaping fix. Those entries describe implementation changes across interim releases. They do not replace the security group’s explicit affected ranges or its shared upgrade recommendation.
For both CVEs, use 5.4.0 or later as the documented remediation target. Avoid treating a partially changed interim version as a confirmed fix for both paths. The advisory gives separate lower bounds, and a deployment may load a different module copy than its package inventory suggests.
On a Perl 5.40 or later host, identify the installed FindBin-libs distribution and the module loaded by each relevant script. Compare that result with the advisory’s range. Verify the deployed runtime after updating, including scheduled jobs and packaged applications that carry their own dependencies.
This is also a software dependency decision. The useful evidence is the component version actually executed and the directories the workload trusts. Record those facts alongside the two CVE identifiers.
Which Workloads Should Be Reviewed First?
Start with scripts running under accounts that can access sensitive data or shared services. Within that set, prioritize those using FindBin::libs on Perl 5.40 or later. The two paths become relevant only when their directory conditions occur.
For the library-search path, look for scripts that enable ld_lib and launch other programs. Check whether LD_LIBRARY_PATH is initially unset and where the child program begins execution. The advisory identifies this combination as the route to a current-directory search element.
For the directory-name path, trace where script directories come from. Build systems, job runners, and user-submitted workspaces may place scripts under differently controlled directory trees. This is a review heuristic, not a claim that those systems have been attacked.
Then compare permissions with the trust level of the script account. An unprivileged user able to name or write a relevant directory creates a different risk from a directory controlled only by administrators. Record the actual ownership and mode before deciding priority.
Broad external discussion should not change that order by itself. Brandefense Blackhole counted 513 dark chat posts matching the term Perl from September 1 through November 30, 2026. That count measures posts about Perl, not mentions of these CVEs or exploitation of FindBin-libs.
What Should Defenders Verify After Updating?
Install FindBin-libs 5.4.0 or later in the environment each affected script actually uses. A package manager’s success message is only one part of verification. Test the script’s runtime module resolution, then rerun the workload with the same account and deployment settings.
For CVE-2026-120359, verify the script no longer creates the documented trailing empty search element. Review the child program’s working directory and access permissions while the new version is deployed. These checks test the configuration that made the local path meaningful.
For CVE-2026-120361, verify that the updated FindBin::Bin module is the one the script loads. Review how deployment processes choose script directories. Keep lower trust users from choosing directory names used by more privileged script accounts.
During an investigation, distinguish a vulnerable configuration from evidence of execution. Process launch records, library loading evidence, and file changes can support a host review. The advisory describes possible outcomes; it does not report a campaign or a set of affected organizations.
A repeatable software supply chain evidence process helps capture the version, runtime path, permissions, and retest result. Use the same record for both CVEs, but keep each issue’s prerequisite separate. That makes the decision auditable without assuming both paths existed on every host.
- InventoryIdentify scripts loading FindBin::libs or FindBin::Bin on Perl 5.40 or later.
- PrioritizeCheck ld_lib use, working-directory write access, and directory-name control.
- UpdateInstall FindBin-libs 5.4.0 or later in each effective runtime.
- VerifyConfirm the loaded module version and retest the relevant jobs.
What Do the Two CVEs Establish?
The CPAN Security Group establishes two local code execution routes with different starting conditions. CVE-2026-120359 depends on a writable working directory and a library search change. CVE-2026-120361 depends on attacker control of a script directory name that reaches string evaluation.
The documented action is to upgrade FindBin-libs to 5.4.0 or later and verify that the updated code is loaded. Directory controls can narrow exposure while teams roll out the fix. They cannot substitute for checking the runtime version and the real workload configuration.
Frequently Asked Questions
Does FindBin-libs expose a script to anonymous remote code execution?
The CPAN Security Group describes local prerequisites for both CVEs. Assess who can write the relevant working directory or name a script directory.
Which FindBin-libs release should teams install?
The CPAN Security Group recommends FindBin-libs 5.4.0 or later for both issues. Verify the updated module loads in each affected runtime.
Why are there two CVE identifiers?
CVE-2026-120359 concerns a dynamic library search path. CVE-2026-120361 concerns directory text entering Perl string evaluation.
