{"id":"CVE-2021-28021","aliases":["DEBIAN-CVE-2021-28021","DLA-3305-1","DLA-4493-1","EUVD-2021-14739","GHSA-w9gr-856x-c2gv","MGASA-2021-0549","MGASA-2022-0074","SUSE-SU-2022:0157-1","SUSE-SU-2022:0163-1","UBUNTU-CVE-2021-28021","openSUSE-SU-2022:0157-1","openSUSE-SU-2024:11686-1"],"status":"published","title":"Buffer overflow vulnerability in function stbi__extend_receive in stb_image.h in stb 2.26 via a...","description":"Buffer overflow vulnerability in function stbi__extend_receive in stb_image.h in stb 2.26 via a crafted JPEG file.","severity":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.0143,"percentile":0.73356,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-787"],"published":"2021-10-15T00:00:00Z","modified":"2026-10-23T18:03:59Z","fixes":[{"ecosystem":"Debian:12","package":"libstb","fixed_in":["0.0~git20220908.8b5f1f3+ds-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"libstb","fixed_in":["0.0~git20220908.8b5f1f3+ds-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"libstb","fixed_in":["0.0~git20220908.8b5f1f3+ds-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"libstb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0~git20220908.8b5f1f3+ds-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"libstb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0~git20220908.8b5f1f3+ds-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"libstb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0~git20220908.8b5f1f3+ds-1"}]}]},{"source":"osv","ecosystem":"Debian:10","package":"libstb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0~git20180212.15.e6afb9c-1+deb10u1"}]}],"versions":["0.0~git20180212.15.e6afb9c-1"],"bundled":13},{"source":"osv","ecosystem":"Debian:11","package":"libstb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0~git20200713.b42009b+ds-1+deb11u1"}]}],"versions":["0.0~git20200713.b42009b+ds-1"],"bundled":5},{"source":"osv","ecosystem":"Mageia:8","package":"curaengine","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.8.0-1.1.mga8"}]}],"bundled":3},{"source":"osv","ecosystem":"Mageia:8","package":"zxing-cpp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.1.1-2.1.mga8"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP3","package":"zxing-cpp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.0-9.7.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Workstation Extension 15 SP3","package":"zxing-cpp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.0-9.7.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP5","package":"zxing-cpp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.0-8.6.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Workstation Extension 12 SP5","package":"zxing-cpp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.0-8.6.1"}]}],"bundled":3},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"libstb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0~git20190817.1.052dce1-1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"libstb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0~git20200713.b42009b+ds-1","0.0~git20210910.af1a5bc+ds-1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"libstb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0~git20230129.5736b15+ds-1","0.0~git20230129.5736b15+ds-1.1","0.0~git20230129.5736b15+ds-1.2"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"libstb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0~git20240715.f7f20f39fe4f+ds-1","0.0~git20241109.5c20573+ds-1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"libstb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0~git20250907.fede005+ds-1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"libstb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0~git20241109.5c20573+ds-1","0.0~git20250907.fede005+ds-1"]},{"source":"osv","ecosystem":"openSUSE:Leap 15.3","package":"zxing-cpp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.0-9.7.1"}]}],"bundled":3}],"products":[{"vendor":"debian","product":"debian_linux"},{"vendor":"fedoraproject","product":"fedora"},{"vendor":"stb_project","product":"stb"}],"references":[{"url":"https://github.com/nothings/stb/issues/1108","tags":["x_transferred","Exploit","Third Party Advisory","evidence","report"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G2M5CRSGPRF7G3YB5CLU4FXW7ANNHAYT/","tags":["vendor-advisory","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BEGXBDEMTFGINETMJENBZ6SCHVEJQJSY/","tags":["vendor-advisory","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VP2YEXEAJWI76FPM7D7VXHWD3WESQEYC/","tags":["vendor-advisory","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3TDGZFLBOP27LZKLH45WQLSNPSPP7S7Z/","tags":["vendor-advisory","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AF2CNP4FVC6LDKNOO4WDCGNDYIP3MPK6/","tags":["vendor-advisory","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TXX76TJMZBPN3NU542MGN6B7C7QHRFGB/","tags":["vendor-advisory","x_transferred","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00045.html","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28021"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3TDGZFLBOP27LZKLH45WQLSNPSPP7S7Z/"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AF2CNP4FVC6LDKNOO4WDCGNDYIP3MPK6/"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BEGXBDEMTFGINETMJENBZ6SCHVEJQJSY/"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/G2M5CRSGPRF7G3YB5CLU4FXW7ANNHAYT/"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TXX76TJMZBPN3NU542MGN6B7C7QHRFGB/"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VP2YEXEAJWI76FPM7D7VXHWD3WESQEYC/"},{"url":"https://github.com/advisories/GHSA-w9gr-856x-c2gv"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-28021","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2021-0549.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=29622","tags":["report"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/3TDGZFLBOP27LZKLH45WQLSNPSPP7S7Z/","tags":["web"]},{"url":"https://advisories.mageia.org/MGASA-2022-0074.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=29937","tags":["report"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/TPIWID3WJ3SMCA23W52QU3RW6AU7JCA7/","tags":["web","advisory"]},{"url":"https://www.suse.com/support/update/announcement/2022/suse-su-20220157-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1191743","tags":["report"]},{"url":"https://bugzilla.suse.com/1191942","tags":["report"]},{"url":"https://bugzilla.suse.com/1191944","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2021-28021","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2021-42715","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2021-42716","tags":["web"]},{"url":"https://www.suse.com/support/update/announcement/2022/suse-su-20220163-1/","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-28021","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-28021","tags":["report"]},{"url":"","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2021-28021","description":"Buffer overflow vulnerability in function stbi__extend_receive in stb_image.h in stb 2.26 via a crafted JPEG file.","status":"published","published":"2021-10-15T00:00:00Z","modified":"2024-08-03T21:33:17.273Z","updated_at":"2026-11-02T14:33:09.175141Z"}],"euvd":[{"id":"EUVD-2021-14739","description":"Buffer overflow vulnerability in function stbi__extend_receive in stb_image.h in stb 2.26 via a crafted JPEG file.","status":"published","published":"2021-10-15T00:00:00Z","modified":"2024-08-03T21:33:17Z","updated_at":"2026-11-03T03:24:47.80549Z"}],"ghsa":[{"id":"GHSA-w9gr-856x-c2gv","title":"Buffer overflow vulnerability in function stbi__extend_receive in stb_image.h in stb 2.26 via a...","description":"Buffer overflow vulnerability in function stbi__extend_receive in stb_image.h in stb 2.26 via a crafted JPEG file.","status":"published","published":"2022-05-24T19:17:40Z","modified":"2023-02-08T05:06:33Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:53:59.06921Z"}],"nvd":[{"id":"CVE-2021-28021","description":"Buffer overflow vulnerability in function stbi__extend_receive in stb_image.h in stb 2.26 via a crafted JPEG file.","status":"published","published":"2021-10-15T16:15:07.34Z","modified":"2026-06-17T03:45:43.493Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:06:59.689345Z"}],"osv":[{"id":"CVE-2021-28021","description":"Buffer overflow vulnerability in function stbi__extend_receive in stb_image.h in stb 2.26 via a crafted JPEG file.","status":"published","published":"2021-10-15T16:15:07.34Z","modified":"2026-04-16T04:39:24.769271545Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:19.129331Z"},{"id":"DEBIAN-CVE-2021-28021","description":"Buffer overflow vulnerability in function stbi__extend_receive in stb_image.h in stb 2.26 via a crafted JPEG file.","status":"published","published":"2021-10-15T16:15:07.34Z","modified":"2026-10-23T18:03:59.235640831Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:34.94143Z"},{"id":"UBUNTU-CVE-2021-28021","description":"Buffer overflow vulnerability in function stbi__extend_receive in stb_image.h in stb 2.26 via a crafted JPEG file.","status":"published","published":"2021-10-15T16:15:00Z","modified":"2026-10-17T12:56:14.673903839Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:26.779273Z"},{"id":"DLA-3305-1","title":"libstb - security update","status":"published","published":"2023-01-31T00:00:00Z","modified":"2026-03-09T01:20:44.847628Z","updated_at":"2026-11-02T15:46:11.734021Z"},{"id":"DLA-4493-1","title":"libstb - security update","status":"published","published":"2026-02-26T00:00:00Z","modified":"2026-02-26T07:30:36.893926Z","updated_at":"2026-11-02T15:46:12.7027Z"},{"id":"MGASA-2021-0549","title":"Updated curaengine packages fix security vulnerability","description":"Buffer overflow vulnerability in function stbi__extend_receive in\nstb_image.h in stb 2.26 via a crafted JPEG file. (CVE-2021-28021)\n\nAn issue was discovered in stb stb_image.h 1.33 through 2.27. The HDR\nloader parsed truncated end-of-file RLE scanlines as an infinite sequence\nof zero-length runs. An attacker could potentially have caused denial of\nservice in applications using stb_image by submitting crafted HDR files.\n(CVE-2021-42715)\n\nAn issue was discovered in stb stb_image.h 2.27. The PNM loader\nincorrectly interpreted 16-bit PGM files as 8-bit when converting to RGBA,\nleading to a buffer overflow when later reinterpreting the result as a\n16-bit buffer. An attacker could potentially have crashed a service using\nstb_image, or read up to 1024 bytes of non-consecutive heap data without\ncontrol over the read location. (CVE-2021-42716)\n","status":"published","published":"2021-12-10T22:19:07Z","modified":"2026-04-16T04:43:35.211576016Z","updated_at":"2026-11-02T15:49:41.849028Z"},{"id":"MGASA-2022-0074","title":"Updated zxing-cpp packages fix security vulnerability","description":"Buffer overflow vulnerability in function stbi__extend_receive in stb_image.h\nin stb 2.26 via a crafted JPEG file. (CVE-2021-28021)\n\nAn issue was discovered in stb stb_image.h 1.33 through 2.27. The HDR loader\nparsed truncated end-of-file RLE scanlines as an infinite sequence of\nzero-length runs. An attacker could potentially have caused denial of service\nin applications using stb_image by submitting crafted HDR files.\n(CVE-2021-42715)\n\nAn issue was discovered in stb stb_image.h 2.27. The PNM loader incorrectly\ninterpreted 16-bit PGM files as 8-bit when converting to RGBA, leading to a\nbuffer overflow when later reinterpreting the result as a 16-bit buffer. An\nattacker could potentially have crashed a service using stb_image, or read up\nto 1024 bytes of non-consecutive heap data without control over the read\nlocation. (CVE-2021-42716)\n","status":"published","published":"2022-02-18T00:14:24Z","modified":"2026-04-16T04:43:38.911001955Z","updated_at":"2026-11-02T15:49:41.849028Z"},{"id":"openSUSE-SU-2022:0157-1","title":"Security update for zxing-cpp","description":"This update for zxing-cpp fixes the following issues:\n\n- CVE-2021-28021: Fixed buffer overflow vulnerability in function stbi__extend_receive in stb_image.h via a crafted JPEG file. (bsc#1191743).\n- CVE-2021-42715: Fixed buffer overflow in stb_image PNM loader (bsc#1191942).\n- CVE-2021-42716: Fixed denial of service in stb_image HDR loader when reading crafted HDR files (bsc#1191944).\n","status":"published","published":"2022-01-24T09:10:46Z","modified":"2025-05-07T18:12:39.751683Z","updated_at":"2026-11-02T16:58:32.653274Z"},{"id":"openSUSE-SU-2024:11686-1","title":"libZXing1-1.2.0-2.1 on GA media","description":"These are all security issues fixed in the libZXing1-1.2.0-2.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T02:33:09.429457Z","updated_at":"2026-11-02T16:58:35.195147Z"},{"id":"SUSE-SU-2022:0157-1","title":"Security update for zxing-cpp","description":"This update for zxing-cpp fixes the following issues:\n\n- CVE-2021-28021: Fixed buffer overflow vulnerability in function stbi__extend_receive in stb_image.h via a crafted JPEG file. (bsc#1191743).\n- CVE-2021-42715: Fixed buffer overflow in stb_image PNM loader (bsc#1191942).\n- CVE-2021-42716: Fixed denial of service in stb_image HDR loader when reading crafted HDR files (bsc#1191944).\n","status":"published","published":"2022-01-24T09:10:45Z","modified":"2026-02-04T03:30:41.180434Z","updated_at":"2026-11-02T15:53:50.066806Z"},{"id":"SUSE-SU-2022:0163-1","title":"Security update for zxing-cpp","description":"This update for zxing-cpp fixes the following issues:\n\n- CVE-2021-28021: Fixed buffer overflow vulnerability in function stbi__extend_receive in stb_image.h via a crafted JPEG file. (bsc#1191743).\n- CVE-2021-42715: Fixed buffer overflow in stb_image PNM loader (bsc#1191942).\n- CVE-2021-42716: Fixed denial of service in stb_image HDR loader when reading crafted HDR files (bsc#1191944).\n","status":"published","published":"2022-01-24T13:02:51Z","modified":"2026-02-04T03:10:34.500511Z","updated_at":"2026-11-02T15:53:50.066806Z"}]}}
