# CVE-2021-28021: Buffer overflow vulnerability in function stbiextendreceive in stbimage.h in stb 2.26 via a crafted JPEG file.

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.43%, higher than 73% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-10-15T00:00:00.000Z
- Modified: 2026-06-17T03:45:43.493Z
- Weaknesses: CWE-787
- Assigned by: mitre

## Description

Buffer overflow vulnerability in function stbi__extend_receive in stb_image.h in stb 2.26 via a crafted JPEG file.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- stb_project stb: 2.26
- fedoraproject fedora: 34; 35
- debian debian_linux: 10.0

## Every score

- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/nothings/stb/issues/1108> (exploit, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G2M5CRSGPRF7G3YB5CLU4FXW7ANNHAYT/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BEGXBDEMTFGINETMJENBZ6SCHVEJQJSY/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VP2YEXEAJWI76FPM7D7VXHWD3WESQEYC/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3TDGZFLBOP27LZKLH45WQLSNPSPP7S7Z/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AF2CNP4FVC6LDKNOO4WDCGNDYIP3MPK6/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TXX76TJMZBPN3NU542MGN6B7C7QHRFGB/> (vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/01/msg00045.html> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2021-28021](https://www.cve.org/CVERecord?id=CVE-2021-28021), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-28021](https://nvd.nist.gov/vuln/detail/CVE-2021-28021), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-28021 · Whole record: https://cve.day/CVE-2021-28021.json · Rebuilt by cve.day 2026-11-25T22:58:04.519Z
