CVE-2017-7245: Stack-based buffer overflow in the pcre32_copy_substring function in pcre_get.c in libpcre1 in PCRE 8.40 allow
CVE-2017-7245 is a high-severity flaw (CVSS 7.8) affecting pcre. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
Stack-based buffer overflow in the pcre32_copy_substring function in pcre_get.c in libpcre1 in PCRE 8.40 allows remote attackers to cause a denial of service (WRITE of size 4) or possibly have unspecified other impact via a crafted file.
Why this priority
- High severity
No fix is published yet: follow the downgrade or mitigation steps.
Risk facts
| CVSS score | 7.8 (High) |
| Attack vector | Local |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 2.4% (top 16%) |
| CISA exploited list | No |
| Weakness | CWE-119 |
| Published | 2017-03-23 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2017-7245?
pcre: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2017-7245 being exploited?
CVE-2017-7245 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2017-7245 affect?
CVE-2017-7245 affects pcre. Severity is high (CVSS 7.8). Stack-based buffer overflow in the pcre32_copy_substring function in pcre_get.c in libpcre1 in PCRE 8.40 allows remote attackers to cause a denial of service (WRITE of size 4) or possibly have unspecified other impact via a crafted file.
How urgent is CVE-2017-7245?
Priority 48/100. High severity
Related CVEs
- CVE-2019-20838 HIGH 7.5 UPGRADE UPGRADE libpcre in PCRE before 8.43 allows a subject buffer over-read in JIT when UTF is disabled, and \X or \R has mo
- CVE-2020-14155 MEDIUM 5.3 UPGRADE UPGRADE libpcre in PCRE before 8.44 allows an integer overflow via a large number after a (?C substring.
- CVE-2017-7246 HIGH 7.8 DOWNGRADE Stack-based buffer overflow in the pcre32_copy_substring function in pcre_get.c in libpcre1 in PCRE 8.40 allow
- CVE-2017-7244 MEDIUM 5.5 DOWNGRADE The _pcre32_xclass function in pcre_xclass.c in libpcre1 in PCRE 8.40 allows remote attackers to cause a denia
- CVE-2017-7186 HIGH 7.5 DOWNGRADE DOWNGRADE libpcre1 in PCRE 8.40 and libpcre2 in PCRE2 10.23 allow remote attackers to cause a denial of service (segment