CVE-2017-12837
Heap-based buffer overflow in the S_regatom 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.
What to do
Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | perl | Fixed | 5.22.1-9ubuntu0.2 | UBUNTU-CVE-2017-12837 |
| Ubuntu 14.04 | perl | Fixed | 5.18.2-2ubuntu1.3 | UBUNTU-CVE-2017-12837 |
| Debian 14 | perl | Fixed | 5.26.0-8 | DEBIAN-CVE-2017-12837 |
| Debian 13 | perl | Fixed | 5.26.0-8 | DEBIAN-CVE-2017-12837 |
| Debian 12 | perl | Fixed | 5.26.0-8 | DEBIAN-CVE-2017-12837 |
| Red Hat Enterprise Linux 7 | perl | Not affected | ||
| Red Hat Enterprise Linux 7 | perl-CPAN | Not affected | ||
| Red Hat Enterprise Linux 7 | perl-ExtUtils-CBuilder | Not affected | ||
| Red Hat Enterprise Linux 7 | perl-ExtUtils-Embed | Not affected | ||
| Red Hat Enterprise Linux 7 | perl-ExtUtils-Install | Not affected | ||
| Red Hat Enterprise Linux 7 | perl-IO-Zlib | Not affected | ||
| Red Hat Enterprise Linux 7 | perl-Locale-Maketext-Simple | Not affected | ||
| Red Hat Enterprise Linux 7 | perl-Module-CoreList | Not affected | ||
| Red Hat Enterprise Linux 7 | perl-Module-Loaded | Not affected | ||
| Red Hat Enterprise Linux 7 | perl-Object-Accessor | Not affected | ||
| Red Hat Enterprise Linux 7 | perl-Package-Constants | Not affected | ||
| Red Hat Enterprise Linux 7 | perl-Pod-Escapes | Not affected | ||
| Red Hat Enterprise Linux 7 | perl-Time-Piece | Not affected | ||
| Red Hat Enterprise Linux 7 | perl-core | Not affected | ||
| Red Hat Enterprise Linux 7 | perl-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | perl-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | perl-macros | Not affected | ||
| Red Hat Enterprise Linux 7 | perl-tests | Not affected | ||
| Red Hat Enterprise Linux 6 | perl | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-Archive-Extract | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-Archive-Tar | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-CGI | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-CPAN | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-CPANPLUS | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-Compress-Raw-Bzip2 | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-Compress-Raw-Zlib | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-Compress-Zlib | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-Digest-SHA | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-ExtUtils-CBuilder | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-ExtUtils-Embed | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-ExtUtils-MakeMaker | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-ExtUtils-ParseXS | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-File-Fetch | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-IO-Compress-Base | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-IO-Compress-Bzip2 | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-IO-Compress-Zlib | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-IO-Zlib | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-IPC-Cmd | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-Locale-Maketext-Simple | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-Log-Message | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-Log-Message-Simple | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-Module-Build | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-Module-CoreList | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-Module-Load | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-Module-Load-Conditional | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-Module-Loaded | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-Module-Pluggable | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-Object-Accessor | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-Package-Constants | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-Params-Check | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-Parse-CPAN-Meta | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-Pod-Escapes | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-Pod-Simple | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-Term-UI | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-Test-Harness | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-Test-Simple | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-Time-HiRes | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-Time-Piece | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-core | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-libs | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-parent | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-suidperl | Not affected | ||
| Red Hat Enterprise Linux 6 | perl-version | Not affected | ||
| Red Hat Enterprise Linux 5 | perl | Not affected | ||
| Alpine Linux 3.24 | perl | Fixed | 5.26.1-r0 | ALPINE-CVE-2017-12837 |
| Alpine Linux 3.23 | perl | Fixed | 5.26.1-r0 | ALPINE-CVE-2017-12837 |
| Alpine Linux 3.22 | perl | Fixed | 5.26.1-r0 | ALPINE-CVE-2017-12837 |
| Alpine Linux 3.21 | perl | Fixed | 5.26.1-r0 | ALPINE-CVE-2017-12837 |
| Alpine Linux 3.20 | perl | Fixed | 5.26.1-r0 | ALPINE-CVE-2017-12837 |
| Alpine Linux 3.19 | perl | Fixed | 5.26.1-r0 | ALPINE-CVE-2017-12837 |
| Alpine Linux 3.18 | perl | Fixed | 5.26.1-r0 | ALPINE-CVE-2017-12837 |
| Alpine Linux 3.17 | perl | Fixed | 5.26.1-r0 | ALPINE-CVE-2017-12837 |
| Alpine Linux 3.16 | perl | Fixed | 5.26.1-r0 | ALPINE-CVE-2017-12837 |
| Alpine Linux 3.15 | perl | Fixed | 5.26.1-r0 | ALPINE-CVE-2017-12837 |
| Alpine Linux 3.14 | perl | Fixed | 5.26.1-r0 | ALPINE-CVE-2017-12837 |
| Alpine Linux 3.13 | perl | Fixed | 5.26.1-r0 | ALPINE-CVE-2017-12837 |
| Alpine Linux 3.12 | perl | Fixed | 5.26.1-r0 | ALPINE-CVE-2017-12837 |
| Alpine Linux 3.11 | perl | Fixed | 5.26.1-r0 | ALPINE-CVE-2017-12837 |
| Alpine Linux 3.10 | perl | Fixed | 5.26.1-r0 | ALPINE-CVE-2017-12837 |
| Alpine Linux 3.9 | perl | Fixed | 5.26.1-r0 | ALPINE-CVE-2017-12837 |
| Alpine Linux 3.8 | perl | Fixed | 5.26.1-r0 | ALPINE-CVE-2017-12837 |
| Alpine Linux 3.7 | perl | Fixed | 5.26.1-r0 | ALPINE-CVE-2017-12837 |
| Alpine Linux 3.6 | perl | Fixed | 5.24.3-r0 | ALPINE-CVE-2017-12837 |
| Alpine Linux 3.5 | perl | Fixed | 5.24.3-r0 | ALPINE-CVE-2017-12837 |
| Alpine Linux 3.4 | perl | Fixed | 5.22.3-r0 | ALPINE-CVE-2017-12837 |
| Alpine Linux 3.3 | perl | Fixed | 5.22.3-r0 | ALPINE-CVE-2017-12837 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- http://www.debian.org/security/2017/dsa-3982 (vendor-advisory)
References
- http://www.debian.org/security/2017/dsa-3982
- http://www.securityfocus.com/bid/100860
- https://www.oracle.com/security-alerts/cpujul2020.html
- https://perl5.git.perl.org/perl.git/log/refs/tags/v5.26.1-RC1
- https://perl5.git.perl.org/perl.git/log/refs/tags/v5.24.3-RC1
- https://security.netapp.com/advisory/ntap-20180426-0001/
- https://bugzilla.redhat.com/show_bug.cgi?id=1492091
- https://rt.perl.org/Public/Bug/Display.html?id=131582
- https://perl5.git.perl.org/perl.git/commitdiff/96c83ed78aeea1a0496dd2b2d935869a822dc8a5
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.