LibRaw: stack-based buffer overflow in find_green() leads to arbitrary code execution
Published Dec 7, 2018
8.8
HIGHCVSS 3.0
EPSS 2.82%
Description
An error within the "find_green()" function (internal/dcraw_common.cpp) in LibRaw versions prior to 0.18.9 can be exploited to cause a stack-based buffer overflow and subsequently execute arbitrary code.
Affected products
- Vendor n/a Product LibRaw Defaultn/a
- Version Prior to 0.18.9StatusaffectedConstraints-
- 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
- 8.0
No data.
Red Hat Enterprise Linux 7
LibRaw
Not affected
Red Hat Enterprise Linux 8
LibRaw
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 7 | LibRaw | Not affected | n/a |
| Red Hat Enterprise Linux 8 | LibRaw | 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 it does not allow an attacker enough control to corrupt the internal state.
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:H/I:H/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
AV:N/AC:M/Au:N/C:P/I:P/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 (16 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 2.82% (0.02819) | 86.07th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.79% (0.02795) | 84.53th | v5 (v2026.06.15) |
| Mar 30, 2025 | 2.67% (0.02666) | 84.48th | v4 (v2025.03.14) |
| Mar 29, 2025 | 6.57% (0.06574) | 84.84th | v4 (v2025.03.14) |
| Mar 17, 2025 | 2.12% (0.02118) | 82.95th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.84% (0.00836) | 82.75th | v3 (v2023.03.01) |
| Jul 2, 2024 | 0.85% (0.00849) | 82.28th | v3 (v2023.03.01) |
| Jun 8, 2024 | 0.93% (0.00929) | 83.03th | v3 (v2023.03.01) |
| Apr 29, 2024 | 1.02% (0.01021) | 83.58th | v3 (v2023.03.01) |
| Dec 1, 2023 | 0.90% (0.00900) | 80.81th | v3 (v2023.03.01) |
| Oct 29, 2023 | 0.73% (0.00729) | 78.62th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.65% (0.00647) | 76.14th | v3 (v2023.03.01) |
| Mar 6, 2023 | 2.51% (0.02509) | 81.86th | v2 (v2022.01.01) |
| Feb 4, 2022 | 2.51% (0.02509) | 58.60th | v2 (v2022.01.01) |
| Feb 3, 2022 | 2.18% (0.02177) | 50.59th | v5 (v2026.06.15) |
| Apr 14, 2021 | 2.18% (0.02177) | 0.00th | v1 |
References (9)
- https://access.redhat.com/security/cve/CVE-2018-5808 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1661518 Issue Tracking
- https://github.com/LibRaw/LibRaw/blob/master/Changelog.txt x_refsource_MISCRelease Notes
- https://github.com/LibRaw/LibRaw/commit/fd6330292501983ac75fe4162275794b18445bd9 x_refsource_MISCPatch
- 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-5808
- https://secuniaresearch.flexerasoftware.com/advisories/81800/ third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- https://secuniaresearch.flexerasoftware.com/secunia_research/2018-9/ x_refsource_MISCThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2018-5808
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2018-5808 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1661518 | Issue Tracking | |
| https://github.com/LibRaw/LibRaw/blob/master/Changelog.txt | x_refsource_MISCRelease Notes | |
| https://github.com/LibRaw/LibRaw/commit/fd6330292501983ac75fe4162275794b18445bd9 | x_refsource_MISCPatch | |
| 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-5808 | ||
| https://secuniaresearch.flexerasoftware.com/advisories/81800/ | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| https://secuniaresearch.flexerasoftware.com/secunia_research/2018-9/ | x_refsource_MISCThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2018-5808 |
Change history (0)
No recorded changes yet.