Error Description:
dssim version 3.4.0 transitively depends on an outdated version of libwebp that is vulnerable to CVE-2023-4863. When dssim parses a maliciously crafted .webp image for similarity comparison, the underlying C library suffers a heap buffer overflow in the lossless Huffman decoder. This corrupts heap metadata and causes an immediate crash (core dump).
Reproduction Steps:
- Obtain a standard WebP image (
test.webp) and a malicious WebP image crafted to trigger CVE-2023-4863 (bad.webp).
- Run the
dssim tool to compare them: dssim test.webp bad.webp.
- Observe the program output and exit status.
Observable Evidence / Impact:
The glibc memory allocator detects the heap metadata corruption and aborts the process, resulting in a core dump.
Running `dssim test.webp bad.webp`
corrupted size vs. prev_size
timeout: the monitored command dumped core
Suggested Mitigation:
Update dependencies (load_image / webp-static / libwebp-sys2) to versions that statically or dynamically link against a patched libwebp (>= 1.3.2).
Error Description:
dssimversion3.4.0transitively depends on an outdated version oflibwebpthat is vulnerable to CVE-2023-4863. Whendssimparses a maliciously crafted.webpimage for similarity comparison, the underlying C library suffers a heap buffer overflow in the lossless Huffman decoder. This corrupts heap metadata and causes an immediate crash (core dump).Reproduction Steps:
test.webp) and a malicious WebP image crafted to trigger CVE-2023-4863 (bad.webp).dssimtool to compare them:dssim test.webp bad.webp.Observable Evidence / Impact:
The glibc memory allocator detects the heap metadata corruption and aborts the process, resulting in a core dump.
Suggested Mitigation:
Update dependencies (
load_image/webp-static/libwebp-sys2) to versions that statically or dynamically link against a patchedlibwebp(>= 1.3.2).