# 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

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 26% of CVEs (2026-12-01)
- Published: 2026-11-30T00:26:11.438Z
- Modified: 2026-11-30T00:26:11.438Z
- Weaknesses: CWE-427
- Assigned by: CPANSec

## 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.

(As written by CVE List.)

## Affected

- FindBin-libs: from 4.1.0 before 5.4.0

## References

- <https://gitlab.com/lembark/findbin-libs/-/commit/9cf0a05e97f56899f125d53b9a5e87ea265c9179.patch> (patch)
- <https://metacpan.org/release/LEMBARK/FindBin-libs-v5.4.0/changes> (release-notes)

## Sources

- CVE List: [CVE-2026-120359](https://www.cve.org/CVERecord?id=CVE-2026-120359), CVE Terms of Use, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-120359 · Whole record: https://cve.day/CVE-2026-120359.json · Rebuilt by cve.day 2026-11-30T00:42:09.835Z
