# CVE-2018-5804

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2018-12-07 · Modified: 2024-08-05
- Aliases: UBUNTU-CVE-2018-5804, DEBIAN-CVE-2018-5804
- Record: https://cvemate.com/vulnerability/CVE-2018-5804 · JSON: https://cvemate.com/vulnerability/CVE-2018-5804/json

## Description

```text
A type confusion error within the "identify()" function (internal/dcraw_common.cpp) in LibRaw versions prior to 0.18.8 can be exploited to trigger a division by zero.
```

## Signals

- CVSS: 6.5 medium (v3.0, NVD) CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- EPSS: 1.675%, percentile 77.665%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian libraw (Debian): \< 0.18.8-1
- ubuntu darktable (Ubuntu): All versions (No fix recorded)
- ubuntu dcraw (Ubuntu): All versions (No fix recorded)
- ubuntu exactimage (Ubuntu): All versions (No fix recorded)
- ubuntu kodi (Ubuntu): All versions (No fix recorded)
- ubuntu libraw (Ubuntu): \< 0.17.1-1ubuntu0.1
- ubuntu rawtherapee (Ubuntu): All versions (No fix recorded)
- ubuntu ufraw (Ubuntu): All versions (No fix recorded)
- libraw libraw: \< 0.18.8

## References

- <https://secuniaresearch.flexerasoftware.com/advisories/81000/>
- <https://github.com/LibRaw/LibRaw/blob/master/Changelog.txt>
- <https://github.com/LibRaw/LibRaw/commit/9f26ce37f5be86ea11bfc6831366558650b1f6ff>
- <https://secuniaresearch.flexerasoftware.com/secunia_research/2018-3/>
- <https://ubuntu.com/security/CVE-2018-5804>
- <https://secuniaresearch.flexerasoftware.com/secunia_research/2018-03>
- <https://www.cve.org/CVERecord?id=CVE-2018-5804>
- <https://security-tracker.debian.org/tracker/CVE-2018-5804>

---

Data as of 2026-12-05T05:27:17.502Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
