BuildRiot
Sign in

BackendSource: CPANSec via CVEProject

CPANSec discloses two local code-execution risks in FindBin-libs for Perl

CPANSec disclosed two FindBin-libs flaws and recommended distribution version 5.4.0 or later. Developers running build automation should check directory permissions, directory-name control and library-path settings.

A dark sheet crosses a blue tripwire between file folders, triggering a red warning beacon.
Illustration: BuildRiot (AI-generated)

CPANSec disclosed two local code-execution risks in the FindBin-libs Perl distribution on November 30, 2026. It recommended upgrading to distribution version 5.4.0 or later. The affected implementations are installed on Perl 5.40 and later; the disclosures concern FindBin-libs, not a general Perl-core vulnerability. Sources: CPANSec via CVEProject

CPANSec lists CVE-2026-120359 as affecting FindBin-libs distribution versions from 4.1.0 to before 5.4.0. With ld_lib enabled and LD_LIBRARY_PATH unset, a trailing colon adds the current directory to library searches, according to the advisory. CPANSec says a local attacker with write access to a launched program’s working directory can plant a shared library. That library executes as the script’s user. Sources: CPANSec via CVEProject

CPANSec lists CVE-2026-120361 as affecting distribution versions from 4.0.1 to before 5.4.0 through FindBin::Bin, which FindBin::libs loads. The advisory says an unescaped script-directory name enters string eval, allowing a single quote to introduce Perl code. With perl -e, the current directory is used. CPANSec says execution under the victim’s account requires an attacker to control the directory name and induce script execution there. Sources: CPANSec via CVEProject

The changelog dates distribution 5.4.0 to November 15, 2026, before the November 30 disclosures. It records a trailing-colon repair in 5.1.6 on November 1, 2026. Backslash-escaping repairs and punctuation-path tests appear in 5.3.6 on November 8, 2026. Those earlier entries do not establish intermediate releases as safe; both advisories recommend 5.4.0 or later. Sources: CPANSec via CVEProject, MetaCPAN

Distribution and component versions differ: distribution 5.4.0 lists FindBin::Bin v2.3.0 and FindBin::libs v5.1.0. As a precaution based on the disclosed conditions, exposure checks for shared build runners should distinguish directory-name control from working-directory write access. A launched program’s working directory may differ from the script’s directory. The advisories establish neither remote exploitation nor an exploitation incident. Sources: CPANSec via CVEProject, MetaCPAN

What to do

Both CPANSec advisories recommend upgrading to distribution version 5.4.0 or later. The environment checks and regression tests below are precautionary guidance inferred from the disclosed attack conditions, rather than specific advisory recommendations. Sources: CPANSec via CVEProject

  1. Inventory Perl runtimes, FindBin-libs distribution releases and loaded implementations. Check implementations installed on Perl 5.40 and later against the advisory ranges.
  2. Locate ld_lib usage and inspect inherited LD_LIBRARY_PATH values, especially when unset. Also check write permissions on launched programs’ working directories.
  3. For FindBin::Bin installed on Perl 5.40 and later, check who controls directory names where automation executes scripts or perl -e.
  4. Upgrade FindBin-libs to distribution version 5.4.0 or later, verifying the distribution release rather than a component version.
  5. After upgrading to distribution 5.4.0 or later, regression-check ld_lib with LD_LIBRARY_PATH unset and with ordinary inherited values. Also check execution from harmless punctuation-bearing directory names. Sources: CPANSec via CVEProject, MetaCPAN

Why it matters

Build automation exposure depends on directory control as well as the installed version. Writing to a launched program’s working directory and controlling the name of a directory used for script execution are separate capabilities that need separate checks.

Attribution

Sources

  1. 1CPANSec via CVEProjectCVE-2026-120359Source published (UTC)
  2. 2CPANSec via CVEProjectCVE-2026-120361Source published (UTC)
  3. 3MetaCPANFindBin-libs v5.4.0 changelogSource published (UTC)
  4. 4Vulnerability WatchTwo FindBin-libs Perl module flaws in releases before 5.4.0 can lead to code executionSource published (UTC)

Read the original source for full details and context.

Report a problem

Links, dates or what you expected. Do not include passwords or private data.

More on Backend

All Backend stories

Review · Backend

Review: PostgreSQL 19, a relational database with new maintenance controls

PostgreSQL 19 adds concurrent table repacking that permits access during most of the work. The PostgreSQL Global Development Group released this version of its open-source relational database on November 19, 2026. According to the project, pg_plan_advice influences planner choices, while pg_stash_advice stores and applies guidance by query identifier. The release also adds logical replication of sequence values, get-or-create operations and JSON export.

PostgreSQL

Review · Frontend

Review: MoonBit 1.0 release candidate, a language for WebAssembly and native apps

MoonBit released its 1.0 release candidate on November 26, 2026, freezing compiler changes to bug fixes until 1.0. Its primary targets are native code and WebAssembly, with JavaScript support for browsers and interfaces. The team targets February 18, 2027, for the full release with a stable core library. The async and archive packages may still receive minor API refinements. The moon fix command can apply compiler-suggested fixes.

MoonBit

CPANSec discloses two local code-execution risks in FindBin-libs for Perl · BuildRiot