CVE-2026-61857: ImageMagick before 7.1.2-26 contains a heap use-after-free vulnerability caused by missing null check
Affects imagemagickSource GCVE Database
Not known to be exploited · CVSS 6.3 Medium · fixed in 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14 : update imagemagick when convenient.
Data as of 30 Oct 2026, 06:59 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 6.3 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 3.7 |
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 18% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14, 8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm13, 8:7.1.2.18+dfsg1-1ubuntu0.1~esm2
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 11 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
Upgrade the Ubuntu imagemagick to 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14 (package) or 8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm13 (package) or 8:7.1.2.18+dfsg1-1ubuntu0.1~esm2 (package).
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10imagemagickpkg:deb/ubuntu/imagemagick?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSimagemagickpkg:deb/ubuntu/imagemagick@8:7.1.2.18+dfsg1-1?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu Pro 26.04 LTSimagemagickpkg:deb/ubuntu/imagemagick?arch=source&distro=esm-apps/resoluteOther threats | Affected
| Fixed in
|
Ubuntu Pro 24.04 LTSimagemagickpkg:deb/ubuntu/imagemagick?arch=source&distro=esm-apps/nobleOther threats | Affected
| Fixed in
|
Ubuntu Pro 22.04 LTSimagemagickpkg:deb/ubuntu/imagemagick?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in
|
Ubuntu Pro 20.04 LTSimagemagickpkg:deb/ubuntu/imagemagick@8:6.9.10.23+dfsg-2.1ubuntu11.11+esm11?arch=source&distro=esm-apps/focalOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available for this vulnerability. Users and administrators should upgrade ImageMagick to one of the fixed versions: 6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14, 6.9.12.98+dfsg1-5.2ubuntu0.1~esm13, or 7.1.2.18+dfsg1-1ubuntu0.1~esm2. The vendor advisory from Ubuntu confirms these fixes and recommends applying them to mitigate the issue.
Description
ImageMagick versions prior to 7.1.2-26 contain a heap use-after-free vulnerability due to a missing null check when parsing XMP profiles. This flaw can be triggered by maliciously crafted image files containing specially crafted XMP data, potentially causing application crashes (denial of service). The vulnerability has a CVSS score of 7.5 and is classified as medium severity. Fixes are available in later versions including 6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14, 6.9.12.98+dfsg1-5.2ubuntu0.1~esm13, and 7.1.2.18+dfsg1-1ubuntu0.1~esm2. No known exploits in the wild have been reported. The vendor advisory confirms the availability of patches and recommends updating to fixed versions.
References
- ubuntu.com/security/CVE-2026-61857 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-61857 (opens in a new tab)
- github.com/ImageMagick/ImageMagick/security/advisories/GHSA-qh5g-q395-cx4j (opens in a new tab)
- vulncheck.com/advisories/imagemagick-before-26-heap-use-after-free-via-xmp (opens in a new tab)
- ubuntu.com/security/notices/USN-8739-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8739-2 (opens in a new tab)