CVE-2018-5809
published 2018-12-07CVE-2018-5809: An error within the "LibRaw::parse_exif()" function (internal/dcraw_common.cpp) in LibRaw versions prior to 0.18.9 can be exploited to cause a stack-based…
PriorityP348high8.8CVSS 3.0
AVNACLPRNUIRSUCHIHAH
EPSS
2.79%
84.8th percentile
An error within the "LibRaw::parse_exif()" 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
7 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | libraw | < libraw 0.18.11-1 (bookworm) | libraw 0.18.11-1 (bookworm) |
| libraw | libraw | < 0.18.9 | 0.18.9 |
| libraw | libraw | — | — |
| libraw | libraw | >= 0 < 0.18.11-1 | 0.18.11-1 |
| libraw | libraw | >= 0 < 0.18.11-1 | 0.18.11-1 |
| libraw | libraw | >= 0 < 0.18.11-1 | 0.18.11-1 |
| libraw | libraw | >= 0 < 0.18.11-1 | 0.18.11-1 |
CVSS provenance
nvdv3.08.8HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
osv8.8HIGH
vendor_debian8.8HIGH
vendor_redhat8.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
LibRaw: stack-based buffer overflow in LibRaw::parse_exif() and subsequently execute arbitrary code
vendor_redhat·2018-05-30·CVSS 8.8
CVE-2018-5809 [HIGH] CWE-121 LibRaw: stack-based buffer overflow in LibRaw::parse_exif() and subsequently execute arbitrary code
LibRaw: stack-based buffer overflow in LibRaw::parse_exif() and subsequently execute arbitrary code
An error within the "LibRaw::parse_exif()" 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 the vulnerable code is not present.
Package: LibRaw (Red Hat Enterprise Linux 7) - Not affected
Package: LibRaw (Red Hat Enterprise Linux 8) - Not affected
Debian
CVE-2018-5809: libraw - An error within the "LibRaw::parse_exif()" function (internal/dcraw_common.cpp) ...
vendor_debian·2018·CVSS 8.8
CVE-2018-5809 [HIGH] CVE-2018-5809: libraw - An error within the "LibRaw::parse_exif()" function (internal/dcraw_common.cpp) ...
An error within the "LibRaw::parse_exif()" 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.
Scope: local
bookworm: resolved (fixed in 0.18.11-1)
bullseye: resolved (fixed in 0.18.11-1)
forky: resolved (fixed in 0.18.11-1)
sid: resolved (fixed in 0.18.11-1)
trixie: resolved (fixed in 0.18.11-1)
GHSA
GHSA-rcfr-q8x3-q62p: An error within the "LibRaw::parse_exif()" function (internal/dcraw_common
ghsa_unreviewed·2022-05-13
CVE-2018-5809 [HIGH] CWE-787 GHSA-rcfr-q8x3-q62p: An error within the "LibRaw::parse_exif()" function (internal/dcraw_common
An error within the "LibRaw::parse_exif()" 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.
OSV
CVE-2018-5809: An error within the "LibRaw::parse_exif()" function (internal/dcraw_common
osv·2018-12-07·CVSS 8.8
CVE-2018-5809 [HIGH] CVE-2018-5809: An error within the "LibRaw::parse_exif()" function (internal/dcraw_common
An error within the "LibRaw::parse_exif()" 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.
No detection rules found.
Bugzilla
CVE-2018-5809 LibRaw: stack-based buffer overflow in LibRaw::parse_exif() and subsequently execute arbitrary code [epel-6]
bugzilla·2018-12-21·CVSS 8.8
CVE-2018-5809 [HIGH] CVE-2018-5809 LibRaw: stack-based buffer overflow in LibRaw::parse_exif() and subsequently execute arbitrary code [epel-6]
CVE-2018-5809 LibRaw: stack-based buffer overflow in LibRaw::parse_exif() and subsequently execute arbitrary code [epel-6]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of epel-6.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
Discussion
Bugzilla
CVE-2018-5809 LibRaw: stack-based buffer overflow in LibRaw::parse_exif() and subsequently execute arbitrary code
bugzilla·2018-12-21·CVSS 8.8
CVE-2018-5809 [HIGH] CVE-2018-5809 LibRaw: stack-based buffer overflow in LibRaw::parse_exif() and subsequently execute arbitrary code
CVE-2018-5809 LibRaw: stack-based buffer overflow in LibRaw::parse_exif() and subsequently execute arbitrary code
A flaw was found in LibRaw versions prior to 0.18.9. An error within the "LibRaw::parse_exif()" function (internal/dcraw_common.cpp) can be exploited to cause a stack-based buffer overflow and subsequently execute arbitrary code.
References:
https://github.com/LibRaw/LibRaw/blob/master/Changelog.txt
https://secuniaresearch.flexerasoftware.com/advisories/81800/
https://secuniaresearch.flexerasoftware.com/secunia_research/2018-9/
Upstream Patch:
https://github.com/LibRaw/LibRaw/commit/fd6330292501983ac75fe4162275794b18445bd9
Discussion:
Created LibRaw tracking bugs for this issue:
Affects: epel-6 [bug 1661521]
---
Increase Impact of the flaw to Important and set C:H/I:H/
https://github.com/LibRaw/LibRaw/blob/master/Changelog.txthttps://github.com/LibRaw/LibRaw/commit/fd6330292501983ac75fe4162275794b18445bd9https://secuniaresearch.flexerasoftware.com/advisories/81800/https://secuniaresearch.flexerasoftware.com/secunia_research/2018-9/https://github.com/LibRaw/LibRaw/blob/master/Changelog.txthttps://github.com/LibRaw/LibRaw/commit/fd6330292501983ac75fe4162275794b18445bd9https://secuniaresearch.flexerasoftware.com/advisories/81800/https://secuniaresearch.flexerasoftware.com/secunia_research/2018-9/
2018-12-07
Published