Skip to content

Latest commit

 

History

History
74 lines (67 loc) · 28.7 KB

SECURITY-CVE.md

File metadata and controls

74 lines (67 loc) · 28.7 KB

CVE inventory

Public CVEs reported against FreeImage and FreeImageRe, and what FreeImageRe does about them. One line per CVE, sorted by CVE number, newest last.

State Meaning
fixed A release or the current master no longer shows the defect. The reason names the commit or pull request, or the test: "A crashes, B does not" compares the FreeImage 3.18.0 base with a later version.
open The defect is still present in master, or a fix is not merged yet (the pull request is named).
rejected No change needed: not a defect in FreeImageRe, or not reproducible. The reason says why.

Release is the first release that has the fix: a FreeImageRe release (the list starts at v4.0.0; the earlier tags v0.1 to v0.3 and v0.4-python are not counted, a fix from that time shows as v4.0.0), FreeImage 3.18.0 for fixes made before the fork, and master for a fix that is merged but not released yet. For a fix found by running the sample without a commit that names the CVE, it is v4.0.0 when a v4.0.0 build (Win32 AddressSanitizer, same setup as for master) already handles the sample; the fix may be older. - means there is no fix in a release (open) or nothing to fix (rejected).

The Sample column links to the published sample files. They are not stored in this repository: TestSamples downloads them from where they are published, checks their SHA-256 and runs each in its own process (TestSamples/run-samples.sh), so every fixed and open line can be checked.

Checked against master 01995c0 (released version v4.2.1) and, for the pull requests merged since (#99 to #107), master b263578, Win32 AddressSanitizer build with all plugins that build here (LibJXR excluded), 2026-10-26. A reason of the form "no commit cites the CVE" means the fix was found by comparing versions with the sample, not by a commit message.

CVE State Release Reason Sample
CVE-2015-0852 fixed FreeImage 3.18.0 fixed in FreeImage before 3.18 (Debian tracker), range guard present in PluginPCX.cpp of v4.2.1 none published
CVE-2015-3885 fixed FreeImage 3.18.0 defect is in LibRaw/dcraw ljpeg_start; fixed in LibRaw 0.17 (2015-08-15, changelog "Fixed dcraw.c ljpeg_start possibly buffer overrun"); FreeImage 3.18.0 bundles LibRaw 0.19 and its ljpeg_start has the fix (code reading) none published
CVE-2016-5684 fixed FreeImage 3.18.0 fixed in FreeImage before 3.18 (Debian tracker), v4.2.1 rejects a short XMP APP1 length (PluginJPEG.cpp:512) none published
CVE-2019-12211 fixed v4.0.0 heap-buff-overflow.tiff crashes 3.18.0, master 01995c0 rejects it, no commit cites the CVE heap-buff-overflow.tiff
CVE-2019-12212 fixed v4.0.0 b835d75 (v4.0.0) cites the CVE, stack-overflow.jxr crashes 3.18.0; LibJXR does not build with the test compiler, so master was not run on it stack-overflow.jxr
CVE-2019-12213 fixed v4.0.0 stack-overflow.tiff crashes 3.18.0, master 01995c0 loads it without error, no commit cites the CVE stack-overflow.tiff
CVE-2019-12214 fixed v4.0.0 3.18.0 bundled OpenJPEG 2.1.0 whose j2k_read_ppm_v3 lacks the size-overflow guard added in OpenJPEG 2.1.1 (OpenJPEG PR #533); 50745d5 (2022-09-12, second commit of the fork) updated the bundled OpenJPEG to 2.5.0, and v4.0.0 fetches 2.5.4, which has the guard (code reading, no sample) none published
CVE-2020-21426 rejected - attachment is rejected cleanly by 3.18.0 and master 01995c0 (Win32 and x64 runs; see also SourceForge ticket #300), the code named by NVD is the OpenEXR reader replaced by external OpenEXR 3.5.2 heap_buffer_overflow.exr
CVE-2020-21427 fixed master 4582797 fixes the delta overshoot, 733dd8d rejects RLE data in 1-bit and 4-bit files (PR #101, merged, 4582797 cites the CVE); the SF 298 attachment is such a file, it crashes 3.18.0 and master 01995c0 and is rejected by master b263578 heap_buffer_overflow_write.bmp
CVE-2020-21428 fixed master heap_buffer_overflow.dds crashes 3.18.0, v4.0.0 and master 01995c0; b473f98 (PR #104, merged, port of trunk r1877) rejects uncompressed RGB files whose bit count is not an image bit depth, master b263578 rejects the file heap_buffer_overflow.dds
CVE-2020-22524 fixed master SEGV_PluginPFM_cpp crashes 3.18.0 and master 01995c0; 958a1bb (PR #105, merged, port of trunk r1848) rejects sizes which are zero, negative or too large for a line, master b263578 rejects the file SEGV_PluginPFM_cpp
CVE-2020-24292 fixed v4.0.0 3f77161 (v4.0.0) cites the CVE, member 01 crashes 3.18.0 and is rejected by master 01995c0 CVE-2020-24292-01
CVE-2020-24293 fixed v4.0.0 2f023a5 (v4.0.0) cites the CVE, member 04 crashes 3.18.0 and is rejected by master 01995c0 CVE-2020-24293-04
CVE-2020-24294 fixed v4.0.0 85df8ff and 2f023a5 (v4.0.0) cite the CVE, member 03 crashes 3.18.0 and loads without error on master 01995c0 CVE-2020-24294-03
CVE-2020-24295 fixed v4.0.0 2f023a5 (v4.0.0) cites the CVE, member 02 crashes 3.18.0 and is rejected by master 01995c0 CVE-2020-24295-02
CVE-2021-33367 fixed v4.0.0 in 3.18.0 jpeg_read_exif_dir reads the next-IFD offset after IFD0 without a bounds check (code reading); same statement as CVE-2023-47993, fixed by b9eab9f (v4.0.0) which does not cite this CVE, adjacent reads closed by 073e577 (PR #102, master) none published
CVE-2021-40262 fixed v4.0.0 TestFile crashes 3.18.0 and master 01995c0 handles it without error, no commit cites the CVE; v4.0.0 does not recognise the file type at all CVE-2021-40262-TestFile
CVE-2021-40263 fixed v4.0.0 TestFile crashes 3.18.0 and loads without error on master 01995c0, no commit cites the CVE CVE-2021-40263-TestFile
CVE-2021-40264 fixed master 19435c3 (PR #102, merged) cites the CVE, TestFile crashes 3.18.0 and is rejected by master 01995c0 CVE-2021-40264-TestFile
CVE-2021-40265 fixed v4.0.0 TestFile crashes 3.18.0 and does not crash v4.2.1 or master 01995c0 (libjpeg-turbo update, no commit cites the CVE) CVE-2021-40265-TestFile
CVE-2021-40266 fixed v4.0.0 1f5e0b4 (v4.0.0) cites the CVE, TestFile crashes 3.18.0 and is rejected by master 01995c0 CVE-2021-40266-TestFile
CVE-2023-47992 fixed v4.0.0 ece0714 (v4.0.0) cites the CVE, img aborts 3.18.0 and is rejected by master 01995c0 CVE-2023-47992-img
CVE-2023-47993 fixed v4.0.0 b9eab9f (v4.0.0) cites the CVE, img crashes 3.18.0 and loads cleanly on master 01995c0 CVE-2023-47993-img
CVE-2023-47994 fixed v4.0.0 5d15af9 (v4.0.0) cites the CVE, overflow shown on an x64 build, Win32 rejects the image already on 3.18.0 CVE-2023-47994-img
CVE-2023-47995 fixed v4.0.0 9a030ec (v4.0.0) cites the CVE, Win32 rejects the image already on 3.18.0; on 64-bit builds the image is accepted and decoding takes minutes (resource use, not a memory error), a size limit is a separate enhancement CVE-2023-47995-img
CVE-2023-47996 fixed v4.0.0 65f9f6d (v4.0.0) cites the CVE, img crashes 3.18.0 and loads cleanly on master 01995c0 CVE-2023-47996-img
CVE-2023-47997 fixed v4.0.0 514ccfa (v4.0.0) cites the CVE, img hangs 3.18.0 and loads on master 01995c0 CVE-2023-47997-img
CVE-2024-9029 fixed master in 3.18.0 the TIFF caller passes 4 x the IPTC byte length (code reading); fdda547 (v4.0.0, TIFF caller) and a6654ed (PR #102, merged, cites the CVE) fix the IPTC reads; the published sample loads without error on 3.18.0 as well, so it shows no before and after crash-7582b9a9b1f37e4af199f2a98c4bb287e0a811ce
CVE-2024-28562 fixed v4.0.0 case757 crashes 3.18.0 (x64 run) and is rejected by master 01995c0 (Win32 and x64 runs), OpenEXR replaced by external 3.5.2 case757
CVE-2024-28563 fixed v4.0.0 case10451 crashes 3.18.0 and is rejected by master 01995c0, OpenEXR replaced by external 3.5.2 case10451
CVE-2024-28564 fixed v4.0.0 case10574 crashes 3.18.0 and is rejected by master 01995c0, OpenEXR replaced by external 3.5.2 case10574
CVE-2024-28565 fixed v4.0.0 case11043 crashes 3.18.0 and is rejected by master 01995c0, no commit cites the CVE (PSD hardening 2f023a5 is the likely change) case11043
CVE-2024-28566 fixed master case10422 and case10458 crash 3.18.0 and master 01995c0; f763c92 (PR #107, merged, cites the CVE) rejects sample layouts that do not fit the DIB pixel (trunk r1825 does not fix them), master b263578 rejects both case10422, case10458
CVE-2024-28567 fixed v4.1.0 1bb8eef (v4.1.0) fixes the ICC buffer read-after-free, case10370 and case10612 crash 3.18.0 and load cleanly on master 01995c0 case10370, case10612
CVE-2024-28568 fixed master in 3.18.0 the TIFF caller passes 4 x the IPTC byte length (code reading); fdda547 (v4.0.0, TIFF caller) and a6654ed (PR #102, merged, cites the CVE) fix the IPTC reads; the published sample loads without error on 3.18.0 as well, so it shows no before and after case10480
CVE-2024-28569 fixed v4.0.0 case202 crashes 3.18.0 (x64 run) and is rejected by master 01995c0 (Win32 and x64 runs), OpenEXR replaced by external 3.5.2 case202
CVE-2024-28570 fixed master 073e577 (PR #102, merged) cites the CVE, case10979 and case10637 crash 3.18.0 and v4.2.1 and load cleanly on master 01995c0 case10637, case10979
CVE-2024-28571 fixed v4.0.0 case1939 and case10137 crash 3.18.0 and not v4.2.1 or master 01995c0, probably 65f9f6d (not verified by revert), no commit cites the CVE case10137, case10261, case1939
CVE-2024-28572 fixed master 61d951f (PR #102, merged) cites the CVE, case10549 crashes 3.18.0 and v4.2.1 and loads cleanly on master 01995c0 case10549
CVE-2024-28573 fixed master case10871 crashes 3.18.0 and not v4.2.1, 073e577 (PR #102, merged) cites the CVE and closes the remaining reads case10871
CVE-2024-28574 fixed v4.0.0 case102 crashes 3.18.0 and is rejected by master 01995c0, OpenJPEG replaced by external 2.5.4 case102
CVE-2024-28575 fixed v4.0.0 case11111 crashes 3.18.0 and is rejected by master 01995c0, OpenJPEG replaced by external 2.5.4 case11111
CVE-2024-28576 fixed v4.0.0 case10298 crashes 3.18.0 and is rejected by master 01995c0, OpenJPEG replaced by external 2.5.4 case10298
CVE-2024-28577 fixed master 073e577 (PR #102, merged) cites the CVE, case10007 crashes 3.18.0 and is rejected by master 01995c0 case10007
CVE-2024-28578 fixed v4.0.0 case10035 case10081 case10002 crash 3.18.0 and are rejected by master 01995c0, likely 34ea766 (v4.0.0, RAS Fixed vulnerability) case10002, case1001, case10035, case10081
CVE-2024-28579 fixed v4.0.0 9464907 (v4.0.0) cites the CVE, case1795 crashes 3.18.0 (x64 run) and is rejected by master 01995c0 (Win32 and x64 runs) case1795
CVE-2024-28580 fixed v4.0.0 case10631 case10003 case10551 crash 3.18.0 and are rejected by master 01995c0, likely 34ea766 (v4.0.0, RAS Fixed vulnerability) case10003, case10551, case10631
CVE-2024-28581 fixed master six TARGA samples crash 3.18.0 and master 01995c0; 8aebb79 and ebf85cb (PR #106, merged, port of trunk r1860 and a packet bound) fix them, master b263578 handles all six case10024, case10412, case10421, case10470, case10800, case10955
CVE-2024-28582 fixed v4.0.0 9464907 (v4.0.0) cites the CVE, case10038 and case10130 crash 3.18.0 and case2845 crashes the x64 build, all are rejected by master 01995c0 case10038, case10130, case2845
CVE-2024-28583 fixed v4.0.0 4ba3b55 (v4.0.0, Fixed XBM vulnerability), case10465 crashes 3.18.0 and is rejected by master 01995c0 case10465
CVE-2024-28584 fixed v4.0.0 case10240 crashes 3.18.0 and is rejected by master 01995c0, OpenJPEG replaced by external 2.5.4 case10240
CVE-2024-31570 fixed v4.0.0 b159dfd (v4.0.0, sprintf changed to snprintf) does not cite the CVE, case10231 crashes 3.18.0 and is rejected by master 01995c0 case10231
CVE-2025-65803 fixed v4.0.0 probably a duplicate of CVE-2024-28565 (SF tickets 366 and 390, fixed in v4.0.0 for that CVE), case11043 crashes 3.18.0 and is rejected by master 01995c0 none published
CVE-2025-70968 fixed v4.0.0 fixed by c9db63d (in v4.2.1): in 3.18.0 loadRLE frees the bitmap on an error path and Load goes on using it; since c9db63d Load is the only owner (code reading, the published sample does not reproduce the use-after-free: it only aborts on a huge allocation request under ASan on 3.18.0 and master) id_000004_00

Sample statuses and the way they are checked are described in TestSamples/README.md.