| Name | CVE-2019-18218 | 
| Description | 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). | 
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) | 
| References | DLA-1969-1, DLA-2708-1, DSA-4550-1 | 
| Debian Bugs | 942830 | 
The table below lists information on source packages.
| Source Package | Release | Version | Status | 
|---|---|---|---|
| file (PTS) | bullseye (security), bullseye | 1:5.39-3+deb11u1 | fixed | 
| bookworm | 1:5.44-3 | fixed | |
| forky, sid, trixie | 1:5.46-5 | fixed | 
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs | 
|---|---|---|---|---|---|---|
| file | source | jessie | 1:5.22+15-2+deb8u6 | DLA-1969-1 | ||
| file | source | stretch | 1:5.30-1+deb9u3 | DSA-4550-1 | ||
| file | source | buster | 1:5.35-4+deb10u1 | DSA-4550-1 | ||
| file | source | (unstable) | 1:5.37-6 | 942830 | ||
| php7.0 | source | stretch | 7.0.33-0+deb9u11 | DLA-2708-1 | ||
| php7.0 | source | (unstable) | (unfixed) | 
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16780
https://github.com/file/file/commit/46a8443f76cec4b41ec736eca396984c74664f84
https://github.com/php/php-src/commit/469820048df558040f6dec7c39471ad11e2a7cfb (php-7.2.25RC1)