LibRaw: type confusion error in identify() function in internal/dcraw_common.cpp
Published Dec 7, 2018
6.5
MEDIUMCVSS 3.0
EPSS 1.68%
Description
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.
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 |
|
No data.
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
Not affected
Red Hat Enterprise Linux 7
libkdcraw
Not affected
Red Hat Enterprise Linux 8
LibRaw
Not affected
Red Hat Enterprise Linux 8
dcraw
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| 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 | Not affected | n/a |
| Red Hat Enterprise Linux 7 | libkdcraw | Not affected | n/a |
| Red Hat Enterprise Linux 8 | LibRaw | Not affected | n/a |
| Red Hat Enterprise Linux 8 | dcraw | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
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. This issue did not affect the versions of dcraw as shipped with Red Hat Enterprise Linux 5, 6 and 7 as they did not include the vulnerable code. This issue did not affect the versions of libkdcraw 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
Percentile over time
- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
Table of values (11 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 1.68% (0.01682) | 76.12th | v5 (v2026.06.15) |
| Sep 20, 2026 | 1.68% (0.01682) | 75.94th | v5 (v2026.06.15) |
| Jul 20, 2024 | 0.26% (0.00259) | 65.97th | v3 (v2023.03.01) |
| Apr 29, 2024 | 0.26% (0.00259) | 65.22th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.28% (0.00281) | 67.56th | v3 (v2023.03.01) |
| Dec 1, 2023 | 0.28% (0.00281) | 64.90th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.23% (0.00227) | 59.07th | 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.04% (0.01040) | 28.32th | v5 (v2026.06.15) |
| Apr 14, 2021 | 1.04% (0.01040) | 0.00th | v1 |
References (8)
- https://access.redhat.com/security/cve/CVE-2018-5804 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1591879 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-5804
- 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-5804
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2018-5804 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1591879 | 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-5804 | ||
| 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-5804 |
Change history (0)
No recorded changes yet.