7.8
CWE
787 190
Advisory Published
Updated

CVE-2023-45681: Out of bounds heap buffer write in stb_vorbis

First published: Fri Oct 20 2023(Updated: )

stb_vorbis is a single file MIT licensed library for processing ogg vorbis files. A crafted file may trigger memory write past an allocated heap buffer in `start_decoder`. The root cause is a potential integer overflow in `sizeof(char*) * (f->comment_list_length)` which may make `setup_malloc` allocate less memory than required. Since there is another integer overflow an attacker may overflow it too to force `setup_malloc` to return 0 and make the exploit more reliable. This issue may lead to code execution.

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
Nothings STB=1.22

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-45681?

    CVE-2023-45681 is a vulnerability in the stb_vorbis library that allows a crafted file to trigger a memory write beyond the allocated heap buffer.

  • How severe is CVE-2023-45681?

    CVE-2023-45681 has a severity value of 7.3, which is considered high.

  • What is the root cause of CVE-2023-45681?

    The root cause of CVE-2023-45681 is a potential integer overflow in the sizeof(char*) * (f->comment_list_length) calculation, which can lead to memory write beyond the allocated heap buffer.

  • How can I fix CVE-2023-45681?

    To fix CVE-2023-45681, it is recommended to update to a patched version of the stb_vorbis library when available.

  • Are there any references for CVE-2023-45681?

    Yes, you can find more information about CVE-2023-45681 in the following references: [Reference 1](https://securitylab.github.com/advisories/GHSL-2023-145_GHSL-2023-151_stb_image_h/) and [Reference 2](https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_vorbis.c#L3660-L3677).

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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203