Description
file before 5.19 does not properly restrict the amount of data read during a regex search, which allows remote attackers to cause a denial of service (CPU consumption) via a crafted file that triggers backtracking during processing of an awk rule. NOTE: this vulnerability exists because of an incomplete fix for CVE-2013-7345.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | file | 1:5.19-1 | — |
| Debian 13 | file | 1:5.19-1 | — |
| Debian 12 | file | 1:5.19-1 | — |
| Debian 7 | file | 5.11-2+deb7u4 | DSA-3021-1 |
| Debian 7 | php5 | 5.4.4-14+deb7u13 | DSA-3008-1 |
| Debian 6.0 | file | 5.04-5+squeeze7 | DLA-50-1 |
| Debian 6.0 | php5 | 5.3.3-7+squeeze22 | DLA-67-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 14.04 LTS | file | 1:5.14-2ubuntu3.1 | USN-2278-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7 | file +4 | 5.11-31.el7 | RHSA-2015:2155 |
| RHEL 7 | php +24 | 5.4.16-23.el7_0.1 | RHSA-2014:1327 |
| RHEL 6 | file +4 | 5.04-30.el6 | RHSA-2016:0760 |
| RHEL 1 | php54-php +24 | 5.4.16-22.el6 | RHSA-2014:1765 |
| RHEL 1 | php55-php +26 | 5.5.6-13.el6 | RHSA-2014:1766 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | php5 | 5.6.28-1.1 | openSUSE-SU-2024:10344-1 |
| openSUSE Tumbleweed | php7 | 7.0.14-1.4 | openSUSE-SU-2024:10290-1 |
| openSUSE Tumbleweed | php8 | 8.0.11-1.1 | openSUSE-SU-2024:11169-1 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | file +4 | 5.11-31.el7 | ELSA-2015-2155 |
| Oracle Linux 7 | php +24 | 5.4.16-23.el7_0.1 | ELSA-2014-1327 |
Advisories 15
- RHSA-2016:0760 Red Hat Security Advisory: file security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2015:2155 Red Hat Security Advisory: file security and bug fix update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2014:1766 Red Hat Security Advisory: php55-php security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2014:1765 Red Hat Security Advisory: php54-php security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2014:1327 Red Hat Security Advisory: php security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- USN-2278-1 file vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DLA-50-1 file - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-67-1 php5 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-3008-1 php5 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-3021-1 file - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:10290-1 apache2-mod_php7-7.0.14-1.4 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10344-1 apache2-mod_php5-5.6.28-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11169-1 php8-8.0.11-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- ELSA-2015-2155 Moderate: file security and bug fix update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Nov 23, 2015
- ELSA-2014-1327 Moderate: php security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Sep 30, 2014
References
- https://github.com/file/file/commit/74cafd7de9ec99a14f4480927580e501c8f852c3
- https://github.com/file/file/commit/71a8b6c0d758acb0f73e2e51421a711b5e9d6668
- https://support.apple.com/HT204659
- http://www.oracle.com/technetwork/topics/security/linuxbulletinapr2016-2952096.html
- RHSA-2014:1766 vendor-advisory
- DSA-3021 vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1098222
- RHSA-2016:0760 vendor-advisory
- 68348 vdb-entry
- https://github.com/file/file/commit/4a284c89d6ef11aca34da65da7d673050a5ea320
- http://www.oracle.com/technetwork/security-advisory/cpuoct2017-3236626.html
- http://www.oracle.com/technetwork/topics/security/linuxbulletinoct2015-2719645.html
- [oss-security] 20140630 changing CVE ID for RH Bugzilla 1098222 (from CVE-2014-0235) mailing-list
- [file] 20140612 file-5.19 is now available mailing-list
- APPLE-SA-2015-04-08-2 vendor-advisory
- DSA-3008 vendor-advisory
- RHSA-2014:1327 vendor-advisory
- http://www.oracle.com/technetwork/topics/security/bulletinjan2015-2370101.html
- RHSA-2014:1765 vendor-advisory
- https://github.com/file/file/commit/69a5a43b3b71f53b0577f41264a073f495799610
- 60696 third-party-advisory
- https://github.com/file/file/commit/758e066df72fb1ac08d2eea91ddc3973d259e991