Menu

1 / 2

FindBin::libs Makes the Working Directory Part of the Trust Boundary

DEV Community: perl·SorrelThorncroft·4 days ago
#M5eRrzCU
#devtoperl#devto#dev#directory#path
Long article (442 words) — no AI summary yet.
Reading 0:00
15s threshold

FindBin::libs Makes the Working Directory Part of the Trust Boundary

Two Perl module issues published on November 30, 2026 show how small environment decisions turn into code-execution paths. CVE-2026-120359 affects FindBin::libs from 4.1.0 before 5.4.0 when the ld_lib option is used. The module adds the current directory to LD_LIBRARY_PATH . CVE-2026-120361 affects FindBin::Bin from 4.0.1 before 5.4.0, where a script directory name reaches a string evaluation path. The fixed release for both is 5.4.0.

The first flaw trusts the directory from which a process starts. If a privileged wrapper, scheduled job, or administrator launches a Perl program from a writable directory, an attacker who can place a library there may influence loader resolution. The second issue trusts the name of the script directory. A path that looks like data can become Perl code under the wrong conditions. Both flaws are local in the ordinary case, but operations teams should not dismiss them as desktop-only bugs.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.