Skip to content
Fencer Intel
medium 6.5

CVE-2018-20365 json

LibRaw::raw2image() in libraw_cxx.cpp has a heap-based buffer overflow.

published 7y ago modified 4mo ago also EUVD-2018-12923

cvss
6.5
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
3.0%
EPSS 3.0% chance of exploitation in 30 days, percentile 87%
public exploits
0
none known

Summary

LibRaw::raw2image() in libraw_cxx.cpp has a heap-based buffer overflow.

Patch / fix

  • libraw Debian 14, Debian 13, Debian 12 0.19.2-2

debian advisories DEBIAN-CVE-2018-20365

  • libraw Ubuntu 16.04 LTS 0.17.1-1ubuntu0.5
  • libraw Ubuntu 18.04 LTS 0.18.8-1ubuntu0.3

ubuntu advisories UBUNTU-CVE-2018-20365

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

  • libraw SLE Workstation Extension 15 0.18.9-3.8.1
  • libraw SLED 12 SP4, SLED 12 SP3, SLE Workstation Extension 12 SP4 +3 more 0.15.4-30.1

suse advisories SUSE-SU-2019:0133-1SUSE-SU-2019:0127-1

  • libraw openSUSE Leap 15.0 0.18.9-lp150.2.6.1

opensuse advisories openSUSE-SU-2019:0094-1

  • libraw Alpine 3.24, Alpine 3.23, Alpine 3.22 +13 more 0.19.2-r0

alpine advisories ALPINE-CVE-2018-20365

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Is CVE-2018-20365 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

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-20365 updated cvss 5.3

libraw: Heap-based buffer overflow in LibRaw::raw2image() resulting in a denial of service

  • Red Hat Enterprise Linux 7 LibRaw Red Hat Enterprise Linux 8 LibRaw
    affected: no fix planned “Will not fix”

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.98% chance of exploitation in the next 30 days, higher than 87% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • github.com https://github.com/LibRaw/LibRaw/issues/195 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.0 6.5 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
NVD 2.0 4.3 AV:N/AC:M/Au:N/C:N/I:N/A:P

Classification

Weakness

References

Sources

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.