{"id":"UBUNTU-CVE-2023-51104","details":"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.","modified":"2026-04-22T14:10:50.037976Z","published":"2023-12-26T15:15:00Z","related":["USN-7888-1"],"upstream":["CVE-2023-51104"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-51104"},{"type":"REPORT","url":"https://github.com/dongyuma/sox-defects/blob/main/mupdf-defects.md"},{"type":"REPORT","url":"https://github.com/dongyuma/sox-defects/blob/main/mupdf-defects.md#5-a-floating-point-exception-divide-by-zero-issue-was-discovered-in-mupdf-in-functon-pnm_binary_read_image-of-load-pnmc-in-line-527"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2023-51104"},{"type":"REPORT","url":"https://github.com/ArtifexSoftware/mupdf/commit/0c06a4e51519515615f6ab2d5b1f25da6771e1f4"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7888-1"}],"affected":[{"package":{"name":"mupdf","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/mupdf@1.12.0+ds1-1ubuntu0.1~esm2?arch=source&distro=esm-apps/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.11+ds1-1.1","1.11+ds1-2","1.12.0+ds1-1","1.12.0+ds1-1ubuntu0.1~esm1","1.12.0+ds1-1ubuntu0.1~esm2"],"ecosystem_specific":{"binaries":[{"binary_name":"mupdf","binary_version":"1.12.0+ds1-1ubuntu0.1~esm2"},{"binary_name":"mupdf-tools","binary_version":"1.12.0+ds1-1ubuntu0.1~esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-51104.json"}},{"package":{"name":"mupdf","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/mupdf@1.16.1+ds1-1ubuntu1+esm2?arch=source&distro=esm-apps/focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.16.1+ds1-1ubuntu1+esm2"}]}],"versions":["1.15.0+ds1-1","1.16.1+ds1-1ubuntu1","1.16.1+ds1-1ubuntu1+esm1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"mupdf","binary_version":"1.16.1+ds1-1ubuntu1+esm2"},{"binary_version":"1.16.1+ds1-1ubuntu1+esm2","binary_name":"mupdf-tools"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-51104.json"}},{"package":{"name":"mupdf","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/mupdf@1.19.0+ds1-2ubuntu0.1~esm1?arch=source&distro=esm-apps/jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.0+ds1-2ubuntu0.1~esm1"}]}],"versions":["1.17.0+ds1-2","1.19.0+ds1-1","1.19.0+ds1-1build1","1.19.0+ds1-2"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"mupdf","binary_version":"1.19.0+ds1-2ubuntu0.1~esm1"},{"binary_name":"mupdf-tools","binary_version":"1.19.0+ds1-2ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-51104.json"}},{"package":{"name":"mupdf","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/mupdf@1.23.10+ds1-1ubuntu0.1~esm1?arch=source&distro=esm-apps/noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.23.10+ds1-1ubuntu0.1~esm1"}]}],"versions":["1.22.2+ds1-2","1.22.2+ds1-2build1","1.23.6+ds1-1","1.23.7+ds1-1","1.23.10+ds1-1","1.23.10+ds1-1build1","1.23.10+ds1-1build2","1.23.10+ds1-1build3"],"ecosystem_specific":{"binaries":[{"binary_name":"mupdf","binary_version":"1.23.10+ds1-1ubuntu0.1~esm1"},{"binary_name":"mupdf-tools","binary_version":"1.23.10+ds1-1ubuntu0.1~esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-51104.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:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}