CVE-2018-20337 json
There is a stack-based buffer overflow in the parse_makernote function of dcraw_common.cpp in LibRaw 0.19.1.
published 2018-12-21 7 y ago modified 2026-06-17 4 mo ago also EUVD-2018-12895
- cvss
- 8.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.1%
- EPSS 2.1% chance of exploitation in 30 days, percentile 81%
- public exploits
- 0
- none known
Summary
There is a stack-based buffer overflow in the parse_makernote function of dcraw_common.cpp in LibRaw 0.19.1. Crafted input will lead to a denial of service or possibly unspecified other impact.
Patch / fix
- libraw Debian 14, Debian 13, Debian 12 0.19.2-1
debian advisories DEBIAN-CVE-2018-20337
- libraw Ubuntu 18.04 LTS 0.18.8-1ubuntu0.3
ubuntu advisories UBUNTU-CVE-2018-20337
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- gdm RHEL 8 1:3.28.3-29.el8
- gjs RHEL 8 1.56.2-4.el8
- gtk3 RHEL 8 3.22.30-5.el8
- gvfs RHEL 8 1.36.2-8.el8
- vala RHEL 8 0.40.19-1.el8
- baobab RHEL 8 3.28.0-4.el8
- evince RHEL 8 3.28.4-4.el8
- LibRaw RHEL 8 0.19.5-1.el8
red hat advisories RHSA-2020:1766
- libraw SLE Workstation Extension 15 0.18.9-3.8.1
suse advisories SUSE-SU-2019:0133-1
- libraw openSUSE Tumbleweed 0.20.2-4.1
- libraw openSUSE Leap 15.0 0.18.9-lp150.2.6.1
opensuse advisories openSUSE-SU-2024:10980-1openSUSE-SU-2019:0094-1
- vala AlmaLinux 8 0.40.19-1.el8
- baobab AlmaLinux 8 3.28.0-4.el8
- clutter AlmaLinux 8 1.26.2-8.el8
- mozjs52 AlmaLinux 8 52.9.0-2.el8.alma
- mozjs52 AlmaLinux 8 52.9.0-2.el8
- mozjs60 AlmaLinux 8 60.9.0-4.el8.alma
- mozjs60 AlmaLinux 8 60.9.0-4.el8
- gnome-menus AlmaLinux 8 3.13.3-11.el8
almalinux advisories ALSA-2020:1766
- baobab Rocky Linux 8 3.28.0-4.el8
- clutter Rocky Linux 8 1.26.2-8.el8
- mozjs52 Rocky Linux 8 52.9.0-2.el8
- mozjs60 Rocky Linux 8 60.9.0-4.el8
- gnome-menus Rocky Linux 8 3.13.3-11.el8
- gnome-tweaks Rocky Linux 8 3.28.1-7.el8
rocky linux advisories RLSA-2020:1766
- github.com/LibRaw/LibRaw/issues/192 advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-20337 updated cvss 3.3
LibRaw: stack-based buffer overflow in the parse_makernote function of dcraw_common.cpp
-
Red Hat CodeReady Linux Builder (v. 8) gvfs 1.36.2-8.el8, vala 0.40.19-1.el8, LibRaw 0.19.5-1.el8, nautilus 3.28.1-12.el8, libvncserver 0.9.11-14.el8 Red Hat Enterprise Linux AppStream (v. 8) gjs 1.56.2-4.el8, gdm 3.28.3-29.el8, gvfs 1.36.2-8.el8, gtk3 3.22.30-5.el8, baobab 3.28.0-4.el8, evince 3.28.4-4.el8, +41 more Red Hat Enterprise Linux BaseOS (v. 8) libxslt 1.1.32-4.el8, mozjs52 52.9.0-2.el8, mozjs60 60.9.0-4.el8, gsettings-desktop-schemas 3.32.0-4.el8fixed: vendor fix RHSA-2020:1766
-
Red Hat Enterprise Linux 7 LibRawnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.06% chance of exploitation in the next 30 days, higher than 81% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- github.com https://github.com/LibRaw/LibRaw/issues/192 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-787 Out-of-bounds Write
References
-
github.com
/LibRaw/LibRaw/issues/192
exploit, patch, third-party-advisory
-
usn.ubuntu.com
/3989-1/
vendor-advisory
Sources
- CVE List CVE-2018-20337
- NVD CVE-2018-20337
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.