SecurityContext

CVE-2023-45679: stb_vorbis - Use After Free

  • Cve: CVE-2023-45679
  • Name: stb_vorbis - Use After Free
  • Description: stb_vorbis is a single file MIT licensed library for processing ogg vorbis files. A crafted file may trigger memory allocation failure in `start_decoder`. In that case the function returns early, but some of the pointers in `f->comment_list` are left initialized and later `setup_free` is called on these pointers in `vorbis_deinit`. This issue may lead to code execution.
  • Impact: Potential for remote code execution due to uninitialized pointers during deinitialization after memory allocation failure.
  • Remediation: Implement proper cleanup in start_decoder to prevent uninitialized pointers; update to latest version if available.
  • Vulnerability type: use_after_free
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.8
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Epss score: 0.00505
  • Epss percentile: 0.44032
  • Assignee: [email protected]
  • Published at: 2023-10-21T00:15:09Z
  • Age in days: 1130
  • Modified at: 2026-06-17T06:29:21Z
  • References total: 3
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-45679
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-415Double Free

References

Same in every row:

  • Source: nvd
  • Tags: Third Party Advisory
Url
https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_vorbis.c#L3660-L3677
https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_vorbis.c#L4208-L4215
https://securitylab.github.com/advisories/GHSL-2023-145_GHSL-2023-151_stb_image_h/

Products

ProductAffectedPlatform boundSourcesUrl
nothings:stb_vorbis.c= 1.22nonvd/v1/products/nothings/stb_vorbis.c

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts