{"id":"CVE-2021-42715","aliases":["DEBIAN-CVE-2021-42715","DLA-3305-1","DLA-4493-1","EUVD-2021-29675","GHSA-x76g-p4rm-4xch","MGASA-2021-0549","MGASA-2022-0074","SUSE-SU-2022:0157-1","SUSE-SU-2022:0163-1","UBUNTU-CVE-2021-42715","openSUSE-SU-2022:0157-1","openSUSE-SU-2024:11686-1"],"status":"published","title":"An issue was discovered in stb stb_image.h 1.33 through 2.27. The HDR loader parsed truncated end...","description":"An issue was discovered in stb stb_image.h 1.33 through 2.27. The HDR loader parsed truncated end-of-file RLE scanlines as an infinite sequence of zero-length runs. An attacker could potentially have caused denial of service in applications using stb_image by submitting crafted HDR files.","severity":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-12","score":0.013,"percentile":0.70861,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-835"],"published":"2021-10-21T00:00:00Z","modified":"2026-10-23T18:03:39Z","fixes":[{"ecosystem":"Debian:13","package":"libstb","fixed_in":["0.0~git20230129.5736b15+ds-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"libstb","fixed_in":["0.0~git20230129.5736b15+ds-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"libstb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0~git20220908.8b5f1f3+ds-1","0.0~git20230129.5736b15+ds-1","0.0~git20230129.5736b15+ds-1.1","0.0~git20230129.5736b15+ds-1.1~exp1","0.0~git20230129.5736b15+ds-1.2","0.0~git20240715.f7f20f39fe4f+ds-1","0.0~git20241109.5c20573+ds-1","0.0~git20250907.fede005+ds-1"]},{"source":"osv","ecosystem":"Debian:13","package":"libstb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0~git20230129.5736b15+ds-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"libstb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0~git20230129.5736b15+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":"nothings","product":"stb_image.h"}],"references":[{"url":"https://github.com/nothings/stb/issues/1224","tags":["x_transferred","Issue Tracking","Third Party Advisory","report"]},{"url":"https://github.com/nothings/stb/pull/1223","tags":["x_transferred","Third Party Advisory","advisory","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/ID6II3RIKAMVGVMC6ZAQIXXYYDMTVC4N/","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/CI23LXPEV2GCDQTJSKO6CIILBDTI3R42/","tags":["vendor-advisory","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FTZXHFZD36BGE5P6JF252NZZLKMGCY4T/","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-42715"},{"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/CI23LXPEV2GCDQTJSKO6CIILBDTI3R42/"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FTZXHFZD36BGE5P6JF252NZZLKMGCY4T/"},{"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/ID6II3RIKAMVGVMC6ZAQIXXYYDMTVC4N/"},{"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-x76g-p4rm-4xch"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-42715","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-42715","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-42715","tags":["report"]},{"url":"","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2021-42715","description":"An issue was discovered in stb stb_image.h 1.33 through 2.27. The HDR loader parsed truncated end-of-file RLE scanlines as an infinite sequence of zero-length runs. An attacker could potentially have caused denial of service in applications using stb_image by submitting crafted HDR files.","status":"published","published":"2021-10-21T00:00:00Z","modified":"2024-08-04T03:38:50.037Z","updated_at":"2026-11-02T14:32:58.739039Z"}],"euvd":[{"id":"EUVD-2021-29675","description":"An issue was discovered in stb stb_image.h 1.33 through 2.27. The HDR loader parsed truncated end-of-file RLE scanlines as an infinite sequence of zero-length runs. An attacker could potentially have caused denial of service in applications using stb_image by submitting crafted HDR files.","status":"published","published":"2021-10-21T00:00:00Z","modified":"2024-08-04T03:38:50Z","updated_at":"2026-11-03T03:24:15.755984Z"}],"ghsa":[{"id":"GHSA-x76g-p4rm-4xch","title":"An issue was discovered in stb stb_image.h 1.33 through 2.27. The HDR loader parsed truncated end...","description":"An issue was discovered in stb stb_image.h 1.33 through 2.27. The HDR loader parsed truncated end-of-file RLE scanlines as an infinite sequence of zero-length runs. An attacker could potentially have caused denial of service in applications using stb_image by submitting crafted HDR files.","status":"published","published":"2022-05-24T19:18:26Z","modified":"2023-02-01T00:30:28Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-835"],"updated_at":"2026-11-02T14:49:32.359752Z"}],"nvd":[{"id":"CVE-2021-42715","description":"An issue was discovered in stb stb_image.h 1.33 through 2.27. The HDR loader parsed truncated end-of-file RLE scanlines as an infinite sequence of zero-length runs. An attacker could potentially have caused denial of service in applications using stb_image by submitting crafted HDR files.","status":"published","published":"2021-10-21T19:15:08.017Z","modified":"2026-06-17T04:09:59.927Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-835"],"updated_at":"2026-11-02T14:07:00.137719Z"}],"osv":[{"id":"CVE-2021-42715","description":"An issue was discovered in stb stb_image.h 1.33 through 2.27. The HDR loader parsed truncated end-of-file RLE scanlines as an infinite sequence of zero-length runs. An attacker could potentially have caused denial of service in applications using stb_image by submitting crafted HDR files.","status":"published","published":"2021-10-21T19:15:08.017Z","modified":"2026-04-16T04:30:46.111349859Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:44:21.557945Z"},{"id":"DEBIAN-CVE-2021-42715","description":"An issue was discovered in stb stb_image.h 1.33 through 2.27. The HDR loader parsed truncated end-of-file RLE scanlines as an infinite sequence of zero-length runs. An attacker could potentially have caused denial of service in applications using stb_image by submitting crafted HDR files.","status":"published","published":"2021-10-21T19:15:08.017Z","modified":"2026-10-23T18:03:39.38990583Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:45:35.799676Z"},{"id":"UBUNTU-CVE-2021-42715","description":"An issue was discovered in stb stb_image.h 1.33 through 2.27. The HDR loader parsed truncated end-of-file RLE scanlines as an infinite sequence of zero-length runs. An attacker could potentially have caused denial of service in applications using stb_image by submitting crafted HDR files.","status":"published","published":"2021-10-21T19:15:00Z","modified":"2026-10-17T12:56:01.360723347Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:54:29.220315Z"},{"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"}]}}
