CVE-2025-41390 Code injection in TruffleHog

High 7.8 Published Updated

Attackers can execute arbitrary code by providing a specially crafted repository to TruffleHog, impacting developers using the tool.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2025-41390?

CVE-2025-41390 is a high-severity code injection vulnerability in TruffleHog, published on 20 Oct 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

An arbitrary code execution vulnerability exists in the git functionality of Truffle Security Co. TruffleHog 3.90.2. A specially crafted repository can lead to a arbitrary code execution. An attacker can provide a malicious respository to trigger this vulnerability.

Weakness: CWE-829

Which versions are affected by CVE-2025-41390?

How do I fix CVE-2025-41390?

No fix has been published for CVE-2025-41390 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2025-41390 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-41390 exists.

Sources

Also known as GHSA-px2j-m3gx-wpq5.

Is CVE-2025-41390 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free