Skip to content
NewA calmer, faster ZeroHour

Perl FindBin modules before 5.4.0 have two local code flaws

Original title: FindBin-libs for Perl (2 CVEs)

oss-security ()1
AI summary · x-ai/grok-4.7Summaries by Vani AI

FindBin::libs can add the current directory to LD_LIBRARY_PATH; FindBin::Bin can eval the script directory name.

Robert Rothenberg reported two Perl module flaws to oss-security on November 29. FindBin::libs from 4.1.0 before 5.4.0 adds the current directory to LD_LIBRARY_PATH when the ld_lib option is used. FindBin::Bin from 4.0.1 before 5.4.0 executes code taken from the script's directory name through a string eval. The excerpt does not describe exploitation.

Unconfirmed: The mailing-list excerpt is truncated and does not state whether either flaw is exploited.

Key facts
  • CVE-2026-120359 affects FindBin::libs from 4.1.0 before 5.4.0.
  • The ld_lib option adds the current directory to LD_LIBRARY_PATH.
  • CVE-2026-120361 affects FindBin::Bin from 4.0.1 before 5.4.0.
  • That module runs a string eval on the script's directory name.
Security assessment · AI, from the article

Impact: library-path hijack or code execution from a directory name

ProductAffectedFixed in
FindBin::libs4.1.0 before 5.4.05.4.0
FindBin::Bin4.0.1 before 5.4.05.4.0
What to do
  1. 1.Upgrade FindBin::libs and FindBin::Bin to 5.4.0.
Analyze CVE-2026-120359 with Vani AIImpact, affected versions, exploitation, mitigations and detection

Vulnerabilities mentioned

All
CVEVulnerabilityCVSSEPSSSignalsPublished
CVE-2026-120359
Current-directory library load via FindBin::libs ld_lib
——
CVE-2026-120361
Code injection in Perl FindBin::Bin via directory names
——

From the original article

Posted by Robert Rothenberg on Nov 29 CVE-2026-120359 FindBin::libs versions from 4. 1. 0 before 5.

A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.