Read the docs
TI-2018-04204 Aliases CVE-2018-5804GHSA-hmwc-5f9q-3986

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

VendorProductAffected versionsFixed inStatusSource
—LibRawbefore 0.18.80.18.8Patch availableCNA
  • LibRaw Vendor— Affected before 0.18.8 Fixed in 0.18.8 Patch available CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:libraw:libraw:*:*:*:*:*:*:*:*before 0.18.8VulnerableLibRaw
  • cpe:2.3:a:libraw:libraw:*:*:*:*:*:*:*:* Versions before 0.18.8 Vulnerable ·LibRaw

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

  1. 2026-10-02 Threatist record created from CVE-2018-5804
  2. 2026-10-03 Alias added: GHSA-hmwc-5f9q-3986

References

  • 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
See all 62 →

Sources