CVE-2026-141340: dRep before 4.0.5 OS Command Injection via Genome File Names in ANImf
dRep before 4.0.5 contains an OS command injection vulnerability that allows attackers to execute commands by supplying crafted genome file names processed with the ANImf algorithm. Attackers can embed $(...), backticks or semicolons in genome file names so the unquoted nucmer and delta-filter commands run via shell=True execute arbitrary commands as the user during comparison or dereplication.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Users running dRep versions before 4.0.5 are exposed when they process genome files with the ANImf algorithm. The injected commands execute with the privileges of the user running the comparison or dereplication job.
What does an attacker need to exploit it?
An attacker needs to cause a crafted genome filename to be processed by ANImf. Filenames containing shell syntax such as $(...), backticks, or semicolons can inject commands into the unquoted nucmer and delta-filter command invocations.
Is user interaction required?
Yes. The provided severity vector indicates user interaction is required, and exploitation occurs when a user runs comparison or dereplication on the attacker-controlled genome filename.
How can I determine whether my environment is affected?
Check whether dRep is older than 4.0.5 and whether ANImf is used to process genome files, especially files obtained from untrusted sources. Review genome filenames for shell metacharacters such as semicolons, backticks, or $() expressions.
What can be done if updating is not immediately possible?
Do not process untrusted genome files with ANImf, and reject or rename filenames containing shell metacharacters before running dRep. Run dRep with minimal privileges to limit the impact if command execution occurs.