CVE-2018-5816 json
An integer overflow error within the "identify()" function (internal/dcraw_common.cpp) in LibRaw versions prior to 0.18.12 can be exploited…
published 2018-12-07 7 y ago modified 2026-06-17 4 mo ago also EUVD-2018-17583
- cvss
- 6.5
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.1%
- EPSS 2.1% chance of exploitation in 30 days, percentile 81%
- public exploits
- 0
- none known
Summary
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).
Patch / fix
- libraw libraw 0.18.12
- libraw Debian 14, Debian 13, Debian 12 0.18.13-1
debian advisories DEBIAN-CVE-2018-5816
- libraw Ubuntu 16.04 LTS 0.17.1-1ubuntu0.4
- libraw Ubuntu 18.04 LTS 0.18.8-1ubuntu0.2
ubuntu advisories UBUNTU-CVE-2018-5816
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- libraw SLE Workstation Extension 15 0.18.9-3.5.1
suse advisories SUSE-SU-2019:0005-1
- libraw openSUSE Leap 15.0 0.18.9-lp150.2.3.1
opensuse advisories openSUSE-SU-2019:0008-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-5816 updated cvss 4.3
LibRaw: Integer overflow in internal/dcraw_common.cpp:identify() allows for denial of service
-
Red Hat Enterprise Linux 7 LibRaw Red Hat Enterprise Linux 8 LibRawnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.11% chance of exploitation in the next 30 days, higher than 81% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 6.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 7.1 | AV:N/AC:M/Au:N/C:N/I:N/A:C |
Affected products
- n/a LibRaw
Classification
- Weakness
-
- CWE-190 Integer Overflow or Wraparound
References
-
github.com
/LibRaw/LibRaw/commit/1d8d1b452e5dc74033ee9f846081a0efb616cc39
patch, third-party-advisory
-
usn.ubuntu.com
/3838-1/
vendor-advisory, third-party-advisory
-
secuniaresearch.flexerasoftware.com
/secunia_research/2018-14/
third-party-advisory
-
github.com
/LibRaw/LibRaw/blob/master/Changelog.txt
third-party-advisory
-
secuniaresearch.flexerasoftware.com
/advisories/83507/
third-party-advisory, permissions-required
Sources
- CVE List CVE-2018-5816
- NVD CVE-2018-5816
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.