Skip to content
Fencer Vulns
high 7.8

CVE-2017-7246 json

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…

published 2017-03-23 9 y ago modified 2026-06-17 4 mo ago also EUVD-2017-16278

cvss
7.8
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
2.6%
EPSS 2.6% chance of exploitation in 30 days, percentile 85%
public exploits
0
none known

Summary

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 268) or possibly have unspecified other impact via a crafted file.

Patch / fix

  • pcre SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES for SAP 12 SP3 +15 more 8.45-8.7.1
  • selinux-policy SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES for SAP 12 SP3 +11 more 20140730-36.5.2

suse advisories SUSE-SU-2021:3652-1

  • pcre Alpine 3.6 8.41-r0

alpine advisories ALPINE-CVE-2017-7246

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • pcre Arch Linux 8.41-1

arch linux advisories AVG-222

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2017-7246 updated cvss 3.7

pcre: stack-based buffer overflow write in pcre32_copy_substring

  • Red Hat Enterprise Linux 5 pcre Red Hat Enterprise Linux 6 pcre, glib2 Red Hat Enterprise Linux 7 pcre, glib2, glib2-fam, pcre-tools, glib2-tests, virtuoso-opensource, +1 more Red Hat JBoss Enterprise Web Server 1 httpd Red Hat JBoss Enterprise Web Server 2 jbcs-httpd24, jbcs-httpd24-runtime Red Hat JBoss Enterprise Web Server 3 httpd
    +1 more products
    Red Hat Software Collections rh-php56-php, rh-php70-php, rh-php56-php-gd, rh-php70-php-gd, rh-php56-php-cli, rh-php56-php-dba, +69 more
    affected: no fix planned “Will not fix”
  • Red Hat JBoss Core Services
    fixed: vendor fix RHSA-2018:2486
  • Red Hat Enterprise Linux 7 pcre2, pcre2-tools, pcre2-utf16, pcre2-utf32 Red Hat JBoss Web Server 3 pcre
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

2.60% chance of exploitation in the next 30 days, higher than 85% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.0 7.8 CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD 2.0 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P

Classification

Weakness
  • CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.