{"id":"CVE-2020-7071","state":"PUBLISHED","title":"FILTER_VALIDATE_URL accepts URLs with invalid userinfo","description":"In PHP versions 7.3.x below 7.3.26, 7.4.x below 7.4.14 and 8.0.0, when validating URL with functions like filter_var($url, FILTER_VALIDATE_URL), PHP will accept an URL with invalid password as valid URL. This may lead to functions that rely on URL being valid to mis-parse the URL and produce wrong data as components of the URL.","publishedAt":"2021-02-15T04:10:16.239Z","updatedAt":"2024-09-16T17:28:54.077Z","severity":{"score":5.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","source":"php"},"assigner":"php","products":["PHP Group PHP"],"affected":[{"vendor":"PHP Group","product":"PHP","versions":[{"version":"7.3.x","status":"affected","lessThan":"7.3.26","versionType":"custom"},{"version":"7.4.x","status":"affected","lessThan":"7.4.14","versionType":"custom"},{"version":"8.0.X","status":"affected","lessThan":"8.0.1","versionType":"custom"}]}],"references":["https://bugs.php.net/bug.php?id=77423","https://www.debian.org/security/2021/dsa-4856","https://security.gentoo.org/glsa/202105-23","https://lists.debian.org/debian-lts-announce/2021/07/msg00008.html","https://www.oracle.com/security-alerts/cpuoct2021.html","https://www.tenable.com/security/tns-2021-14","https://security.netapp.com/advisory/ntap-20210312-0005/"],"weaknesses":["CWE-20"],"ingestedAt":"2026-10-29T19:47:41.446Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2020/7xxx/CVE-2020-7071.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2020-7071","state":"PUBLISHED","datePublished":"2021-02-15T04:10:16.239Z","dateUpdated":"2024-09-16T17:28:54.077Z","assignerShortName":"php","assignerOrgId":"dd77f84a-d19a-4638-8c3d-a322d820ed2b","dateReserved":"2020-01-15T00:00:00.000Z"},"containers":{"cna":{"title":"FILTER_VALIDATE_URL accepts URLs with invalid userinfo","descriptions":[{"lang":"en","value":"In PHP versions 7.3.x below 7.3.26, 7.4.x below 7.4.14 and 8.0.0, when validating URL with functions like filter_var($url, FILTER_VALIDATE_URL), PHP will accept an URL with invalid password as valid URL. This may lead to functions that rely on URL being valid to mis-parse the URL and produce wrong data as components of the URL."}],"affected":[{"vendor":"PHP Group","product":"PHP","versions":[{"version":"7.3.x","status":"affected","lessThan":"7.3.26","versionType":"custom"},{"version":"7.4.x","status":"affected","lessThan":"7.4.14","versionType":"custom"},{"version":"8.0.X","status":"affected","lessThan":"8.0.1","versionType":"custom"}]}],"references":[{"url":"https://bugs.php.net/bug.php?id=77423","tags":["x_refsource_MISC"]},{"url":"https://www.debian.org/security/2021/dsa-4856","name":"DSA-4856","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://security.gentoo.org/glsa/202105-23","name":"GLSA-202105-23","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/07/msg00008.html","name":"[debian-lts-announce] 20210715 [SECURITY] [DLA 2708-1] php7.0 security update","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html","tags":["x_refsource_MISC"]},{"url":"https://www.tenable.com/security/tns-2021-14","tags":["x_refsource_CONFIRM"]},{"url":"https://security.netapp.com/advisory/ntap-20210312-0005/","tags":["x_refsource_CONFIRM"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-20","description":"CWE-20 Improper Input Validation","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"php","dateUpdated":"2021-10-20T10:40:15.000Z","orgId":"dd77f84a-d19a-4638-8c3d-a322d820ed2b"},"credits":[{"lang":"en","value":"Reported by  jifan dot jf at alibaba-inc dot com"}],"datePublic":"2021-01-04T00:00:00.000Z","source":{"defect":["https://bugs.php.net/bug.php?id=77423"],"discovery":"EXTERNAL"},"x_generator":{"engine":"Vulnogram 0.0.9"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security@php.net","DATE_PUBLIC":"2021-01-04T17:54:00.000Z","ID":"CVE-2020-7071","STATE":"PUBLIC","TITLE":"FILTER_VALIDATE_URL accepts URLs with invalid userinfo"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"PHP","version":{"version_data":[{"version_affected":"<","version_name":"7.3.x","version_value":"7.3.26"},{"version_affected":"<","version_name":"7.4.x","version_value":"7.4.14"},{"version_affected":"<","version_name":"8.0.X","version_value":"8.0.1"}]}}]},"vendor_name":"PHP Group"}]}},"credit":[{"lang":"eng","value":"Reported by  jifan dot jf at alibaba-inc dot com"}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"In PHP versions 7.3.x below 7.3.26, 7.4.x below 7.4.14 and 8.0.0, when validating URL with functions like filter_var($url, FILTER_VALIDATE_URL), PHP will accept an URL with invalid password as valid URL. This may lead to functions that rely on URL being valid to mis-parse the URL and produce wrong data as components of the URL."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-20 Improper Input Validation"}]}]},"references":{"reference_data":[{"name":"https://bugs.php.net/bug.php?id=77423","refsource":"MISC","url":"https://bugs.php.net/bug.php?id=77423"},{"name":"DSA-4856","refsource":"DEBIAN","url":"https://www.debian.org/security/2021/dsa-4856"},{"name":"GLSA-202105-23","refsource":"GENTOO","url":"https://security.gentoo.org/glsa/202105-23"},{"name":"[debian-lts-announce] 20210715 [SECURITY] [DLA 2708-1] php7.0 security update","refsource":"MLIST","url":"https://lists.debian.org/debian-lts-announce/2021/07/msg00008.html"},{"name":"https://www.oracle.com/security-alerts/cpuoct2021.html","refsource":"MISC","url":"https://www.oracle.com/security-alerts/cpuoct2021.html"},{"name":"https://www.tenable.com/security/tns-2021-14","refsource":"CONFIRM","url":"https://www.tenable.com/security/tns-2021-14"},{"name":"https://security.netapp.com/advisory/ntap-20210312-0005/","refsource":"CONFIRM","url":"https://security.netapp.com/advisory/ntap-20210312-0005/"}]},"source":{"defect":["https://bugs.php.net/bug.php?id=77423"],"discovery":"EXTERNAL"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://bugs.php.net/bug.php?id=77423","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://www.debian.org/security/2021/dsa-4856","name":"DSA-4856","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"https://security.gentoo.org/glsa/202105-23","name":"GLSA-202105-23","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/07/msg00008.html","name":"[debian-lts-announce] 20210715 [SECURITY] [DLA 2708-1] php7.0 security update","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://www.tenable.com/security/tns-2021-14","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20210312-0005/","tags":["x_refsource_CONFIRM","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T09:18:03.040Z"}}]}}}