Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2024-39840: n/a

0
High
VulnerabilityCVE-2024-39840cvecve-2024-39840
Published: Sat Jun 29 2024 (06/29/2024, 00:00:00 UTC)
Source: CVE Database V5

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/28/2026, 04:25:28 UTC

Technical Analysis

CVE-2024-39840 is a critical remote code execution vulnerability in the Factorio game software, specifically affecting versions prior to 1.1.101. The flaw arises from the way Factorio's Lua scripting environment handles certain base module functions that can execute Lua bytecode and fabricate objects. An attacker controlling a Factorio server can craft a malicious custom map that abuses these Lua functions to execute arbitrary code on the client machines connecting to that server. This vulnerability is classified under CWE-787 (Out-of-bounds Write), indicating memory corruption that leads to code execution. The attack vector is network-based (AV:N), requires no privileges (PR:N), but does require user interaction (UI:R) in the form of connecting to a malicious server. The scope is unchanged (S:U), but the impact is high across confidentiality, integrity, and availability (C:H/I:H/A:H). This means an attacker can fully compromise client systems by exploiting this vulnerability. Although no public exploits have been reported yet, the severity and ease of exploitation make it a significant threat, especially in multiplayer gaming environments where users connect to third-party servers. The vulnerability underscores risks inherent in executing untrusted Lua bytecode within game clients.

Potential Impact

The primary impact of CVE-2024-39840 is the potential for remote code execution on client machines running vulnerable versions of Factorio. This can lead to full system compromise, including unauthorized access to sensitive data, installation of malware, disruption of system operations, and lateral movement within networks if the client is part of a larger organizational infrastructure. Since the exploit requires a user to connect to a malicious server, social engineering or compromised legitimate servers could be used to lure victims. Organizations with employees or users who play Factorio, especially in multiplayer mode, face risks of data breaches, operational disruptions, and potential reputational damage. The vulnerability also poses risks to home users who may unknowingly connect to malicious servers. Given the high CVSS score (8.8), the threat is severe and demands immediate attention to prevent exploitation.

Mitigation Recommendations

1. Immediate update to Factorio version 1.1.101 or later once available, as this will contain patches addressing the vulnerability. 2. Until patches are applied, avoid connecting to untrusted or unknown Factorio multiplayer servers. 3. Network-level controls such as firewall rules can restrict outbound connections to known safe Factorio servers. 4. Educate users about the risks of connecting to unofficial servers and encourage verification of server authenticity. 5. Monitor network traffic for unusual connections to Factorio servers and investigate any suspicious activity. 6. Consider running Factorio clients in sandboxed or virtualized environments to limit potential damage from exploitation. 7. Developers and server operators should audit Lua scripts and custom maps for suspicious code and implement validation controls to detect malicious payloads. 8. Employ endpoint detection and response (EDR) tools to identify and respond to anomalous behavior indicative of exploitation attempts.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
mitre
Date Reserved
2024-06-29T00:00:00.000Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 699f6c87b7ef31ef0b565f10

Added to database: 2/25/2026, 9:41:27 PM

Last enriched: 2/28/2026, 4:25:28 AM

Last updated: 4/12/2026, 3:43:11 PM

Views: 15

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses