cve.bz

CVE-2018-5801 NULL Pointer Dereference

6.5 mediumEPSS 2.0%Fix available

Medium (6.5). EPSS 2.0% estimated probability of exploitation activity in the next 30 days.

On this page
An error within the "LibRaw::unpack()" function (src/libraw_cxx.cpp) in LibRaw versions prior to 0.18.7 can be exploited to trigger a NULL pointer dereference.

Severity

CVSS 3.0

6.5 medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS
2.0% (unchanged from 2.0% a week ago; 2.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 82nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-476 NULL Pointer Dereference
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-5801 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-5801?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-5801?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-5801 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
libraw:librawbefore 0.18.7
redhat:enterprise_linux_desktop7.0
redhat:enterprise_linux_server7.0
redhat:enterprise_linux_workstation7.0
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux17.10
debian:debian_linux8.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8libraw0.16.0-9+deb8u4DLA-1734-1
Debian9libraw0.17.2-6+deb9u2DLA-2903-1
Debian12, 13, 14libraw0.18.7-1DEBIAN-CVE-2018-5801
Ubuntu14.04:LTSlibraw0.15.4-1ubuntu0.2UBUNTU-CVE-2018-5801 USN-3615-1
Ubuntu16.04:LTSlibraw0.17.1-1ubuntu0.2UBUNTU-CVE-2018-5801 USN-3615-1
Ubuntu16.04:LTS, 18.04:LTSkodi, dcraw, ufraw and 3 moreno fix listedUBUNTU-CVE-2018-5801
Ubuntu20.04:LTS, 22.04:LTS, 24.04:LTS and 3 morekodi, dcraw, darktable and 2 moreno fix listedUBUNTU-CVE-2018-5801
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationlibkdcraw, libkdcraw-devel, libkdcraw-debuginfo0:4.10.5-5.el7RHSA-2018:3065
SUSELinux Enterprise Desktop 12 SP3, Linux Enterprise Software Development Kit 12 SP3, Linux Enterprise Workstation Extension 12 SP3libraw0.15.4-21.1SUSE-SU-2018:3343-1
SUSELinux Enterprise Software Development Kit 12 SP5, Linux Enterprise Workstation Extension 12 SP5dcraw9.28.0-3.3.1SUSE-SU-2022:1749-1
openSUSELeap 15.3dcraw9.28.0-150000.3.3.1SUSE-SU-2022:1277-1
openSUSETumbleweeddcraw9.28.0-1.6openSUSE-SU-2024:10712-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Low.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7libkdcraw-0:4.10.5-5.el7Fixed 2018-10-30RHSA-2018:3065
Red Hat Enterprise Linux 5dcrawWill not fix
Red Hat Enterprise Linux 6dcrawFix deferred
Red Hat Enterprise Linux 7dcrawNot affected
Red Hat Enterprise Linux 7LibRawWill not fix
Red Hat Enterprise Linux 8dcrawNot affected
Red Hat Enterprise Linux 8LibRawNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-5801.

References

Check your stackJSON