Skip to main content
No exploitation reportedFix available

CVE-2016-10397

No exploitation reported by the sources we read.

  • Published2017-07-10
  • WeaknessCWE-20

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

In PHP before 5.6.28 and 7.x before 7.0.13, incorrect handling of various URI components in the URL parser could be used by attackers to bypass hostname-specific URL checks, as demonstrated by evil.example.com:80#@good.example.com/ and evil.example.com:80?@good.example.com/ inputs to the parse_url function (implemented in the php_url_parse_ex function in ext/standard/url.c).

Timeline

dates in UTC
  1. 2017-07-1014:29CVE publishedNVD

Versions per branch

NVD
PHP
BranchAffectedFixed in
5.6≤ 5.6.27no fix published
7.0= 7.0.0no fix published
7.0= 7.0.1no fix published
7.0= 7.0.2no fix published
7.0= 7.0.3no fix published
7.0= 7.0.4no fix published
7.0= 7.0.5no fix published
7.0= 7.0.6no fix published
7.0= 7.0.7no fix published
7.0= 7.0.8no fix published
7.0= 7.0.9no fix published
7.0= 7.0.10no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • php5Ubuntu:14.04:LTSall versions · fixed in 5.5.9+dfsg-1ubuntu4.22
  • php5SUSE:Linux Enterprise Software Development Kit 12 SP3all versions · fixed in 5.5.14-109.5.1
  • php5SUSE:Linux Enterprise Software Development Kit 12 SP2all versions · fixed in 5.5.14-109.5.1
  • php5SUSE:Linux Enterprise Module for Web and Scripting 12all versions · fixed in 5.5.14-109.5.1
  • php5Debian:7all versions · fixed in 5.4.45-0+deb7u9
  • php53SUSE:Linux Enterprise Software Development Kit 11 SP4all versions · fixed in 5.3.17-112.5.1
  • php53SUSE:Linux Enterprise Server for SAP Applications 11 SP4all versions · fixed in 5.3.17-112.5.1
  • php53SUSE:Linux Enterprise Server 11 SP4all versions · fixed in 5.3.17-112.5.1

4 more package ranges on OSV.dev

Vendor advisories

  • CVE-2016-10397 Red Hat Product Security119 known affected

    php: Incorrect handling of URI components in URL parser

    php.src as a component of Red Hat Enterprise Linux 5 · php53.src as a component of Red Hat Enterprise Linux 5 · php as a component of Red Hat Enterprise Linux 6 · +116 more

Full record on NVD

Fix

  1. No fix planned, says the vendor Red Hat Product Security CVE-2016-10397 · 119 productsWill not fix

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Published
2017-07-10
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-25h5-rq96-q5mq

Frequently asked questions

What is CVE-2016-10397?

In PHP before 5.6.28 and 7.x before 7.0.13, incorrect handling of various URI components in the URL parser could be used by attackers to bypass hostname-specific URL checks, as demonstrated by evil.example.com:80#@good.example.com/ and evil.example.com:80?@good.example.com/ inputs to the parse_url function (implemented in the php_url_parse_ex function in ext/standard/url.c).

Is CVE-2016-10397 actively exploited?

Active exploitation of CVE-2016-10397 has not been confirmed. Its EPSS score was 1.9% on 2026-11-16, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2016-10397?

CVE-2016-10397 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.

Running PHP? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record