High
Security advisory
PHP through 7.1.11 enables potential SSRF in applications that accept an fsockopen or pfsockopen hostname argument with an expectation that the port number is constrained. Because a :port syntax is recognized, fsockopen will use the port number that is specified in the hostname argument, instead of the port number in the second argument of the function.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2017-7272
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:26 UTC · Revision 1
Source evidence
PHP through 7.1.11 enables potential SSRF in applications that accept an fsockopen or pfsockopen hostname argument with an expectation that the port number is constrained. Because a :port syntax is recognized, fsockopen will use the port number that is specified in the hostname argument, instead of the port number in the second argument of the function.
osv:CVE-2017-7272
Complete source record
{
"id": "51aa2d750f890af96300dd2267e8d19739e1d2278202ac02dfc5aa677d7ce995",
"url": "https://osv.dev/vulnerability/CVE-2017-7272",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2017-7272",
"summary": "PHP through 7.1.11 enables potential SSRF in applications that accept an fsockopen or pfsockopen hostname argument with an expectation that the port number is constrained. Because a :port syntax is recognized, fsockopen will use the port number that is specified in the hostname argument, instead of the port number in the second argument of the function.",
"evidence": "osv:CVE-2017-7272",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2017-7272",
"aliases": [
"CVE-2017-7272"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/php/php-src",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "9f1492bb895ce297c660bde3fabb5e27a20a7cbd"
},
{
"fixed": "bab0b99f376dac9170ac81382a5ed526938d595a"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "7.1.3"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "bab0b99f376dac9170ac81382a5ed526938d595a"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"php-7.1.3",
"php-7.1.3RC1",
"POST_PHP7_NSAPI_REMOVAL",
"PRE_PHP7_NSAPI_REMOVAL",
"PRE_PHP7_EREG_MYSQL_REMOVALS",
"PRE_PHP7_REMOVALS",
"POST_PHP7_REMOVALS",
"POST_AST_MERGE",
"PRE_AST_MERGE",
"POST_64BIT_BRANCH_MERGE",
"PRE_64BIT_BRANCH_MERGE",
"POST_PHPNG_MERGE"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-7272.json",
"vanir_signatures": [
{
"id": "CVE-2017-7272-0367c050",
"digest": {
"length": 813,
"function_hash": "25954418537993354906810679751706881010"
},
"source": "https://github.com/php/php-src/commit/bab0b99f376dac9170ac81382a5ed526938d595a",
"target": {
"file": "main/streams/xp_socket.c",
"function": "parse_ip_address_ex"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2017-7272-dd7e2968",
"digest": {
"threshold": 0.9,
"line_hashes": [
"96925839583532923982964231240844440937",
"58623572596228789776196651253671782112",
"135633014013098575755473646959568394835",
"166067641592944639392872254756214638324",
"100267658189387310072607059763441990347",
"327358159792768892130981194478376054044",
"851378121682662920468238894861988364",
"314577343906733442472633894765041464525",
"290488536648167433946729631960172792882",
"304277819284939497559048954425926759404",
"45361655755660409058900151378956781579",
"98380177259299385082119401059192850571",
"140857132125336533406313044813972857154",
"138930420433345886720982775165105305311",
"129429535438291653056969661213468792129",
"150705046247528685625465905092658606036",
"98721154362060048170613768024767904140",
"186325265072741337767185550146872526890",
"258922995148387736732108437600871178305",
"295665630112481776732720450406535204466",
"177770387157668607946762550750247977680",
"215979603786398871912267452495927398013",
"58699980153549850152597795615477593300",
"179313615582318253927815754520587468813",
"76616369875822220412912373158154491791",
"42934769745497914088808172732736984029",
"45502358789397159925983817023527663213",
"279942236296071536843151426932711459991",
"76307502023617010035481115789412140546",
"6548854012503520523054358386376574142",
"126808480897197276431818706293417770633"
]
},
"source": "https://github.com/php/php-src/commit/bab0b99f376dac9170ac81382a5ed526938d595a",
"target": {
"file": "main/streams/xp_socket.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T13:32:31Z"
}
}
],
"modified": "2026-10-20T13:32:31.658305178Z",
"provider": "osv",
"references": [
"https://bugs.php.net/bug.php?id=75505",
"https://security.netapp.com/advisory/ntap-20180112-0001/",
"https://www.sec-consult.com/fxdata/seccons/prod/temedia/advisories_txt/20170403-0_PHP_Misbehavior_of_fsockopen_function_v10.txt",
"https://bugs.php.net/bug.php?id=74216",
"https://github.com/php/php-src/commit/bab0b99f376dac9170ac81382a5ed526938d595a"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2017-7272",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 387794,
"published_at": "2017-03-27T17:59:00.977+00:00"
}