cve.bz

CVE-2019-18218 Out-of-bounds Write

7.8 highExploit referenceEPSS 1.8%Fix available

High (7.8). EPSS 1.8% estimated probability of exploitation activity in the next 30 days.

On this page
cdf_read_property_info in cdf.c in file through 5.37 does not restrict the number of CDF_VECTOR elements, which allows a heap-based buffer overflow (4-byte out-of-bounds write).

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
1.8% (unchanged from 1.8% a week ago; 1.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 80th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-787 Out-of-bounds Write
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-2019-18218 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2019-18218?via=ask-ai-copy and https://cve.bz/cve/CVE-2019-18218?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-2019-18218 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
file_project:filethrough 5.37
debian:debian_linux8.0
debian:debian_linux9.0
debian:debian_linux10.0
opensuse:leap15.1
netapp:active_iq_unified_manager7.3 and later
fedoraproject:fedora29
fedoraproject:fedora30
fedoraproject:fedora31
canonical:ubuntu_linux12.04
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
canonical:ubuntu_linux19.04
canonical:ubuntu_linux19.10

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8file1:5.22+15-2+deb8u6DLA-1969-1
Debian9file1:5.30-1+deb9u3DSA-4550-1
Debian9php7.07.0.33-0+deb9u11DLA-2708-1
Debian10file1:5.35-4+deb10u1DSA-4550-1
Debian12, 13, 14file1:5.37-6DEBIAN-CVE-2019-18218
Ubuntu16.04:LTSfile1:5.25-2ubuntu1.3UBUNTU-CVE-2019-18218 USN-4172-1
Ubuntu18.04:LTSfile1:5.32-2ubuntu0.3UBUNTU-CVE-2019-18218 USN-4172-1
UbuntuPro:14.04:LTSfile1:5.14-2ubuntu3.4+esm1UBUNTU-CVE-2019-18218 USN-4172-2
Red Hatenterprise_linux:8::baseosfile, file-libs, python3-magic and 3 more0:5.33-20.el8RHSA-2021:4374
Red Hatenterprise_linux:8::crbfile-devel, file-debuginfo, file-debugsource and 1 more0:5.33-20.el8RHSA-2021:4374
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 10 morefile5.22-10.21.1SUSE-SU-2021:2930-1
SUSELinux Enterprise Module for Basesystem 15 SP1file5.32-7.8.1SUSE-SU-2020:1294-1
SUSELinux Enterprise Module for Development Tools 15 SP1, Linux Enterprise Module for Python 2 15 SP1python-magic5.32-7.8.1SUSE-SU-2020:1294-1
SUSELinux Enterprise Software Development Kit 12 SP5file, python-magic5.22-10.21.1SUSE-SU-2021:2930-1
openSUSELeap 15.1file, python-magic5.32-lp151.8.3.1openSUSE-SU-2020:0677-1
openSUSETumbleweedfile5.40-1.14openSUSE-SU-2024:10755-1
AlmaLinux8file, file-libs, file-devel and 1 more5.33-20.el8ALSA-2021:4374
Rocky Linux8file0:5.33-20.el8RLSA-2021:4374
Alpinev3.7, v3.8file5.32-r2ALPINE-CVE-2019-18218
Alpinev3.9file5.36-r1ALPINE-CVE-2019-18218
Alpinev3.10, v3.11, v3.12 and 12 morefile5.37-r1ALPINE-CVE-2019-18218

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; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue affects the `file` package as shipped with Red Hat Enterprise Linux 8. However, this flaw has been rated as having a security impact of Moderate because it is only exploitable if the 32bit version is used, for example when an application uses the 32bit version of libmagic.so.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8file-0:5.33-20.el8Fixed 2021-11-09RHSA-2021:4374
Red Hat Enterprise Linux 5fileNot affected
Red Hat Enterprise Linux 5php53Not affected
Red Hat Enterprise Linux 6fileNot affected
Red Hat Enterprise Linux 6phpNot affected
Red Hat Enterprise Linux 7fileNot affected
Red Hat Enterprise Linux 7phpNot affected
Red Hat Software Collectionsrh-php70-phpNot affected
Red Hat Software Collectionsrh-php71-phpNot 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-2019-18218.

References

Check your stackJSON