|
|
Message-ID: <63f57a38-66d0-43ca-8ecd-c1c3181dbdbc@cpansec.org>
Date: Mon, 30 Nov 2026 00:28:19 +0000
From: Robert Rothenberg <rrwo@...nsec.org>
To: oss-security@...ts.openwall.com
Subject: FindBin-libs for Perl (2 CVEs)
CVE-2026-120359
FindBin::libs versions from 4.1.0 before 5.4.0 for Perl add the
current directory to LD_LIBRARY_PATH with the ld_lib option
CVE-2026-120361
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
========================================================================
CVE-2026-120359 CPAN Security Group
========================================================================
CVE ID: CVE-2026-120359
Distribution: FindBin-libs
Versions: from 4.1.0 before 5.4.0
MetaCPAN: https://metacpan.org/dist/FindBin-libs
VCS Repo: https://gitlab.com/lembark/findbin-libs
FindBin::libs versions from 4.1.0 before 5.4.0 for Perl add the current
directory to LD_LIBRARY_PATH with the ld_lib option
Description
-----------
FindBin::libs versions from 4.1.0 before 5.4.0 for Perl add the current
directory to LD_LIBRARY_PATH with the ld_lib option.
When LD_LIBRARY_PATH is unset, ld_lib sets it to the directories found
followed by a trailing colon. The dynamic linker reads the empty
element after it as the current directory. The option exists only in
the module installed on Perl 5.40 and later.
A local attacker who can write to the working directory of a program
the script runs can plant a shared library that runs as the script's
user.
Problem types
-------------
- CWE-427 Uncontrolled Search Path Element
Solutions
---------
Upgrade to FindBin-libs 5.4.0 or later.
References
----------
https://gitlab.com/lembark/findbin-libs/-/commit/9cf0a05e97f56899f125d53b9a5e87ea265c9179.patch
https://metacpan.org/release/LEMBARK/FindBin-libs-v5.4.0/changes
========================================================================
CVE-2026-120361 CPAN Security Group
========================================================================
CVE ID: CVE-2026-120361
Distribution: FindBin-libs
Versions: from 4.0.1 before 5.4.0
MetaCPAN: https://metacpan.org/dist/FindBin-libs
VCS Repo: https://gitlab.com/lembark/findbin-libs
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
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.
Problem types
-------------
- CWE-95 Improper Neutralization of Directives in Dynamically Evaluated
Code ('Eval Injection')
Solutions
---------
Upgrade to FindBin-libs 5.4.0 or later.
References
----------
https://metacpan.org/release/LEMBARK/FindBin-libs-v5.4.0/changes
Powered by blists - more mailing lists
Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.