Incorrect type conversion in LibRaw
Priority LOW 32CWE-369Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.0 · NVD. Fix status from CNA. Impact type from CWE-369.
Summary
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.
Why it matters now
EPSS 0.01682 77th percentileScored 2026-11-07
Fix Fixed LibRaw: 0.18.8
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | LibRaw | before 0.18.8 | 0.18.8 | Patch available | CNA |
- LibRaw Vendor— Affected before 0.18.8 Fixed in 0.18.8 Patch available CNA
Remediation
- Fix · CNA LibRaw Fixed in 0.18.8
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
Not affected: 4 products
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
Timeline
- 2026-10-02 Threatist record created from CVE-2018-5804
- 2026-10-03 Alias added: GHSA-hmwc-5f9q-3986
References
More Libraw vulnerabilities
- TI-2026-04674 LibRaw TIFF/NEF decoders_libraw.cpp nikon_load_padded_packed_raw out-of-bounds CVSS 4.0MEDIUM 6.9
- TI-2020-14361 Buffer Overflow vulnerability in LibRaw::stretch() function in libraw\src\postprocessing\aspect_ratio.cpp. CVSS 3.1MEDIUM 6.5
- TI-2026-04650 LibRaw JPEG DHT losslessjpeg.cpp initval out-of-bounds write CVSS 4.0MEDIUM 5.3
- TI-2015-06888 The phase_one_correct function in Libraw before 0.17.1 allows attackers to cause memory… CVSS 3.1CRITICAL 9.8
- TI-2026-16934 A heap-based buffer overflow vulnerability exists in the HuffTable::initval functionality… CVSS 3.1CRITICAL 9.8
- TI-2026-16915 Integer overflow in LibRaw CVSS 3.1CRITICAL 9.8
Sources
- CVE-2018-5804 · CVE Program
- CVE-2018-5804 · NVD
- FIRST EPSS
- GHSA-hmwc-5f9q-3986 · GitHub Advisory Database · CC BY 4.0
- CVE-2018-5804 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences