{"id":"UBUNTU-CVE-2026-118752","details":"FreeImage (danoli3 fork) before 3.19.22 contains a heap buffer overflow vulnerability in the PBM RLE decoder of PluginIFF.cpp that lacks bounds checks on ByteRun1 runs. Attackers can supply a crafted IFF/LBM PBM file with runs straddling scanline ends to write up to 127 controlled bytes past the heap-allocated bitmap.","modified":"2026-10-29T20:04:32.148556477Z","published":"2026-10-29T00:00:00Z","upstream":["CVE-2026-118752"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-118752"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-118752"},{"type":"REPORT","url":"https://github.com/danoli3/FreeImage"},{"type":"REPORT","url":"https://github.com/danoli3/FreeImage/blob/3.19.21/Source/FreeImage/PluginIFF.cpp#L296-L324"},{"type":"REPORT","url":"https://github.com/danoli3/FreeImage/commit/cf173c16354274dc8fb739dc395fc7f32efe7d45"},{"type":"REPORT","url":"https://github.com/danoli3/FreeImage/commit/e1105d3b464b679f0525c6178d9ccf49d55cf712"},{"type":"REPORT","url":"https://github.com/danoli3/FreeImage/issues/156"},{"type":"REPORT","url":"https://github.com/danoli3/FreeImage/pull/161"},{"type":"REPORT","url":"https://github.com/danoli3/FreeImage/releases/tag/3.19.22"},{"type":"REPORT","url":"https://www.vulncheck.com/advisories/freeimage-before-3.19.22-heap-buffer-overflow-via-iff-lbm-pbm-rle-decoder"}],"affected":[{"package":{"name":"freeimage","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/freeimage?arch=source&distro=esm-infra-legacy%2Ftrusty"},"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"],"ecosystem_specific":{"binaries":[{"binary_name":"libfreeimage3","binary_version":"3.15.4-3ubuntu0.1+esm3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-118752.json"}},{"package":{"name":"freeimage","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/freeimage?arch=source&distro=esm-apps%2Fxenial"},"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"],"ecosystem_specific":{"binaries":[{"binary_version":"3.17.0+ds1-2ubuntu0.1+esm1","binary_name":"libfreeimage3"},{"binary_name":"libfreeimageplus3","binary_version":"3.17.0+ds1-2ubuntu0.1+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-118752.json"}},{"package":{"name":"freeimage","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/freeimage?arch=source&distro=esm-apps%2Fbionic"},"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"],"ecosystem_specific":{"binaries":[{"binary_name":"libfreeimage3","binary_version":"3.17.0+ds1-5+deb9u1ubuntu0.1~esm1"},{"binary_version":"3.17.0+ds1-5+deb9u1ubuntu0.1~esm1","binary_name":"libfreeimageplus3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-118752.json"}},{"package":{"name":"freeimage","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/freeimage?arch=source&distro=focal"},"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"],"ecosystem_specific":{"binaries":[{"binary_name":"libfreeimage3","binary_version":"3.18.0+ds2-1ubuntu3.1"},{"binary_name":"libfreeimageplus3","binary_version":"3.18.0+ds2-1ubuntu3.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-118752.json"}},{"package":{"name":"freeimage","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/freeimage?arch=source&distro=jammy"},"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"],"ecosystem_specific":{"binaries":[{"binary_name":"libfreeimage3","binary_version":"3.18.0+ds2-6ubuntu5.1"},{"binary_name":"libfreeimageplus3","binary_version":"3.18.0+ds2-6ubuntu5.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-118752.json"}},{"package":{"name":"freeimage","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/freeimage?arch=source&distro=noble"},"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"],"ecosystem_specific":{"binaries":[{"binary_name":"libfreeimage3","binary_version":"3.18.0+ds2-10build4"},{"binary_name":"libfreeimageplus3","binary_version":"3.18.0+ds2-10build4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-118752.json"}},{"package":{"name":"freeimage","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/freeimage?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.18.0+ds2-11build1","3.18.0+ds2-11build2","3.18.0+ds2-11build3"],"ecosystem_specific":{"binaries":[{"binary_name":"libfreeimage3","binary_version":"3.18.0+ds2-11build3"},{"binary_version":"3.18.0+ds2-11build3","binary_name":"libfreeimageplus3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-118752.json"}},{"package":{"name":"freeimage","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/freeimage?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.18.0+ds2-11","3.18.0+ds2-11build1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.18.0+ds2-11build1","binary_name":"libfreeimage3"},{"binary_version":"3.18.0+ds2-11build1","binary_name":"libfreeimageplus3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-118752.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"},{"type":"Ubuntu","score":"medium"}]}