Permissions, Privileges, and Access Controls in PHP - CVE-2013-7345

 

Permissions, Privileges, and Access Controls in PHP - CVE-2013-7345

Published: March 24, 2014 / Updated: July 28, 2020


Vulnerability identifier: #VU32548
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2013-7345
CWE-ID: CWE-264
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to perform service disruption.

The BEGIN regular expression in the awk script detector in magic/Magdir/commands in file before 5.15 uses multiple wildcards with unlimited repetitions, which allows context-dependent attackers to cause a denial of service (CPU consumption) via a crafted ASCII file that triggers a large amount of backtracking, as demonstrated via a file with many newline characters.


Affected software

PHP
Gentoo Linux
Amazon Linux AMI
Slackware Linux
php (Alpine package)
dev-lang/php

How to mitigate CVE-2013-7345

Install update from vendor's website.

php (Alpine package) - update to 5.3.28-r2
dev-lang/php - update to 5.5.16

External References

Related Security Bulletins