CVE-2017-12837: Buffer Overflow
Compiling certain regular expression patterns with the case-insensitive modifier could cause a heap buffer overflow and crash perl.
Upstream patch:
https://perl5.git.perl.org/perl.git/commitdiff/96c83ed78aeea1a0496dd2b2d935869a822dc8a5
Bug report :
https://rt.perl.org/Public/Bug/Display.html?id=131582
Other sources
Heap-based buffer overflow in the Sregatom function in regcomp.c in Perl 5 before 5.24.3-RC1 and 5.26.x before 5.26.1-RC1 allows remote attackers to cause a denial of service (out-of-bounds write) via a regular expression with a '\N{}' escape and the case-insensitive modifier.
— MITRE
Perl. Public CVE-2017-12837 was addressed by updating the function in Perl 5.18
Credit
Affected Software
Remediation
Patch Available
Event History
Peer vulnerabilities
Found alongside the following vulnerabilities.
- CVE-2017-13887
- CVE-2017-9798
- CVE-2017-13905
- CVE-2017-7172
- CVE-2017-13892
- CVE-2017-7171
- CVE-2017-7151
- CVE-2017-1000254
- CVE-2017-13872
- CVE-2017-15422
- CVE-2017-13883
- CVE-2017-7163
- CVE-2017-7155
- CVE-2017-13878
- CVE-2017-13875
- CVE-2017-7159
- CVE-2017-13848
- CVE-2017-13858
- CVE-2017-13847
- CVE-2017-7162
- CVE-2017-13904
- CVE-2017-5754
- CVE-2017-13862
- CVE-2017-13867
- CVE-2017-7173
- CVE-2017-13876
- CVE-2017-13855
- CVE-2017-13865
- CVE-2017-13868
- CVE-2017-13869
- CVE-2017-7154
- CVE-2017-13871
- CVE-2017-13860
- CVE-2017-3735
- CVE-2017-12837
- CVE-2017-7158
- CVE-2017-13911
- CVE-2017-13886
Frequently Asked Questions
What is CVE-2017-12837?
CVE-2017-12837 is a heap-based buffer overflow vulnerability in the S_regatom function in Perl 5 before 5.24.3-RC1 and 5.26.x before 5.26.1-RC1.
How does CVE-2017-12837 impact Perl?
CVE-2017-12837 allows remote attackers to cause a denial of service (out-of-bounds write) in Perl by using a regular expression with a '\N{}' escape and the case-insensitive modifier.
What versions of Perl are affected by CVE-2017-12837?
Perl versions up to and including 5.24.2 and 5.26.0 are affected by CVE-2017-12837.
What is the severity of CVE-2017-12837?
CVE-2017-12837 has a severity rating of 7.5 (high).
How can I mitigate CVE-2017-12837?
To mitigate CVE-2017-12837, update Perl to version 5.24.3-RC1 or later for Perl 5.24.x, or version 5.26.1-RC1 or later for Perl 5.26.x.