Heap-based buffer overflow in PCRE - CVE-2016-1283
Published: January 3, 2016 / Updated: August 3, 2020
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error in The pcre_compile2 function in pcre_compile.c in PCRE 8.38 mishandles the /((?:F?+(?:^(?(R)a+"){99}-))(?J)(?'R'(?'R'<((?'RR'(?'R'){97)?J)?J)(?'R'(?'R'){99|(:(?|(?'R')(k'R')|((?'R')))H'R'R)(H'R))))))/ pattern and related patterns with named subgroups, which. A remote attacker can use a crafted regular expression to trigger heap-based buffer overflow and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
Amazon Linux AMI
Slackware Linux
Fedora
php5 (Alpine package)
php7 (Alpine package)
php
pcre
How to mitigate CVE-2016-1283
php5 (Alpine package) - update to 5.6.32-r0
php7 (Alpine package) - update to 7.0.25-r0
php - addressed in versions 7.0.25-1.fc25, 7.1.11-1.fc26, 7.1.11-1.fc27
pcre - addressed in versions 8.38-3.fc22, 8.38-6.fc23
External References
- http://lists.fedoraproject.org/pipermail/package-announce/2016-March/178193.html
- http://lists.fedoraproject.org/pipermail/package-announce/2016-March/178955.html
- http://www.oracle.com/technetwork/topics/security/bulletinapr2016-2952098.html
- http://www.securityfocus.com/bid/79825
- http://www.securitytracker.com/id/1034555
- http://www.slackware.com/security/viewer.php?l=slackware-security&y=2016&m=slackware-security.343110
- https://access.redhat.com/errata/RHSA-2016:1132
- https://bto.bluecoat.com/security-advisory/sa128
- https://bugs.exim.org/show_bug.cgi?id=1767
- https://security.gentoo.org/glsa/201607-02
- https://www.tenable.com/security/tns-2016-18
- https://www.tenable.com/security/tns-2017-14
Related Security Bulletins
- Heap-based buffer overflow in PCRE
- Heap-based buffer overflow in php7 (Alpine package)
- Heap-based buffer overflow in php5 (Alpine package)
- Amazon Linux AMI update for php56, php70, php71
- Slackware Linux update for php
- Slackware Linux update for pcre
- Fedora 23 update for pcre
- Fedora 22 update for pcre
- Fedora 26 update for php
- Fedora 27 update for php
- Fedora 25 update for php