CVE-2025-30673 Sub::HandlesVia for Perl allows untrusted code to be included from the current working directory
Attackers can execute arbitrary code by placing malicious files in the current working directory, affecting Perl applications using Sub::HandlesVia.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-30673?
CVE-2025-30673 is a medium-severity code injection vulnerability in TOBYINK Sub::HandlesVia, published on 1 Apr 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Sub::HandlesVia for Perl before 0.050002 allows untrusted code from the current working directory ('.') to be loaded 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.
Sub::HandlesVia uses Mite to produce the affected code section due to CVE-2025-30672
Weakness: CWE-427
Which versions are affected by CVE-2025-30673?
How do I fix CVE-2025-30673?
Upgrade to a fixed version.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2025-30673 being exploited?
There is no known exploitation of CVE-2025-30673 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2025-30673, GHSA-hhc7-9jf4-whgx, UBUNTU-CVE-2025-30673.