CVE-2019-18218
cdf_read_property_info in cdf.c in file through 5.37 does not restrict the number of CDF_VECTOR...
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).
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.8
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).
- Record
CVE-2019-18218- 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 - CVSS 2.0
- 6.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:P - Weakness
- CWE-787
- Updated
- 2026-11-02
CVE List No score
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).
- Record
CVE-2019-18218- Updated
- 2026-11-02
EUVDEUVD-2019-8018 No score
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).
- Record
EUVD-2019-8018- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-gg3j-j3hx-hjx5
7.8
cdf_read_property_info in cdf.c in file through 5.37 does not restrict the number of CDF_VECTOR...
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).
- Record
GHSA-gg3j-j3hx-hjx5- 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 - Weakness
- CWE-787
- Updated
- 2026-11-02
OSVALPINE-CVE-2019-18218
7.8
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).
- Record
ALPINE-CVE-2019-18218- 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 - Updated
- 2026-11-02
OSVBELL-CVE-2019-18218
7.8
CVE-2019-18218 does not affect BellSoft software
- Record
BELL-CVE-2019-18218- 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 - Updated
- 2026-11-02
Show 15 moreShow less
OSV
7.8
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).
- Record
CVE-2019-18218- 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 - Updated
- 2026-11-02
OSVDEBIAN-CVE-2019-18218
7.8
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).
- Record
DEBIAN-CVE-2019-18218- 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 - Updated
- 2026-11-02
OSVRHSA-2021:4374
7.8
Red Hat Security Advisory: file security update
- Record
RHSA-2021:4374- 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 - Updated
- 2026-11-02
OSVRLSA-2021:4374
7.8
Moderate: file security update
The file command is used to identify a particular file according to the type of data the file contains. It can identify many different file types, including Executable and Linkable Format (ELF) binary files, system libraries, RPM packages, and different graphics formats.
Security Fix(es):
- file: heap-based buffer overflow in cdf_read_property_info in cdf.c (CVE-2019-18218)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Additional Changes:
For detailed information on changes in this release, see the Rocky Linux 8.5 Release Notes linked from the References section.
- Record
RLSA-2021:4374- 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 - Updated
- 2026-11-02
OSVUBUNTU-CVE-2019-18218
7.8
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).
- Record
UBUNTU-CVE-2019-18218- 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 - Updated
- 2026-11-02
OSVALSA-2021:4374 No score
Moderate: file security update
The file command is used to identify a particular file according to the type of data the file contains. It can identify many different file types, including Executable and Linkable Format (ELF) binary files, system libraries, RPM packages, and different graphics formats.
Security Fix(es):
- file: heap-based buffer overflow in cdf_read_property_info in cdf.c (CVE-2019-18218)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Additional Changes:
For detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.
- Record
ALSA-2021:4374- Updated
- 2026-11-02
OSVCLSA-2026-1776693102 No score
file: Fix of CVE-2019-18218
- CVE-2019-18218: fix heap-based buffer overflow in cdf_read_property_info
- Record
CLSA-2026-1776693102- Updated
- 2026-11-02
OSVCLSA-2026-1777683788 No score
file: Fix of CVE-2019-18218
- CVE-2019-18218: fix heap-based buffer overflow in cdf_read_property_info
- Record
CLSA-2026-1777683788- Updated
- 2026-11-02
OSVMGASA-2019-0308 No score
Updated file packages fix security vulnerability
Updated file packages fix security vulnerability:
A buffer overflow was found in file which may result in denial of service or potentially the execution of arbitrary code if a malformed CDF (Composite Document File) file is processed (CVE-2019-18218).
- Record
MGASA-2019-0308- Updated
- 2026-11-02
OSVopenSUSE-SU-2020:0677-1 No score
Security update for file
This update for file fixes the following issues:
Security issues fixed:
- CVE-2019-18218: Fixed a heap-based buffer overflow in cdf_read_property_info() (bsc#1154661).
Non-security issue fixed:
- Fixed broken '--help' output (bsc#1169512).
This update was imported from the SUSE:SLE-15:Update update project.
- Record
openSUSE-SU-2020:0677-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10755-1 No score
file-5.40-1.14 on GA media
These are all security issues fixed in the file-5.40-1.14 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10755-1- Updated
- 2026-11-02
OSVSUSE-SU-2020:1294-1 No score
Security update for file
This update for file fixes the following issues:
Security issues fixed:
- CVE-2019-18218: Fixed a heap-based buffer overflow in cdf_read_property_info() (bsc#1154661).
Non-security issue fixed:
- Fixed broken '--help' output (bsc#1169512).
- Record
SUSE-SU-2020:1294-1- Updated
- 2026-11-02
OSVSUSE-SU-2021:2930-1 No score
Security update for file
This update for file fixes the following issues:
- CVE-2019-18218: Fixed heap-based buffer overflow in cdf_read_property_info in cdf.c (bsc#1154661).
- Record
SUSE-SU-2021:2930-1- Updated
- 2026-11-02
OSVUSN-4172-1 No score
file vulnerability
It was discovered that file incorrectly handled certain malformed files. An attacker could use this issue to cause a denial of service, or possibly execute arbitrary code.
- Record
USN-4172-1- Updated
- 2026-11-02
OSVUSN-4172-2 No score
file vulnerability
USN-4172-1 fixed a vulnerability in file. This update provides the corresponding update for Ubuntu 12.04 ESM Ubuntu 14.04 ESM.
Original advisory details:
It was discovered that file incorrectly handled certain malformed files. An attacker could use this issue to cause a denial of service, or possibly execute arbitrary code.
- Record
USN-4172-2- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
fileAlpine:v3.10 |
before 5.37-r1 | 5.37-r1 |
fileAlpine:v3.11 |
before 5.37-r1 | 5.37-r1 |
fileAlpine:v3.12 |
before 5.37-r1 | 5.37-r1 |
fileAlpine:v3.13 |
before 5.37-r1 | 5.37-r1 |
fileAlpine:v3.14 |
before 5.37-r1 | 5.37-r1 |
fileAlpine:v3.15 |
before 5.37-r1 | 5.37-r1 |
fileAlpine:v3.16 |
before 5.37-r1 | 5.37-r1 |
fileAlpine:v3.17 |
before 5.37-r1 | 5.37-r1 |
fileAlpine:v3.18 |
before 5.37-r1 | 5.37-r1 |
fileAlpine:v3.19 |
before 5.37-r1 | 5.37-r1 |
Show 65 moreShow less
| Package | Affected | Fixed |
|---|---|---|
fileAlpine:v3.20 |
before 5.37-r1 | 5.37-r1 |
fileAlpine:v3.21 |
before 5.37-r1 | 5.37-r1 |
fileAlpine:v3.22 |
before 5.37-r1 | 5.37-r1 |
fileAlpine:v3.23 |
before 5.37-r1 | 5.37-r1 |
fileAlpine:v3.24 |
before 5.37-r1 | 5.37-r1 |
fileAlpine:v3.7 |
before 5.32-r2 | 5.32-r2 |
fileAlpine:v3.8 |
before 5.32-r2 | 5.32-r2 |
fileAlpine:v3.9 |
before 5.36-r1 | 5.36-r1 |
fileAlmaLinux:8 |
before 5.33-20.el8 | 5.33-20.el8 |
file-develAlmaLinux:8 |
before 5.33-20.el8 | 5.33-20.el8 |
file-libsAlmaLinux:8 |
before 5.33-20.el8 | 5.33-20.el8 |
python3-magicAlmaLinux:8 |
before 5.33-20.el8 | 5.33-20.el8 |
fileTuxCare:OracleLinux:6 |
before 5.04-30.0.1.el6.tuxcare.els1 | 5.04-30.0.1.el6.tuxcare.els1 |
file-develTuxCare:OracleLinux:6 |
before 5.04-30.0.1.el6.tuxcare.els1 | 5.04-30.0.1.el6.tuxcare.els1 |
file-libsTuxCare:OracleLinux:6 |
before 5.04-30.0.1.el6.tuxcare.els1 | 5.04-30.0.1.el6.tuxcare.els1 |
file-staticTuxCare:OracleLinux:6 |
before 5.04-30.0.1.el6.tuxcare.els1 | 5.04-30.0.1.el6.tuxcare.els1 |
python-magicTuxCare:OracleLinux:6 |
before 5.04-30.0.1.el6.tuxcare.els1 | 5.04-30.0.1.el6.tuxcare.els1 |
fileTuxCare:CentOS:6 |
before 5.04-30.el6.tuxcare.els1 | 5.04-30.el6.tuxcare.els1 |
file-develTuxCare:CentOS:6 |
before 5.04-30.el6.tuxcare.els1 | 5.04-30.el6.tuxcare.els1 |
file-libsTuxCare:CentOS:6 |
before 5.04-30.el6.tuxcare.els1 | 5.04-30.el6.tuxcare.els1 |
file-staticTuxCare:CentOS:6 |
before 5.04-30.el6.tuxcare.els1 | 5.04-30.el6.tuxcare.els1 |
python-magicTuxCare:CentOS:6 |
before 5.04-30.el6.tuxcare.els1 | 5.04-30.el6.tuxcare.els1 |
fileDebian:12 |
before 1:5.37-6 | 1:5.37-6 |
fileDebian:13 |
before 1:5.37-6 | 1:5.37-6 |
fileDebian:14 |
before 1:5.37-6 | 1:5.37-6 |
fileDebian:8 |
before 1:5.22+15-2+deb8u6, plus listed versions 1:5.22+15-21:5.22+15-2+deb8u11:5.22+15-2+deb8u21:5.22+15-2+deb8u31:5.22+15-2+deb8u41:5.22+15-2+deb8u5 |
1:5.22+15-2+deb8u6 |
php7.0Debian:9 From an advisory covering 5 CVEs |
before 7.0.33-0+deb9u11, plus listed versions 7.0.19-17.0.20-17.0.20-27.0.22-17.0.22-2 Show 21 moreShow less7.0.22-37.0.25-17.0.26-17.0.27-0+deb9u17.0.27-17.0.28-17.0.29-17.0.30-0+deb9u17.0.30-17.0.30-27.0.31-17.0.32-17.0.33-0+deb9u17.0.33-0+deb9u107.0.33-0+deb9u27.0.33-0+deb9u37.0.33-0+deb9u57.0.33-0+deb9u67.0.33-0+deb9u77.0.33-0+deb9u87.0.33-0+deb9u9 |
7.0.33-0+deb9u11 |
fileDebian:9 |
before 1:5.30-1+deb9u3, plus listed versions 1:5.30-11:5.30-1+deb9u11:5.30-1+deb9u2 |
1:5.30-1+deb9u3 |
fileDebian:10 |
before 1:5.35-4+deb10u1, plus listed versions 1:5.35-4 |
1:5.35-4+deb10u1 |
fileMageia:7 |
before 5.37-1.2.mga7 | 5.37-1.2.mga7 |
fileRed Hat:enterprise_linux:8::baseos |
before 0:5.33-20.el8 | 0:5.33-20.el8 |
file-debuginfoRed Hat:enterprise_linux:8::baseos |
before 0:5.33-20.el8 | 0:5.33-20.el8 |
file-debugsourceRed Hat:enterprise_linux:8::baseos |
before 0:5.33-20.el8 | 0:5.33-20.el8 |
file-libsRed Hat:enterprise_linux:8::baseos |
before 0:5.33-20.el8 | 0:5.33-20.el8 |
file-libs-debuginfoRed Hat:enterprise_linux:8::baseos |
before 0:5.33-20.el8 | 0:5.33-20.el8 |
python3-magicRed Hat:enterprise_linux:8::baseos |
before 0:5.33-20.el8 | 0:5.33-20.el8 |
file-debuginfoRed Hat:enterprise_linux:8::crb |
before 0:5.33-20.el8 | 0:5.33-20.el8 |
file-debugsourceRed Hat:enterprise_linux:8::crb |
before 0:5.33-20.el8 | 0:5.33-20.el8 |
file-develRed Hat:enterprise_linux:8::crb |
before 0:5.33-20.el8 | 0:5.33-20.el8 |
file-libs-debuginfoRed Hat:enterprise_linux:8::crb |
before 0:5.33-20.el8 | 0:5.33-20.el8 |
fileRocky Linux:8 |
before 0:5.33-20.el8 | 0:5.33-20.el8 |
fileSUSE:Linux Enterprise Module for Basesystem 15 SP1 |
before 5.32-7.8.1 | 5.32-7.8.1 |
python-magicSUSE:Linux Enterprise Module for Development Tools 15 SP1 |
before 5.32-7.8.1 | 5.32-7.8.1 |
python-magicSUSE:Linux Enterprise Module for Python 2 15 SP1 |
before 5.32-7.8.1 | 5.32-7.8.1 |
fileSUSE:HPE Helion OpenStack 8 |
before 5.22-10.21.1 | 5.22-10.21.1 |
fileSUSE:OpenStack Cloud 8 |
before 5.22-10.21.1 | 5.22-10.21.1 |
fileSUSE:OpenStack Cloud 9 |
before 5.22-10.21.1 | 5.22-10.21.1 |
fileSUSE:OpenStack Cloud Crowbar 8 |
before 5.22-10.21.1 | 5.22-10.21.1 |
fileSUSE:OpenStack Cloud Crowbar 9 |
before 5.22-10.21.1 | 5.22-10.21.1 |
fileSUSE:Linux Enterprise Server for SAP Applications 12 SP3 |
before 5.22-10.21.1 | 5.22-10.21.1 |
fileSUSE:Linux Enterprise Server for SAP Applications 12 SP4 |
before 5.22-10.21.1 | 5.22-10.21.1 |
fileSUSE:Linux Enterprise Software Development Kit 12 SP5 |
before 5.22-10.21.1 | 5.22-10.21.1 |
python-magicSUSE:Linux Enterprise Software Development Kit 12 SP5 |
before 5.22-10.21.1 | 5.22-10.21.1 |
fileSUSE:Linux Enterprise Server 12 SP2-BCL |
before 5.22-10.21.1 | 5.22-10.21.1 |
fileSUSE:Linux Enterprise Server 12 SP3-LTSS |
before 5.22-10.21.1 | 5.22-10.21.1 |
fileSUSE:Linux Enterprise Server 12 SP3-BCL |
before 5.22-10.21.1 | 5.22-10.21.1 |
fileSUSE:Linux Enterprise Server 12 SP4-LTSS |
before 5.22-10.21.1 | 5.22-10.21.1 |
fileSUSE:Linux Enterprise Server 12 SP5 |
before 5.22-10.21.1 | 5.22-10.21.1 |
fileSUSE:Linux Enterprise Server for SAP Applications 12 SP5 |
before 5.22-10.21.1 | 5.22-10.21.1 |
fileUbuntu:Pro:14.04:LTS |
before 1:5.14-2ubuntu3.4+esm1, plus listed versions 5.11-2ubuntu41:5.14-2ubuntu11:5.14-2ubuntu21:5.14-2ubuntu31:5.14-2ubuntu3.11:5.14-2ubuntu3.21:5.14-2ubuntu3.31:5.14-2ubuntu3.4 |
1:5.14-2ubuntu3.4+esm1 |
fileUbuntu:16.04:LTS |
before 1:5.25-2ubuntu1.3, plus listed versions 1:5.22+15-2ubuntu11:5.25-2ubuntu11:5.25-2ubuntu1.11:5.25-2ubuntu1.2 |
1:5.25-2ubuntu1.3 |
fileUbuntu:18.04:LTS |
before 1:5.32-2ubuntu0.3, plus listed versions 1:5.32-11:5.32-21:5.32-2ubuntu0.11:5.32-2ubuntu0.2 |
1:5.32-2ubuntu0.3 |
fileopenSUSE:Leap 15.1 |
before 5.32-lp151.8.3.1 | 5.32-lp151.8.3.1 |
python-magicopenSUSE:Leap 15.1 |
before 5.32-lp151.8.3.1 | 5.32-lp151.8.3.1 |
fileopenSUSE:Tumbleweed From an advisory covering 7 CVEs |
before 5.40-1.14 | 5.40-1.14 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2019-18218 is a high vulnerability (CVSS 7.8) in File Project File, published October 21, 2019. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.85%, the 79th percentile. Fixed in file 5.37-r1.
References
github.com/file/file/commit/46a8443f76cec4b41ec736eca396984c74664f84
bugs.chromium.org/p/oss-fuzz/issues/detail?id=16780
lists.debian.org/debian-lts-announce/2019/10/msg00032.html
debian.org/security/2019/dsa-4550
usn.ubuntu.com/4172-1
usn.ubuntu.com/4172-2
Show 44 moreShow less
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VBK6XOJR6OVWT2FUEBO7V7KCOSSLAP52
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CV6PFCEYHYALMTT45QE2U5C5TEJZQPXJ
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/D6BJVGXSCC6NMIAWX36FPWHEIFON3OSE
security.netapp.com/advisory/ntap-20200115-0001
security.gentoo.org/glsa/202003-24
lists.opensuse.org/opensuse-security-announce/2020-05/msg00044.html
lists.debian.org/debian-lts-announce/2021/07/msg00008.html
nvd.nist.gov/vuln/detail/CVE-2019-18218
lists.fedoraproject.org/archives/list/[email protected]/message/CV6PFCEYHYALMTT45QE2U5C5TEJZQPXJ
lists.fedoraproject.org/archives/list/[email protected]/message/D6BJVGXSCC6NMIAWX36FPWHEIFON3OSE
lists.fedoraproject.org/archives/list/[email protected]/message/VBK6XOJR6OVWT2FUEBO7V7KCOSSLAP52
github.com/advisories/GHSA-gg3j-j3hx-hjx5
security.alpinelinux.org/vuln/CVE-2019-18218
errata.almalinux.org/8/ALSA-2021-4374.html
vulners.com/cve/CVE-2019-18218
docs.bell-sw.com/security/cves/CVE-2019-18218
errata.tuxcare.com/els_os/oraclelinux6els/CLSA-2026-1776693102.html
errata.tuxcare.com/els_os/centos6els/CLSA-2026-1777683788.html
security-tracker.debian.org/tracker/CVE-2019-18218
advisories.mageia.org/MGASA-2019-0308.html
bugs.mageia.org/show_bug.cgi?id=25615
access.redhat.com/errata/RHSA-2021:4374
access.redhat.com/security/updates/classification
access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/8.5_release_notes
bugzilla.redhat.com/show_bug.cgi?id=1765272
security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_4374.json
access.redhat.com/security/cve/CVE-2019-18218
cve.org/CVERecord?id=CVE-2019-18218
errata.rockylinux.org/RLSA-2021:4374
suse.com/support/update/announcement/2020/suse-su-20201294-1
bugzilla.suse.com/1154661
bugzilla.suse.com/1169512
suse.com/security/cve/CVE-2019-18218
suse.com/support/update/announcement/2021/suse-su-20212930-1
ubuntu.com/security/CVE-2019-18218
ubuntu.com/security/notices/USN-4172-1
ubuntu.com/security/notices/USN-4172-2
lists.opensuse.org/archives/list/[email protected]/thread/KNKLNIB4ZMHA6GDNDLMUTNQRB6PVMFHG
suse.com/security/cve/CVE-2007-1536
suse.com/security/cve/CVE-2007-2799
suse.com/security/cve/CVE-2017-1000249
suse.com/security/cve/CVE-2018-10360
suse.com/security/cve/CVE-2019-8904
suse.com/security/cve/CVE-2019-8907