CPANSA-FindBin-libs-2026-120361: FindBin-libs vulnerability

Publisher giterlizzi Document category csaf_security_advisory
Initial release date 2026-11-30T00:00:00 Engine CSAF Perl Toolkit 0.26
Current release date 2026-11-30T00:00:00 Build Date
Current version 1 Status final
CVSS v3.1 Base Score Severity
Original language Language en
Also referred to

Vulnerability Description

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.

Vulnerabilities

CVE-2026-120361

Vulnerability Description

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.

Weakness CWE-95 : Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')

Product status

Known affected
Product Score
FindBin-libs greater than or equal 4.0.1 and less than 5.4.0
CVSS Version CVSS Vector CVSS Base Score CVSS Base Severity
Fixed

giterlizzi

Namespace: https://github.com/giterlizzi/

gdt@cpan.org

References

Revision history

Version Date of the revision Summary of the revision
1 Mon Nov 30 00:00:00 2026 First release

Sharing rules

TLP:WHITE
For the TLP version see: https://www.first.org/tlp/