# JLSEC-2026-858: In GammaImage() of /MagickCore/enhance.c, depending on the gamma value, it's possible to trigger a divide-by-zero condition when a crafted…

- Severity: Medium 5.5 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/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:23:46.305Z
- Related: CVE-2020-27760

## Description

In `GammaImage()` of `/MagickCore/enhance.c`, depending on the `gamma` value, it's possible to trigger a divide-by-zero condition when a crafted input file is processed by ImageMagick. This could lead to an impact to application availability. The patch uses the `PerceptibleReciprocal()` to prevent the divide-by-zero from occurring. This flaw affects ImageMagick versions prior to ImageMagick 7.0.8-68.

(As written by Julia Security Advisories.)

## Affected

- ImageMagick_jll (Julia): before 6.9.12+0

## Every score

- Julia Security Advisories: CVSS:2.0 `AV:N/AC:M/Au:N/C:N/I:N/A:P`
- Julia Security Advisories: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1894239> (web)
- <https://lists.debian.org/debian-lts-announce/2021/01/msg00010.html> (web)
- <https://lists.debian.org/debian-lts-announce/2023/03/msg00008.html> (web)

## Sources

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

---

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