Skip to content
Fencer Intel
high 8.8

CVE-2018-16981 json

stb stb_image.h 2.19, as used in catimg, Emscripten, and other products, has a heap-based buffer overflow in the stbi__out_gif_code functio…

published 8y ago modified 4mo ago also EUVD-2018-8767

cvss
8.8
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.6%
EPSS 1.6% chance of exploitation in 30 days, percentile 75%
public exploits
0
none known

Summary

stb stb_image.h 2.19, as used in catimg, Emscripten, and other products, has a heap-based buffer overflow in the stbi__out_gif_code function.

Patch / fix

  • libstb Debian 14, Debian 13, Debian 12 0.0~git20190617.5.c72a95d-1

debian advisories DEBIAN-CVE-2018-16981

  • mame Ubuntu 25.10 0.277+dfsg.1-4ubuntu0.1
  • mame Ubuntu Pro 18.04 LTS 0.195+dfsg.1-2ubuntu0.1~esm1
  • mame Ubuntu Pro 20.04 LTS 0.220+dfsg.1-1ubuntu0.1~esm1
  • mame Ubuntu Pro 22.04 LTS 0.242+dfsg.1-1ubuntu0.1~esm1
  • mame Ubuntu Pro 24.04 LTS 0.264+dfsg.1-1ubuntu0.1~esm1

ubuntu advisories UBUNTU-CVE-2018-16981

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Is CVE-2018-16981 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2018-16981 updated cvss 4.3

stbi: Heap-based buffer overflow in stb_image.h:stbi__out_gif_code() function

  • Red Hat Enterprise Linux 6 clutter Red Hat Enterprise Linux 7 cogl, compat-libcogl12, compat-libcogl-pango12 Red Hat Enterprise Linux 8 cogl, SFML
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

1.59% chance of exploitation in the next 30 days, higher than 75% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • github.com https://github.com/nothings/stb/issues/656 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD 2.0 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P

Classification

Weakness

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.