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

Published Nov 30, 2026
·
Updated

FindBin::libs versions from 4.1.0 before 5.4.0 for Perl add the current directory to LDLIBRARYPATH with the ldlib option.

When LDLIBRARYPATH is unset, ldlib 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.

Affected Software

1 affected component
cpan/FindBin::libs>=4.1.0<5.4.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade FindBin::libs to a version that resolves this vulnerability.

    Fixed in 5.4.0

Event History

Nov 30, 2026
CVE Published
via MITRE·12:26 AM
Data Sourced
via MITRE·12:26 AM
RemedyDescriptionWeakness

Frequently Asked Questions

1

Which deployments are exposed?

Deployments using FindBin::libs from 4.1.0 before 5.4.0 are exposed only when running on Perl 5.40 or later and using the ld_lib option. The issue occurs when LD_LIBRARY_PATH is initially unset.

2

What does an attacker need to exploit this?

An attacker needs the ability to write to the working directory of a program that runs the affected script. They can plant a shared library there, which may be loaded and executed as the user running the script.

3

Is the default configuration affected?

The vulnerable behavior requires use of the ld_lib option; the option exists only in the module installed on Perl 5.40 and later. The provided information does not establish that ld_lib is enabled by default.

4

What can be done if upgrading is not immediately possible?

Avoid using the ld_lib option in affected scripts, or ensure LD_LIBRARY_PATH is set without a trailing empty path element before the script runs. Restrict untrusted users from writing to the program's working directory.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203