{"id":"CVE-2023-45663","published":"2023-10-20T23:26:13Z","modified":"2025-02-13T17:14:05Z","title":"Disclosure of uninitialized memory in stbi__tga_load in stb_image","vendor":"nothings","product":"stb","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00655,"percentile":0.52329,"provenance":"source"},"cwes":[{"id":"CWE-908","name":"Use of Uninitialized Resource"}],"references":[{"url":"https://securitylab.github.com/advisories/GHSL-2023-145_GHSL-2023-151_stb_image_h/","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_image.h#L1664","tags":["x_refsource_MISC"]},{"url":"https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_image.h#L5936C10-L5936C20","tags":["x_refsource_MISC"]},{"url":"https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_image.h#L7221","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UVQ7ONFH5GWLMXYEAJG32A3EUKUCEVCR/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QVABVF4GEM6BYD5L4L64RCRSXUHY6LGN/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NMXKOKPP4BKTNUTF5KSRDQAWOUILQZNO/","tags":[]}],"priority":{"score":14.2,"factors":[{"name":"EPSS percentile","points":10.47},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"nothings","affectedVersions":[{"vendor":"nothings","product":"stb","versions":["<= 2.28"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-09-12T14:20:34.630531Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2023-49954","exploited":false,"provenance":"source"}}