Mojira Archive
MC-266313

STB Crashes With Remote Code Execution Potential

Github recently posted a bunch of vulns in the STB library ( https://securitylab.github.com/advisories/GHSL-2023-145_GHSL-2023-151_stb_image_h/ ) and I went through and tested them all.

 

The only ones that triggered a crash for me where

Some of these have RCE potential, with server resource packs and people generally trusting resource packs this is pretty major if it can be weaponized.

 

One of the STB image issues resulted in a DOS from an exception being thrown in Java code about an image being 0 pixels wide, but this seems to be outside of the scope of the GH issues. This appears to be an error in MC error handling as the game gets stuck in asset loading forever.

 

None of these seem to affect skins/server icons, but it would be a good idea to double check these.

 

I have attached the OGG files for this as a resource pack, they are copied and pasted from the GH page but you may not want to trust it given the severity of this issue.

Fixed

gudenau

2023-11-02, 02:37 PM

2024-04-11, 12:55 PM

2024-04-11, 12:55 PM

3

5

Confirmed

Very Important

Platform

Crash, Resource Packs

crash

1.20.2, 23w44a, 24w05b

1.20.5 Pre-Release 1