CVE-2018-5809

NameCVE-2018-5809
DescriptionAn 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libraw (PTS)jessie, jessie (lts)0.16.0-9+deb8u6fixed
stretch (security)0.17.2-6+deb9u2fixed
stretch (lts), stretch0.17.2-6+deb9u5fixed
buster (security), buster, buster (lts)0.19.2-2+deb10u4fixed
bullseye (security), bullseye0.20.2-1+deb11u1fixed
bookworm0.20.2-2.1fixed
sid, trixie0.21.3-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
librawsourcewheezy(unfixed)end-of-life
librawsourcejessie(not affected)
librawsourcestretch(not affected)
librawsource(unstable)0.18.11-1

Notes

[stretch] - libraw <not-affected> (Vulnerable code not present)
[jessie] - libraw <not-affected> (Vulnerable code not present)
https://secuniaresearch.flexerasoftware.com/secunia_research/2018-9/
https://github.com/LibRaw/LibRaw/commit/fd6330292501983ac75fe4162275794b18445bd9
rechecked libraw/stretch as not-affected: the patch fixing multiple issues is mostly applied via DLA-2903-1 except for the parse_exif() aspects that are not present, poc not available)
https://web.archive.org/web/20181211082759/https://secuniaresearch.flexerasoftware.com/secunia_research/2018-9/

Search for package or bug name: Reporting problems