{"id":"CVE-2021-40262","aliases":["DEBIAN-CVE-2021-40262","EUVD-2021-27446","GHSA-ffv6-g99g-rj96","UBUNTU-CVE-2021-40262"],"status":"published","title":"A stack exhaustion issue was discovered in FreeImage before 1.18.0 via the Validate function in...","description":"A stack exhaustion issue was discovered in FreeImage before 1.18.0 via the Validate function in PluginRAW.cpp.","severity":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.00731,"percentile":0.54753,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-787"],"published":"2023-08-22T00:00:00Z","modified":"2026-10-23T18:03:32Z","affected":[{"source":"osv","ecosystem":"Debian:12","package":"freeimage","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.18.0+ds2-10","3.18.0+ds2-11","3.18.0+ds2-9","3.18.0+ds2-9+deb12u1","3.18.0+ds2-9.1","4.2.1+ds-1~exp1","4.2.1+ds-1~exp2","4.2.1+ds-1~exp3"]},{"source":"osv","ecosystem":"Debian:13","package":"freeimage","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.18.0+ds2-11","4.2.1+ds-1~exp1","4.2.1+ds-1~exp2","4.2.1+ds-1~exp3"]},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"freeimage","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.15.1-2build1","3.15.1-2build2","3.15.4-2","3.15.4-3","3.15.4-3ubuntu0.1","3.15.4-3ubuntu0.1+esm1","3.15.4-3ubuntu0.1+esm2","3.15.4-3ubuntu0.1+esm3"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"freeimage","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.15.4-4.1build1","3.15.4-6","3.17.0+ds1-1.1","3.17.0+ds1-2","3.17.0+ds1-2ubuntu0.1","3.17.0+ds1-2ubuntu0.1+esm1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"freeimage","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.17.0+ds1-5build2","3.17.0+ds1-5+deb9u1build0.18.04.1","3.17.0+ds1-5+deb9u1ubuntu0.1~esm1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"freeimage","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.18.0+ds2-1ubuntu1","3.18.0+ds2-1ubuntu2","3.18.0+ds2-1ubuntu3","3.18.0+ds2-1ubuntu3.1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"freeimage","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.18.0+ds2-6ubuntu3","3.18.0+ds2-6ubuntu4","3.18.0+ds2-6ubuntu5","3.18.0+ds2-6ubuntu5.1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"freeimage","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.18.0+ds2-9.1","3.18.0+ds2-10","3.18.0+ds2-10build2","3.18.0+ds2-10build3","3.18.0+ds2-10build4"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"freeimage","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.18.0+ds2-11"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"freeimage","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.18.0+ds2-11build1","3.18.0+ds2-11build2","3.18.0+ds2-11build3"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"freeimage","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.18.0+ds2-11","3.18.0+ds2-11build1"]}],"products":[{"vendor":"freeimage_project","product":"freeimage"}],"references":[{"url":"https://sourceforge.net/p/freeimage/bugs/338/","tags":["x_transferred","Exploit","Issue Tracking","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40262"},{"url":"https://sourceforge.net/p/freeimage/bugs/338"},{"url":"https://github.com/advisories/GHSA-ffv6-g99g-rj96"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-40262","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-40262","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-40262","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-40262","description":"A stack exhaustion issue was discovered in FreeImage before 1.18.0 via the Validate function in PluginRAW.cpp.","status":"published","published":"2023-08-22T00:00:00Z","modified":"2024-10-03T18:09:23.174Z","updated_at":"2026-11-02T14:33:01.495293Z"}],"euvd":[{"id":"EUVD-2021-27446","description":"A stack exhaustion issue was discovered in FreeImage before 1.18.0 via the Validate function in PluginRAW.cpp.","status":"published","published":"2023-08-22T00:00:00Z","modified":"2024-10-03T18:09:23Z","updated_at":"2026-11-03T00:27:53.790276Z"}],"ghsa":[{"id":"GHSA-ffv6-g99g-rj96","title":"A stack exhaustion issue was discovered in FreeImage before 1.18.0 via the Validate function in...","description":"A stack exhaustion issue was discovered in FreeImage before 1.18.0 via the Validate function in PluginRAW.cpp.","status":"published","published":"2023-08-22T21:30:26Z","modified":"2024-04-04T07:07:14Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:56:48.229282Z"}],"nvd":[{"id":"CVE-2021-40262","description":"A stack exhaustion issue was discovered in FreeImage before 1.18.0 via the Validate function in PluginRAW.cpp.","status":"published","published":"2023-08-22T19:16:21.487Z","modified":"2026-06-17T04:06:41.103Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:07:07.764332Z"}],"osv":[{"id":"CVE-2021-40262","description":"A stack exhaustion issue was discovered in FreeImage before 1.18.0 via the Validate function in PluginRAW.cpp.","status":"published","published":"2023-08-22T19:16:21.487Z","modified":"2026-03-14T08:24:01.32557Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:44:21.249056Z"},{"id":"DEBIAN-CVE-2021-40262","description":"A stack exhaustion issue was discovered in FreeImage before 1.18.0 via the Validate function in PluginRAW.cpp.","status":"published","published":"2023-08-22T19:16:21.487Z","modified":"2026-10-23T18:03:32.629815733Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:45:35.521549Z"},{"id":"UBUNTU-CVE-2021-40262","description":"A stack exhaustion issue was discovered in FreeImage before 1.18.0 via the Validate function in PluginRAW.cpp.","status":"published","published":"2023-08-22T19:16:00Z","modified":"2026-10-17T12:56:01.452160157Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:54:28.526929Z"}]}}
