CVE Database›Document archive›CVE-2018-5808

CVE-2018-5808

LibRaw: stack-based buffer overflow in find_green() leads to arbitrary code execution

Loading…

Severity

Important

Red Hat Product Security

7.8

CVSS 3.0

Review impact separately from score.

Published · May 30, 2018

Updated · November 22, 2025

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.

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.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.0 · 7.8
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

CWE-121 · Stack-based Buffer Overflow