CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2023 · Nothings

CVE-2023-45663
Nothings Stb Image.h vulnerability

stb_image is a single file MIT licensed library for processing images. The stbi__getn function reads a specified number of bytes from context (typically a file) into the specified buffer. In case the file stream points to the end, it returns zero. There are two places where its return value is not checked: In the `stbi__hdr_load` function and in the `stbi__tga_load` function. The latter of the two is likely more exploitable as an attacker may also control the size of an uninitialized buffer.

Affected products

Stb Image.h. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Nothings Stb Image.h runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.

References

More vulnerabilities in Nothings products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.