CVE-2017-8786
CVE-2017-8786 is a critical-severity vulnerability in Pcre Pcre2 with a CVSS 3.x base score of 9.8. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-119.
Key facts
- Severity: Critical (CVSS 3.x base score 9.8)
- CVSS v2: 7.5
- EPSS exploit prediction: 4% (89th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-119
- Affected product: Pcre Pcre2
- Published:
- Last modified:
Description
pcre2test.c in PCRE2 10.23 allows remote attackers to cause a denial of service (heap-based buffer overflow) or possibly have unspecified other impact via a crafted regular expression.
Frequently asked questions
- What is CVE-2017-8786?
- pcre2test.c in PCRE2 10.23 allows remote attackers to cause a denial of service (heap-based buffer overflow) or possibly have unspecified other impact via a crafted regular expression.
- How severe is CVE-2017-8786?
- CVE-2017-8786 has a CVSS 3.x base score of 9.8, rated critical severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2017-8786 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 4% (89th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2017-8786?
- CVE-2017-8786 affects Pcre Pcre2. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2017-8786?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
- When was CVE-2017-8786 published?
- CVE-2017-8786 was published on 2017-05-05 and last updated on 2026-06-17.
References
- https://blogs.gentoo.org/ago/2017/04/29/libpcre-heap-based-buffer-overflow-write-in-pcre2test-c/
- https://bugs.exim.org/show_bug.cgi?id=2079
- https://security.gentoo.org/glsa/201710-09
- https://vcs.pcre.org/pcre2?view=revision&revision=696
- https://vcs.pcre.org/pcre2?view=revision&revision=697
Affected products (1)
- cpe:2.3:a:pcre:pcre2:10.23:*:*:*:*:*:*:*
More vulnerabilities in Pcre Pcre2
- CVE-2017-8399 — Critical (CVSS 9.8): PCRE2 before 10.30 has an out-of-bounds write caused by a stack-based buffer overflow in pcre2_match.c, related to a…
- CVE-2015-3210 — Critical (CVSS 9.8): Heap-based buffer overflow in PCRE 8.34 through 8.37 and PCRE2 10.10 allows remote attackers to execute arbitrary code…
- CVE-2016-3191 — Critical (CVSS 9.8): The compile_branch function in pcre_compile.c in PCRE 8.x before 8.39 and pcre2_compile.c in PCRE2 before 10.22…
- CVE-2025-58050 — Critical (CVSS 9.1): The PCRE2 library is a set of C functions that implement regular expression pattern matching. In version 10.45, a…
- CVE-2022-1587 — Critical (CVSS 9.1): An out-of-bounds read vulnerability was discovered in the PCRE2 library in the get_recurse_data_length() function of…
- CVE-2022-1586 — Critical (CVSS 9.1): An out-of-bounds read vulnerability was discovered in the PCRE2 library in the compile_xclass_matchingpath() function…
All CVEs affecting Pcre Pcre2 →
Other CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer) vulnerabilities
- CVE-2026-2778 — Critical (CVSS 10.0): Sandbox escape due to incorrect boundary conditions in the DOM: Core & HTML component. This vulnerability was fixed in…
- CVE-2026-2776 — Critical (CVSS 10.0): Sandbox escape due to incorrect boundary conditions in the Telemetry component in External Software. This vulnerability…
- CVE-2025-1866 — Critical (CVSS 10.0): Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in warmcat libwebsockets allows…
- CVE-2022-27625 — Critical (CVSS 10.0): A vulnerability regarding improper restriction of operations within the bounds of a memory buffer is found in the…
- CVE-2022-27624 — Critical (CVSS 10.0): A vulnerability regarding improper restriction of operations within the bounds of a memory buffer is found in the…
- CVE-2020-11896 — Critical (CVSS 10.0): The Treck TCP/IP stack before 6.0.1.66 allows Remote Code Execution, related to IPv4 tunneling.