{"id":"CVE-2021-40263","aliases":["DEBIAN-CVE-2021-40263","EUVD-2021-27447","GHSA-jpj5-vg69-hf8v","OESA-2024-2305","UBUNTU-CVE-2021-40263"],"status":"published","title":"A heap overflow vulnerability in FreeImage 1.18.0 via the ofLoad function in PluginTIFF.cpp.","description":"A heap overflow vulnerability in FreeImage 1.18.0 via the ofLoad function in PluginTIFF.cpp.","severity":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/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.01163,"percentile":0.67651,"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":"openEuler:20.03-LTS-SP4","package":"freeimage","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.18.0-7.oe2003sp4"}]}],"bundled":8},{"source":"osv","ecosystem":"openEuler:22.03-LTS-SP1","package":"freeimage","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.18.0-11.oe2203sp1"}]}],"bundled":8},{"source":"osv","ecosystem":"openEuler:24.03-LTS","package":"freeimage","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.18.0-13.oe2403"}]}],"bundled":8},{"source":"osv","ecosystem":"openEuler:22.03-LTS-SP4","package":"freeimage","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.18.0-11.oe2203sp4"}]}],"bundled":8},{"source":"osv","ecosystem":"openEuler:22.03-LTS-SP3","package":"freeimage","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.18.0-11.oe2203sp3"}]}],"bundled":8},{"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/336/","tags":["x_transferred","Exploit","Issue Tracking","report"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/M6GKMK74POW3RU7F4HLUJE7XEFLQDO35/","tags":["vendor-advisory","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HFRQ76ZDPSWT7OH6FJDLSFWBXVBE6JDN/","tags":["vendor-advisory","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40263","tags":["advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/M6GKMK74POW3RU7F4HLUJE7XEFLQDO35/"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HFRQ76ZDPSWT7OH6FJDLSFWBXVBE6JDN/"},{"url":"https://github.com/advisories/GHSA-jpj5-vg69-hf8v"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-40263","tags":["advisory"]},{"url":"https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2024-2305","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-24292","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-24293","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-24295","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-33367","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40266","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-47995","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-47997","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-40263","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-40263","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-40263","description":"A heap overflow vulnerability in FreeImage 1.18.0 via the ofLoad function in PluginTIFF.cpp.","status":"published","published":"2023-08-22T00:00:00Z","modified":"2024-10-03T18:07:32.794Z","updated_at":"2026-11-02T14:33:01.495293Z"}],"euvd":[{"id":"EUVD-2021-27447","description":"A heap overflow vulnerability in FreeImage 1.18.0 via the ofLoad function in PluginTIFF.cpp.","status":"published","published":"2023-08-22T00:00:00Z","modified":"2024-10-03T18:07:32Z","updated_at":"2026-11-03T00:27:54.233481Z"}],"ghsa":[{"id":"GHSA-jpj5-vg69-hf8v","title":"A heap overflow vulnerability in FreeImage 1.18.0 via the ofLoad function in PluginTIFF.cpp.","description":"A heap overflow vulnerability in FreeImage 1.18.0 via the ofLoad function in PluginTIFF.cpp.","status":"published","published":"2023-08-22T21:30:26Z","modified":"2023-11-03T21:30:19Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:54:48.673101Z"}],"nvd":[{"id":"CVE-2021-40263","description":"A heap overflow vulnerability in FreeImage 1.18.0 via the ofLoad function in PluginTIFF.cpp.","status":"published","published":"2023-08-22T19:16:21.54Z","modified":"2026-06-17T04:06:41.227Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:07:07.764332Z"}],"osv":[{"id":"CVE-2021-40263","description":"A heap overflow vulnerability in FreeImage 1.18.0 via the ofLoad function in PluginTIFF.cpp.","status":"published","published":"2023-08-22T19:16:21.54Z","modified":"2026-03-14T14:52:36.866871Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:21.249056Z"},{"id":"DEBIAN-CVE-2021-40263","description":"A heap overflow vulnerability in FreeImage 1.18.0 via the ofLoad function in PluginTIFF.cpp.","status":"published","published":"2023-08-22T19:16:21.54Z","modified":"2026-10-23T18:03:32.806101913Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:35.521549Z"},{"id":"OESA-2024-2305","title":"freeimage security update","description":"FreeImage is a library project for developers who would like to support popular graphics image formats (PNG, JPEG, TIFF, BMP and others). Some highlights are: extremely simple in use, not limited to the local PC (unique FreeImageIO) and Plugin driven!\r\n\r\nSecurity Fix(es):\r\n\r\nBuffer Overflow vulnerability in load function in PluginICO.cpp in FreeImage 3.19.0 [r1859] allows remote attackers to run arbitrary code via opening of crafted ico file.(CVE-2020-24292)\r\n\r\nBuffer Overflow vulnerability in psdThumbnail::Read in PSDParser.cpp in FreeImage 3.19.0 [r1859] allows remote attackers to run arbitrary code via opening of crafted psd file.(CVE-2020-24293)\r\n\r\nBuffer Overflow vulnerability in PSDParser.cpp::ReadImageLine() in FreeImage 3.19.0 [r1859] allows remote attackers to ru narbitrary code via use of crafted psd file.(CVE-2020-24295)\r\n\r\nBuffer Overflow vulnerability in Freeimage v3.18.0 allows attacker to cause a denial of service via a crafted JXR file.(CVE-2021-33367)\r\n\r\nA heap overflow vulnerability in FreeImage 1.18.0 via the ofLoad function in PluginTIFF.cpp.(CVE-2021-40263)\r\n\r\nFreeImage before 1.18.0, ReadPalette function in PluginTIFF.cpp is vulnerabile to null pointer dereference.(CVE-2021-40266)\r\n\r\nMemory Allocation with Excessive Size Value discovered in BitmapAccess.cpp::FreeImage_AllocateBitmap in FreeImage 3.18.0 allows attackers to cause a denial of service.(CVE-2023-47995)\r\n\r\nAn issue discovered in BitmapAccess.cpp::FreeImage_AllocateBitmap in FreeImage 3.18.0 leads to an infinite loop and allows attackers to cause a denial of service.(CVE-2023-47997)","status":"published","published":"2024-11-01T11:07:47Z","modified":"2026-08-18T01:17:35.705369078Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:52:41.595342Z"},{"id":"UBUNTU-CVE-2021-40263","description":"A heap overflow vulnerability in FreeImage 1.18.0 via the ofLoad function in PluginTIFF.cpp.","status":"published","published":"2023-08-22T19:16:00Z","modified":"2026-10-17T12:56:01.219918271Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:28.526929Z"}]}}
