cve.bz

CVE-2018-16981 Out-of-bounds Write

8.8 highExploit referenceEPSS 1.6%

High (8.8). EPSS 1.6% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
1.6% (unchanged from 1.6% a week ago; 1.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 76th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-16981 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-16981?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-16981?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-16981 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
nothings:stb_image.h2.19
debian:debian_linux10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10libstb0.0~git20180212.15.e6afb9c-1+deb10u1DLA-3305-1
Debian12, 13, 14libstb0.0~git20190617.5.c72a95d-1DEBIAN-CVE-2018-16981
Ubuntu16.04:LTSlove, mame, libsfml and 3 moreno fix listedUBUNTU-CVE-2018-16981
Ubuntu18.04:LTSlove, goxel, catimg and 5 moreno fix listedUBUNTU-CVE-2018-16981
Ubuntu20.04:LTS, 22.04:LTSlove, goxel, catimg and 7 moreno fix listedUBUNTU-CVE-2018-16981
Ubuntu24.04:LTSlove, goxel, catimg and 6 moreno fix listedUBUNTU-CVE-2018-16981
Ubuntu25.10love, goxel, catimg and 6 moreno fix listedUBUNTU-CVE-2018-16981
Ubuntu25.10mame0.277+dfsg.1-4ubuntu0.1UBUNTU-CVE-2018-16981 USN-7913-1
Ubuntu26.04:LTS, 26.10love, mame, goxel and 7 moreno fix listedUBUNTU-CVE-2018-16981
UbuntuPro:18.04:LTSmame0.195+dfsg.1-2ubuntu0.1~esm1UBUNTU-CVE-2018-16981 USN-7913-1
UbuntuPro:20.04:LTSmame0.220+dfsg.1-1ubuntu0.1~esm1UBUNTU-CVE-2018-16981 USN-7913-1
UbuntuPro:20.04:LTS, Pro:22.04:LTSrenderdocno fix listedUBUNTU-CVE-2018-16981
UbuntuPro:22.04:LTSmame0.242+dfsg.1-1ubuntu0.1~esm1UBUNTU-CVE-2018-16981 USN-7913-1
UbuntuPro:24.04:LTSmame0.264+dfsg.1-1ubuntu0.1~esm1UBUNTU-CVE-2018-16981 USN-7913-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue did not affect the versions of cogl and compat-cogl114 as shipped with Red Hat Enterprise Linux 7.

This issue did not affect the versions of clutter as shipped with Red Hat Enterprise Linux 6.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6clutterNot affected
Red Hat Enterprise Linux 7coglNot affected
Red Hat Enterprise Linux 7compat-cogl114Not affected
Red Hat Enterprise Linux 8coglNot affected
Red Hat Enterprise Linux 8SFMLNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-16981.

References

Check your stackJSON