LibRaw: NULL pointer dereference in leaf_hdr_load_raw() function in internal/dcraw_common.cpp
Published Dec 7, 2018
6.5
MEDIUMCVSS 3.0
EPSS 1.69%
Description
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.
Affected products
- Vendor n/a Product LibRaw Defaultn/a
- Version Prior to 0.18.8StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| n/a | LibRaw | n/a |
|
Configuration 2
- 7.0
- 7.0
- 7.0
No data.
Red Hat Enterprise Linux 7
libkdcraw-0:4.10.5-5.el7
Fixed · RHSA-2018:3065
Red Hat Enterprise Linux 5
dcraw
Not affected
Red Hat Enterprise Linux 6
dcraw
Not affected
Red Hat Enterprise Linux 7
LibRaw
Not affected
Red Hat Enterprise Linux 7
dcraw
Will not fix
Red Hat Enterprise Linux 8
LibRaw
Not affected
Red Hat Enterprise Linux 8
dcraw
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 7 | libkdcraw-0:4.10.5-5.el7 | Fixed | RHSA-2018:3065 |
| Red Hat Enterprise Linux 5 | dcraw | Not affected | n/a |
| Red Hat Enterprise Linux 6 | dcraw | Not affected | n/a |
| Red Hat Enterprise Linux 7 | LibRaw | Not affected | n/a |
| Red Hat Enterprise Linux 7 | dcraw | Will not fix | n/a |
| Red Hat Enterprise Linux 8 | LibRaw | Not affected | n/a |
| Red Hat Enterprise Linux 8 | dcraw | Will not fix | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This issue did not affect the versions of dcraw as shipped with Red Hat Enterprise Linux 5 and 6 as they did not include the vulnerable code. This issue did not affect the versions of LibRaw as shipped with Red Hat Enterprise Linux 7 as they did not include the vulnerable code.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
AV:N/AC:M/Au:N/C:N/I:N/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Percentile over time
- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Table of values (12 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 1.69% (0.01689) | 76.22th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.69% (0.01689) | 74.00th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.18% (0.00185) | 38.04th | v4 (v2025.03.14) |
| Jul 20, 2024 | 0.31% (0.00308) | 70.20th | v3 (v2023.03.01) |
| Apr 29, 2024 | 0.31% (0.00308) | 69.58th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.34% (0.00337) | 70.50th | v3 (v2023.03.01) |
| Dec 1, 2023 | 0.34% (0.00337) | 68.03th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.27% (0.00272) | 62.78th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.02% (0.01018) | 40.69th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.02% (0.01018) | 19.50th | v2 (v2022.01.01) |
| Feb 3, 2022 | 1.25% (0.01247) | 30.57th | v5 (v2026.06.15) |
| Apr 14, 2021 | 1.25% (0.01247) | 0.00th | v1 |
References (9)
- https://access.redhat.com/errata/RHSA-2018:3065 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2018-5806 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1591897 Issue Tracking
- https://github.com/LibRaw/LibRaw/blob/master/Changelog.txt x_refsource_MISCRelease Notes
- https://github.com/LibRaw/LibRaw/commit/9f26ce37f5be86ea11bfc6831366558650b1f6ff x_refsource_MISCPatch
- https://nvd.nist.gov/vuln/detail/CVE-2018-5806
- https://secuniaresearch.flexerasoftware.com/advisories/81000/ third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- https://secuniaresearch.flexerasoftware.com/secunia_research/2018-3/ x_refsource_MISCThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2018-5806
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2018:3065 | vendor-advisoryx_refsource_REDHATThird Party Advisory | |
| https://access.redhat.com/security/cve/CVE-2018-5806 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1591897 | Issue Tracking | |
| https://github.com/LibRaw/LibRaw/blob/master/Changelog.txt | x_refsource_MISCRelease Notes | |
| https://github.com/LibRaw/LibRaw/commit/9f26ce37f5be86ea11bfc6831366558650b1f6ff | x_refsource_MISCPatch | |
| https://nvd.nist.gov/vuln/detail/CVE-2018-5806 | ||
| https://secuniaresearch.flexerasoftware.com/advisories/81000/ | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| https://secuniaresearch.flexerasoftware.com/secunia_research/2018-3/ | x_refsource_MISCThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2018-5806 |
Change history (0)
No recorded changes yet.