# CVE-2018-5816

- 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-5816, DEBIAN-CVE-2018-5816
- Record: https://cvemate.com/vulnerability/CVE-2018-5816 · JSON: https://cvemate.com/vulnerability/CVE-2018-5816/json

## Description

```text
An integer overflow error within the "identify()" function (internal/dcraw_common.cpp) in LibRaw versions prior to 0.18.12 can be exploited to trigger a division by zero via specially crafted NOKIARAW file (Note: This vulnerability is caused due to an incomplete fix of CVE-2018-5804).
```

## Signals

- CVSS: 7.1 high (v2.0, NVD) AV:N/AC:M/Au:N/C:N/I:N/A:C
- EPSS: 2.108%, percentile 82.392%, 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

- canonical ubuntu\_linux: 14.04 \| 16.04 \| 18.04
- debian libraw (Debian): \< 0.18.13-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.4 \| \< 0.18.8-1ubuntu0.2
- ubuntu rawtherapee (Ubuntu): All versions (No fix recorded)
- ubuntu ufraw (Ubuntu): All versions (No fix recorded)
- libraw libraw: \< 0.18.12

## References

- <https://secuniaresearch.flexerasoftware.com/secunia_research/2018-14/>
- <https://github.com/LibRaw/LibRaw/commit/1d8d1b452e5dc74033ee9f846081a0efb616cc39>
- <https://github.com/LibRaw/LibRaw/blob/master/Changelog.txt>
- <https://usn.ubuntu.com/3838-1/>
- <https://secuniaresearch.flexerasoftware.com/advisories/83507/>
- <https://ubuntu.com/security/CVE-2018-5816>
- <http://seclists.org/bugtraq/2018/Jul/58>
- <https://ubuntu.com/security/notices/USN-3838-1>
- <https://www.cve.org/CVERecord?id=CVE-2018-5816>
- <https://security-tracker.debian.org/tracker/CVE-2018-5816>

---

Data as of 2026-12-05T06:32:18.151Z. 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
