{"id":"CVE-2026-25638","aliases":["GHSA-gxcx-qjqp-8vjw"],"url":"https://o3.security/vulnerability/CVE-2026-25638","summary":"ImageMagick has memory leak in msl encoder","details":"Memory leak exists in `coders/msl.c`. In the `WriteMSLImage` function of the `msl.c` file, resources are allocated. But the function returns early without releasing these allocated resources. \n\n```\n==78983== Memcheck, a memory error detector\n==78983== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.\n==78983== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info\n==78983== \n==78983== 177,196 (13,512 direct, 163,684 indirect) bytes in 1 blocks are definitely lost in loss record 21 of 21\n==78983==    at 0x4846828: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)\n```","published":"2026-02-24T00:49:57.947Z","modified":"2026-10-28T02:31:07.230897995Z","cvss":{"score":5.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"NuGet","name":"Magick.NET-Q16-AnyCPU","fixedVersion":"14.10.3"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-HDRI-AnyCPU","fixedVersion":"14.10.3"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-HDRI-OpenMP-arm64","fixedVersion":"14.10.3"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-HDRI-OpenMP-x64","fixedVersion":"14.10.3"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-HDRI-arm64","fixedVersion":"14.10.3"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-HDRI-x64","fixedVersion":"14.10.3"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-HDRI-x86","fixedVersion":"14.10.3"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-OpenMP-arm64","fixedVersion":"14.10.3"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-OpenMP-x64","fixedVersion":"14.10.3"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-OpenMP-x86","fixedVersion":"14.10.3"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-arm64","fixedVersion":"14.10.3"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-x64","fixedVersion":"14.10.3"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-x86","fixedVersion":"14.10.3"},{"ecosystem":"NuGet","name":"Magick.NET-Q8-AnyCPU","fixedVersion":"14.10.3"},{"ecosystem":"NuGet","name":"Magick.NET-Q8-OpenMP-arm64","fixedVersion":"14.10.3"},{"ecosystem":"NuGet","name":"Magick.NET-Q8-OpenMP-x64","fixedVersion":"14.10.3"},{"ecosystem":"NuGet","name":"Magick.NET-Q8-arm64","fixedVersion":"14.10.3"},{"ecosystem":"NuGet","name":"Magick.NET-Q8-x64","fixedVersion":"14.10.3"},{"ecosystem":"NuGet","name":"Magick.NET-Q8-x86.NET-Q8-x64","fixedVersion":"14.10.3"}],"fix":{"url":"https://github.com/ImageMagick/ImageMagick/commit/1e88fca11c7b8517100d518bc99bd8c474f02f88","label":"ImageMagick/ImageMagick@1e88fca"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/25xxx/CVE-2026-25638.json"},{"type":"ADVISORY","url":"https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-gxcx-qjqp-8vjw"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25638"},{"type":"WEB","url":"https://github.com/ImageMagick/ImageMagick/commit/1e88fca11c7b8517100d518bc99bd8c474f02f88"},{"type":"PACKAGE","url":"https://github.com/ImageMagick/ImageMagick"},{"type":"WEB","url":"https://github.com/dlemstra/Magick.NET/releases/tag/14.10.3"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-28T02:31:07.230897995Z"}}