# CVE-2019-18218: file: The file command is used to identify a particular file according to the type of data the file contains

CVE-2019-18218 is fixed in 6 products on 1 platform, first by file 1:5.32-2ubuntu0.3, released October 20, 2019. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2019-18218
- Priority: High
- CVSS: 9.8 (Moderate)
- EPSS: 0.0185
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Oct 20, 2019

## Description

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 Red Hat Enterprise Linux 8.5 Release Notes linked from the References section.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | file RHEL 8 | 0:5.33-20.el8 | [RHSA-2021:4374](https://patchblox.com/security/data/fix/linux/rhsa-2021-4374.md) | Nov 9, 2021 |
| Linux | file Ubuntu 18.04.6 LTS (bionic) | 1:5.32-2ubuntu0.3 | [file 1:5.32-2ubuntu0.3](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-file-1-5.32-2ubuntu0.3.md) | Oct 20, 2019 |
| Linux | file almalinux 8 | 5.33-20.el8 | [ALSA-2021:4374](https://patchblox.com/security/data/fix/linux/alsa-2021-4374.md) | Nov 9, 2021 |
| Linux | file ol 8 | 0:5.33-20.el8 | [ELSA-2021-4374](https://patchblox.com/security/data/fix/linux/elsa-2021-4374.md) | Nov 16, 2021 |
| Linux | file rocky 8 | 0:5.33-20.el8 | [RLSA-2021:4374](https://patchblox.com/security/data/fix/linux/rlsa-2021-4374.md) | Nov 9, 2021 |
| Linux | file-devel RHEL 8 | 0:5.33-20.el8 | [RHSA-2021:4374](https://patchblox.com/security/data/fix/linux/rhsa-2021-4374.md) | Nov 9, 2021 |
| Linux | file-devel almalinux 8 | 5.33-20.el8 | [ALSA-2021:4374](https://patchblox.com/security/data/fix/linux/alsa-2021-4374.md) | Nov 9, 2021 |
| Linux | file-devel ol 8 | 0:5.33-20.el8 | [ELSA-2021-4374](https://patchblox.com/security/data/fix/linux/elsa-2021-4374.md) | Nov 16, 2021 |
| Linux | file-libs RHEL 8 | 0:5.33-20.el8 | [RHSA-2021:4374](https://patchblox.com/security/data/fix/linux/rhsa-2021-4374.md) | Nov 9, 2021 |
| Linux | file-libs almalinux 8 | 5.33-20.el8 | [ALSA-2021:4374](https://patchblox.com/security/data/fix/linux/alsa-2021-4374.md) | Nov 9, 2021 |
| Linux | file-libs ol 8 | 0:5.33-20.el8 | [ELSA-2021-4374](https://patchblox.com/security/data/fix/linux/elsa-2021-4374.md) | Nov 16, 2021 |
| Linux | libmagic-mgc Ubuntu 18.04.6 LTS (bionic) | 1:5.32-2ubuntu0.3 | [libmagic-mgc 1:5.32-2ubuntu0.3](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libmagic-mgc-1-5.32-2ubuntu0.3.md) | Oct 20, 2019 |
| Linux | libmagic1 Ubuntu 18.04.6 LTS (bionic) | 1:5.32-2ubuntu0.3 | [libmagic1 1:5.32-2ubuntu0.3](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libmagic1-1-5.32-2ubuntu0.3.md) | Oct 20, 2019 |
| Linux | python3-magic RHEL 8 | 0:5.33-20.el8 | [RHSA-2021:4374](https://patchblox.com/security/data/fix/linux/rhsa-2021-4374.md) | Nov 9, 2021 |
| Linux | python3-magic almalinux 8 | 5.33-20.el8 | [ALSA-2021:4374](https://patchblox.com/security/data/fix/linux/alsa-2021-4374.md) | Nov 9, 2021 |
| Linux | python3-magic ol 8 | 0:5.33-20.el8 | [ELSA-2021-4374](https://patchblox.com/security/data/fix/linux/elsa-2021-4374.md) | Nov 16, 2021 |

---

Data as of 2026-11-07T18:46:35Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
