CVE-2023-51104
NixOS vulnerability analysis and mitigation

Overview

A floating point exception (divide-by-zero) vulnerability was discovered in Artifex MuPDF 1.23.4 in function pnm_binary_read_image() of load-pnm.c when span equals zero. The vulnerability was assigned CVE-2023-51104 and was publicly disclosed in December 2023 (NVD).

Technical details

The vulnerability exists in the pnm_binary_read_image() function within the load-pnm.c file of MuPDF 1.23.4. The issue occurs when the number of components in the passed colorspace is not properly validated, potentially leading to a division by zero operation. The vulnerability has been assigned a CVSS v3.1 Base Score of 7.5 HIGH (Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) (NVD).

Impact

If exploited, this vulnerability could allow attackers to cause a denial of service condition through a floating point exception (divide-by-zero), potentially crashing the application when processing specially crafted PNM image files (NVD).

Mitigation and workarounds

The vulnerability has been fixed in a patch that adds an assertion to ensure the number of components is greater than 0. The fix was implemented in commit 0c06a4e51519515615f6ab2d5b1f25da6771e1f4, which adds a redundant assert() for the number of components to prevent division by zero (Ghostscript Commit, Ghostscript Bug).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-20807MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20806MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20805MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20804MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20803MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management