7.8

CVE-2023-45677: nothings stb Out-of-bounds Write

CVSS: 7.8v3.1HighModified
AliasesUBUNTU-CVE-2023-45677DEBIAN-CVE-2023-45677
Published 20-10-2023Last modified 12-09-2024

Vulnerability summary

CVE-2023-45677 is a high (CVSS 7.8) Out-of-bounds Write vulnerability in nothings stb. EPSS estimates a 0.54% chance of exploitation in the next 30 days, higher than 44.2% of scored vulnerabilities.

Overall risk
31/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.8/10
010
High · v3.1 (NVD)
EPSS score
0.54%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 4 · Related 3

Timeline

  1. 20-10-2023
    PublishedVulnerability first disclosed.
  2. 12-09-2024
    Last modifiedVulnerability information updated.

Description

stb_vorbis is a single file MIT licensed library for processing ogg vorbis files. A crafted file may trigger out of bounds write in `f->vendor[len] = (char)'\0';`. The root cause is that if `len` read in `start_decoder` is a negative number and `setup_malloc` successfully allocates memory in that case, but memory write is done with a negative index `len`. Similarly if len is INT_MAX the integer overflow len+1 happens in `f->vendor = (char*)setup_malloc(f, sizeof(char) * (len+1));` and `f->comment_list[i] = (char*)setup_malloc(f, sizeof(char) * (len+1));`. This issue may lead to code execution.

CVSS metrics

4 scores · 4 sources · 1 version

EPSS trend

Probability

0.54%

Chance of exploitation in the next 30 days

Percentile

44%

Versus all other CVEs

30-day change

0.00 pp

From 0.54% on 18-09-2026

18-09-202618-10-2026
EPSS score
0.54%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Nothings2 products
Debian1 product
  • libstbAll versions (No fix recorded)
Ubuntu1 product
  • libstbAll versions (No fix recorded)

3 vendors · 4 products

References

10 links