7.5
CWE
476
Advisory Published
Updated

CVE-2023-45667: Null pointer dereference because of an uninitialized variable in stb_image

First published: Fri Oct 20 2023(Updated: )

stb_image is a single file MIT licensed library for processing images. If `stbi__load_gif_main` in `stbi_load_gif_from_memory` fails it returns a null pointer and may keep the `z` variable uninitialized. In case the caller also sets the flip vertically flag, it continues and calls `stbi__vertical_flip_slices` with the null pointer result value and the uninitialized `z` value. This may result in a program crash.

Credit: security-advisories@github.com security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
Nothings Stb Image.h=2.28

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is CVE-2023-45667?

    CVE-2023-45667 is a vulnerability in the stb_image library that allows a null pointer dereference due to an uninitialized variable.

  • What is the severity of CVE-2023-45667?

    The severity of CVE-2023-45667 is high with a CVSS score of 7.5 (CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H).

  • How does CVE-2023-45667 impact the stb_image library?

    CVE-2023-45667 impacts the stb_image library by allowing a null pointer dereference, which can lead to a crash or potentially allow an attacker to execute arbitrary code.

  • What is the affected version of the stb_image library?

    The affected version of the stb_image library is 2.28.

  • How can I fix CVE-2023-45667?

    To fix CVE-2023-45667, it is recommended to update to a patched version of the stb_image library.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203