NULL pointer dereference in LibRaw
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
- Partial Red Hat: 5 fixed, 2 without a fix
Attack profile from CVSS 3.0 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-476.
Summary
An error within the "leaf_hdr_load_raw()" function (internal/dcraw_common.cpp) in LibRaw versions prior to 0.18.8 can be exploited to trigger a NULL pointer dereference.
Why it matters now
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
CPE configurations NVD · 4
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:libraw:libraw:*:*:*:*:*:*:*:* | before 0.18.8 | Vulnerable | LibRaw |
| cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Red Hat |
- cpe:2.3:a:libraw:libraw:*:*:*:*:*:*:*:* Versions before 0.18.8 Vulnerable ·LibRaw
- cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
Remediation
- Fix · CNA LibRaw Fixed in 0.18.8
Red Hat 1 advisory
- RHSA-2018:3065 Released 2018-10-30 · Red Hat rating Moderatelibkdcraw security update
- Red Hat Enterprise Linux Client (v. 7) libkdcraw-4.10.5-5.el7
- Red Hat Enterprise Linux Client Optional (v. 7) libkdcraw-devel-4.10.5-5.el7
- Red Hat Enterprise Linux Server (v. 7) libkdcraw-4.10.5-5.el7, libkdcraw-devel-4.10.5-5.el7
- Red Hat Enterprise Linux Workstation (v. 7) libkdcraw-4.10.5-5.el7, libkdcraw-devel-4.10.5-5.el7
- Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) libkdcraw-4.10.5-5.el7, libkdcraw-devel-4.10.5-5.el7
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Advisory ·
LibRaw — RHSA-2018:3065
5 records Highest priority Priority MEDIUM 2 MEDIUM, 3 LOW
Other records, highest priority first
- TI-2018-04205 Out-of-bounds write in LibRawPriority MEDIUM 42
- TI-2018-04202 Out-of-bounds read in LibRawPriority MEDIUM 42
- TI-2018-04200 Out-of-bounds write in LibRawPriority LOW 34
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 8 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux Client (v. 7) | Fixed | RHSA-2018:3065 |
| Red Hat Enterprise Linux Client Optional (v. 7) | Fixed | RHSA-2018:3065 |
| Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2018:3065 |
| Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2018:3065 |
| Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) | Fixed | RHSA-2018:3065 |
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-5806
- 2026-10-03 Alias added: GHSA-hcxg-6ffh-5mqj
References
Sources
- CVE-2018-5806 · CVE Program
- CVE-2018-5806 · NVD
- FIRST EPSS
- GHSA-hcxg-6ffh-5mqj · GitHub Advisory Database · CC BY 4.0
- CVE-2018-5806 · 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