# JLSEC-2026-945: ImageMagick has NULL pointer dereference in ReadSFWImage after DestroyImageInfo (sfw.c)

- Severity: High 7.5 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-07-30T16:02:27.435Z
- Modified: 2026-07-30T18:35:35.075Z
- Related: CVE-2026-25795, EUVD-2026-7447, GHSA-p33r-fqw2-rqmm

## Description

In `ReadSFWImage()` (`coders/sfw.c`), when temporary file creation fails, `read_info` is destroyed before its `filename` member is accessed, causing a NULL pointer dereference and crash.

```
AddressSanitizer:DEADLYSIGNAL
=================================================================
==1414421==ERROR: AddressSanitizer: UNKNOWN SIGNAL on unknown address 0x000000000000 (pc 0x56260222912f bp 0x7ffec0a193b0 sp 0x7ffec0a19360 T0)
    #0 0x56260222912f  (/data/ylwang/LargeScan/targets/ImageMagick/utilities/magick+0x235f12f)
```

(As written by Julia Security Advisories.)

## Affected

- ImageMagick_jll (Julia): before 7.1.2023+0

## References

- <https://github.com/ImageMagick/ImageMagick/commit/332c1566acc2de77857032d3c2504ead6210ff50> (web)
- <https://github.com/ImageMagick/ImageMagick/commit/55c344f4b514213642da41194bab57b4476fb9f5> (web)
- <https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-p33r-fqw2-rqmm> (web)
- <https://github.com/advisories/GHSA-p33r-fqw2-rqmm> (web)
- <https://github.com/dlemstra/Magick.NET/releases/tag/14.10.3> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-25795> (web)

## Sources

- Julia Security Advisories: [JLSEC-2026-945](https://osv.dev/vulnerability/JLSEC-2026-945), CC-BY-4.0, modified 2026-07-30

---

Page: https://cve.day/JLSEC-2026-945 · Whole record: https://cve.day/JLSEC-2026-945.json · Rebuilt by cve.day 2026-11-25T22:56:26.298Z
