8.1
CWE
125
Advisory Published
Updated

CVE-2023-45662: Multi-byte read heap buffer overflow in stbi__vertical_flip in stb_image

First published: Fri Oct 20 2023(Updated: )

stb_image is a single file MIT licensed library for processing images. When `stbi_set_flip_vertically_on_load` is set to `TRUE` and `req_comp` is set to a number that doesn’t match the real number of components per pixel, the library attempts to flip the image vertically. A crafted image file can trigger `memcpy` out-of-bounds read because `bytes_per_pixel` used to calculate `bytes_per_row` doesn’t match the real image array dimensions.

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 the vulnerability ID for this issue?

    The vulnerability ID for this issue is CVE-2023-45662.

  • What is the severity rating for CVE-2023-45662?

    The severity rating for CVE-2023-45662 is high with a score of 8.1.

  • What is affected by CVE-2023-45662?

    The affected software is Nothings Stb Image.h version 2.28.

  • How does CVE-2023-45662 occur?

    CVE-2023-45662 occurs when the stbi_set_flip_vertically_on_load function is set to TRUE and req_comp is set to a number that doesn't match the real number of components per pixel.

  • How can CVE-2023-45662 be exploited?

    CVE-2023-45662 can be exploited by using a crafted image file that triggers a multi-byte read heap buffer overflow in the stbi__vertical_flip function of 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