LibRaw: Heap-based buffer overflow in LibRaw::kodak_ycbcr_load_raw function in internal/dcraw_common.cpp
Published Dec 7, 2018
6.5
MEDIUMCVSS 3.1
EPSS 2.55%
Description
An off-by-one error within the "LibRaw::kodak_ycbcr_load_raw()" function (internal/dcraw_common.cpp) in LibRaw versions prior to 0.18.7 can be exploited to cause a heap-based buffer overflow and subsequently cause a crash.
Affected products
- Vendor n/a Product LibRaw Defaultn/a
- Version Prior to 0.18.7StatusaffectedConstraints-
- 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
Configuration 3
- 14.04
- 16.04
- 17.10
Configuration 4
- 8.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
Will not fix
Red Hat Enterprise Linux 7
dcraw
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 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 | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | dcraw | 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
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
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 (15 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 2.55% (0.02548) | 84.46th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.55% (0.02548) | 82.92th | v5 (v2026.06.15) |
| Mar 30, 2025 | 2.26% (0.02261) | 83.14th | v4 (v2025.03.14) |
| Mar 29, 2025 | 3.54% (0.03539) | 79.22th | v4 (v2025.03.14) |
| Mar 17, 2025 | 2.26% (0.02261) | 83.45th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.79% (0.00790) | 82.23th | v3 (v2023.03.01) |
| Jul 2, 2024 | 0.84% (0.00842) | 82.23th | v3 (v2023.03.01) |
| Apr 29, 2024 | 1.07% (0.01072) | 84.05th | v3 (v2023.03.01) |
| Dec 1, 2023 | 1.34% (0.01344) | 84.52th | v3 (v2023.03.01) |
| Sep 27, 2023 | 1.09% (0.01089) | 82.66th | v3 (v2023.03.01) |
| Mar 7, 2023 | 1.54% (0.01538) | 85.02th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.18% (0.01183) | 61.76th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.18% (0.01183) | 35.15th | v2 (v2022.01.01) |
| Feb 3, 2022 | 1.86% (0.01865) | 48.06th | v5 (v2026.06.15) |
| Apr 14, 2021 | 1.86% (0.01865) | 0.00th | v1 |
References (13)
- http://www.securityfocus.com/bid/104663 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2018:3065 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2018-5800 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1553332 Issue Tracking
- https://github.com/LibRaw/LibRaw/blob/master/Changelog.txt x_refsource_MISCRelease Notes
- https://github.com/LibRaw/LibRaw/commit/8682ad204392b914ab1cc6ebcca9c27c19c1a4b4 x_refsource_MISCPatchVendor Advisory
- https://lists.debian.org/debian-lts-announce/2019/03/msg00036.html mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2018-5800
- https://packetstormsecurity.com/files/146172/secunia-libraw.txt
- https://secuniaresearch.flexerasoftware.com/advisories/79000/ third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- https://secuniaresearch.flexerasoftware.com/secunia_research/2018-1/ x_refsource_MISCThird Party Advisory
- https://usn.ubuntu.com/3615-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2018-5800
Change history (0)
No recorded changes yet.