CVE-2025-30672: Mite for Perl generates code with an untrusted search path vulnerability
Stig Palmquist 01 Apr 2025 01:54 UTC
========================================================================
CVE-2025-30672 CPAN Security Group
========================================================================
CVE ID: CVE-2025-30672
Distribution: Mite
Versions: before 0.013000
MetaCPAN: https://metacpan.org/dist/Mite
VCS Repo: https://github.com/tobyink/p5-mite
Mite for Perl generates code with an untrusted search path
vulnerability
Description
-----------
Mite for Perl before 0.013000 generates code with the current working
directory ('.') added to the @INC path similar to CVE-2016-1238.
If an attacker can place a malicious file in current working directory,
it may be
loaded instead of the intended file, potentially leading to arbitrary
code execution.
This affects the Mite distribution itself, and other distributions that
contain code generated by Mite.
Problem types
-------------
CWE-427 Uncontrolled Search Path Element
Impacts
-------
CAPEC-38 Leveraging/Manipulating Configuration File Search Paths
Mitigations
-----------
Version 0.013000 of Mite was released to address the issue. Users
should update to the latest version, and regenerate the Mite files for
any projects using the distribution.
References
----------
https://metacpan.org/release/TOBYINK/Mite-0.013000/changes
https://wiki.gentoo.org/wiki/Project:Perl/Dot-In-INC-Removal
https://perldoc.perl.org/perlrun#PERL_USE_UNSAFE_INC
https://blogs.perl.org/users/todd_rinaldo/2016/11/what-happened-to-dot-in-inc.html