{"id":"JLSEC-2026-943","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```","modified":"2026-07-30T18:35:43.305232062Z","published":"2026-07-30T16:02:27.435Z","upstream":["CVE-2026-25638","EUVD-2026-7449","GHSA-gxcx-qjqp-8vjw"],"database_specific":{"sources":[{"modified":"2026-06-17T10:24:59.660Z","published":"2026-02-24T01:16:13.807Z","url":"https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-25638","html_url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25638","database_specific":{"status":"Analyzed"},"id":"CVE-2026-25638","imported":"2026-07-30T14:08:44.866Z"},{"id":"GHSA-gxcx-qjqp-8vjw","imported":"2026-07-30T14:10:16.503Z","modified":"2026-02-24T15:30:59Z","published":"2026-02-24T15:30:54Z","url":"https://api.github.com/advisories/GHSA-gxcx-qjqp-8vjw","html_url":"https://github.com/advisories/GHSA-gxcx-qjqp-8vjw"},{"url":"https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-7449","html_url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-7449","id":"EUVD-2026-7449","imported":"2026-07-30T14:08:53.115Z","modified":"2026-06-23T15:47:49Z","published":"2026-02-24T00:49:57Z"}],"license":"CC-BY-4.0"},"references":[{"type":"WEB","url":"https://github.com/ImageMagick/ImageMagick/commit/1e88fca11c7b8517100d518bc99bd8c474f02f88"},{"type":"WEB","url":"https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-gxcx-qjqp-8vjw"},{"type":"WEB","url":"https://github.com/advisories/GHSA-gxcx-qjqp-8vjw"},{"type":"WEB","url":"https://github.com/dlemstra/Magick.NET/releases/tag/14.10.3"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25638"}],"affected":[{"package":{"name":"ImageMagick_jll","ecosystem":"Julia","purl":"pkg:julia/ImageMagick_jll?uuid=c73af94c-d91f-53ed-93a7-00f77d67a9d7"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"7.1.2023+0"}]}],"database_specific":{"source":"https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2026/JLSEC-2026-943.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"}],"credits":[{"name":"unbengable12","contact":["https://github.com/unbengable12"],"type":"REPORTER"}]}