CVE-2024-39840 Code injection in n/a

High 8.8 Published Updated

A malicious Factorio server can execute arbitrary code on clients by sending a crafted map that abuses Lua bytecode execution capabilities.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2024-39840?

CVE-2024-39840 is a high-severity code injection vulnerability in n/a, published on 29 Jun 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Factorio before 1.1.101 allows a crafted server to execute arbitrary code on clients via a custom map that leverages the ability of certain Lua base module functions to execute bytecode and generate fake objects.

Weakness: CWE-787

Which versions are affected by CVE-2024-39840?

How do I fix CVE-2024-39840?

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

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

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-vcvg-6m26-26vr.

Is CVE-2024-39840 in your software?

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

Check your SBOMs for free