CVE-2017-7246: Input Validation

Published Mar 23, 2017
·
Updated

A stack-based buffer overflow flaw was found in PCRE. An attacker could use a crafted file that, when processed by PCRE, would crash the application using the PCRE library.

This issue only affects the PCRE version 8.40.

Other sources

Stack-based buffer overflow in the pcre32copysubstring function in pcreget.c in libpcre1 in PCRE 8.40 allows remote attackers to cause a denial of service (WRITE of size 268) or possibly have unspecified other impact via a crafted file.

Affected Software

1 affected component
PCRE PCRE=8.40

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade PCRE (libpcre1) to a version that resolves this vulnerability.

    Fixed in 8.40
  2. Compensating control

    For systems using PCRE 8.40, block remote processing of attacker-controlled files/inputs until PCRE is updated, to prevent crashes triggered by crafted files.

Event History

Mar 23, 2017
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
CVE Published
via MITRE·09:00 PM
Data Sourced
via MITRE·09:00 PM
Description
Data Sourced
via NVD·09:59 PM
DescriptionSeverityWeaknessAffected Software
Mar 30, 2017
Data Sourced
via Red Hat·08:14 AM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2017-7246?

CVE-2017-7246 is classified as a medium severity vulnerability due to the potential for a stack-based buffer overflow.

2

How do I fix CVE-2017-7246?

To fix CVE-2017-7246, upgrade to a newer version of the PCRE library that is not affected by this vulnerability.

3

What causes the CVE-2017-7246 vulnerability?

CVE-2017-7246 is caused by a stack-based buffer overflow in the pcre32_copy_substring function when processing crafted files.

4

Which version of PCRE is affected by CVE-2017-7246?

Only PCRE version 8.40 is affected by CVE-2017-7246.

5

What are the potential impacts of CVE-2017-7246?

The potential impacts of CVE-2017-7246 include application crashes and possible arbitrary code execution if exploited.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203