CVE-2024-31446 OpenComputers Denial of Service using xpcall

High 7.7 Published Updated

A user can block the Minecraft server thread by executing specific Lua code in OpenComputers, requiring a forced shutdown.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-31446?

CVE-2024-31446 is a high-severity denial of service vulnerability in MightyPirates OpenComputers, published on 16 Apr 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

OpenComputers is a Minecraft mod that adds programmable computers and robots to the game. A user can use OpenComputers to get a Computer thread stuck in the Lua VM, which eventually blocks the Server thread, requiring the server to be forcibly shut down. This can be accomplished using any device in the mod and can be performed by anyone who can execute Lua code on them. This occurs while using the native Lua library. LuaJ appears to not have this issue. This vulnerability is fixed in 1.8.4. The GregTech: New Horizons modpack uses its own modified version of OpenComputers. They have applied the relevant patch in version 1.10.10-GTNH.

Weakness: CWE-770

Which versions are affected by CVE-2024-31446?

How do I fix CVE-2024-31446?

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

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2024-31446 being exploited?

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

Sources

Also known as GHSA-54j4-xpgj-cq4g.

Is CVE-2024-31446 in your software?

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

Check your SBOMs for free