CVE-2024-21571 Code injection in Code Agent

High 8.1 Published Updated

An attacker with network access can execute arbitrary code in the Snyk Code Agent container, particularly if cluster misconfigurations exist.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-21571?

CVE-2024-21571 is a high-severity code injection vulnerability in Snyk Code Agent, published on 6 Dec 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Snyk has identified a remote code execution (RCE) vulnerability in all versions of Code Agent. The vulnerability enables an attacker to execute arbitrary code within the Code Agent container. Exploiting this vulnerability would require an attacker to have network access to the Code Agent within the deployment environment. External exploitation of this vulnerability is unlikely and depends on both misconfigurations of the cluster and/or chaining with another vulnerability. However, internal exploitation (with a cluster misconfiguration) could still be possible.

Weakness: CWE-94

Which versions are affected by CVE-2024-21571?

How do I fix CVE-2024-21571?

No fix has been published for CVE-2024-21571 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-2024-21571 being exploited?

There is no known exploitation of CVE-2024-21571 in the wild and no public exploit code.

Sources

Also known as GHSA-cf6c-548r-42f5.

Is CVE-2024-21571 in your software?

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

Check your SBOMs for free