cve.bz

CVE-2017-9118 Out-of-bounds Read

7.5 highExploit referenceEPSS 3.0%

High (7.5). EPSS 3.0% estimated probability of exploitation activity in the next 30 days.

On this page
PHP 7.1.5 has an Out of bounds access in php_pcre_replace_impl via a crafted preg_replace call.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
3.0% (unchanged from 3.0% a week ago; 3.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 88th percentile. Scored 2026-11-25. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-125 Out-of-bounds Read
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2017-9118 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2017-9118?via=ask-ai-copy and https://cve.bz/cve/CVE-2017-9118?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2017-9118 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
php:phpfrom 7.4.0 before 7.4.27
php:phpfrom 8.0.0 before 8.0.14
php:phpfrom 8.1.0 before 8.1.1
php:php7.1.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu18.04:LTSphp7.27.2.24-0ubuntu0.18.04.11UBUNTU-CVE-2017-9118 USN-5300-2
Ubuntu20.04:LTSphp7.47.4.3-4ubuntu2.10UBUNTU-CVE-2017-9118 USN-5300-2
Ubuntu22.04:LTSphp8.18.1.2-1ubuntu1UBUNTU-CVE-2017-9118
UbuntuPro:14.04:LTSphp5no fix listedUBUNTU-CVE-2017-9118
UbuntuPro:16.04:LTSphp7.07.0.33-0ubuntu0.16.04.16+esm3UBUNTU-CVE-2017-9118 USN-5300-1
Red Hatrhel_software_collections:3::el7rh-php71-php, rh-php71-php-gd, rh-php71-php-cli and 27 more0:7.1.30-1.el7RHSA-2019:2519
SUSELinux Enterprise Module for Web and Scripting 12, Linux Enterprise Software Development Kit 12 SP3php55.5.14-109.38.1SUSE-SU-2018:2682-1
SUSELinux Enterprise Module for Web and Scripting 12, Linux Enterprise Software Development Kit 12 SP3php77.0.7-50.49.1SUSE-SU-2018:2640-1
SUSELinux Enterprise Server 11 SP4, Linux Enterprise Server for SAP Applications 11 SP4, Linux Enterprise Software Development Kit 11 SP4php535.3.17-112.38.1SUSE-SU-2018:2681-1

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu · Red Hat · SUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-php71-php-0:7.1.30-1.el7Fixed 2019-08-19RHSA-2019:2519
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUSrh-php71-php-0:7.1.30-1.el7Fixed 2019-08-19RHSA-2019:2519
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUSrh-php71-php-0:7.1.30-1.el7Fixed 2019-08-19RHSA-2019:2519
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSrh-php71-php-0:7.1.30-1.el7Fixed 2019-08-19RHSA-2019:2519
Red Hat Enterprise Linux 5phpNot affected
Red Hat Enterprise Linux 5php53Will not fix
Red Hat Enterprise Linux 6phpWill not fix
Red Hat Enterprise Linux 7phpAffected
Red Hat Enterprise Linux 8phpWill not fix
Red Hat Software Collectionsrh-php70-phpAffected
Red Hat Software Collectionsrh-php72-phpAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2017-9118.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON