{"id":"CVE-2020-7066","state":"PUBLISHED","title":"get_headers() silently truncates after a null byte","description":"In PHP versions 7.2.x below 7.2.29, 7.3.x below 7.3.16 and 7.4.x below 7.4.4, while using get_headers() with user-supplied URL, if the URL contains zero (\\0) character, the URL will be silently truncated at it. This may cause some software to make incorrect assumptions about the target of the get_headers() and possibly send some information to a wrong server.","publishedAt":"2020-04-01T03:35:14.021Z","updatedAt":"2024-09-17T01:51:01.194Z","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.2.x below 7.2.29","status":"affected"},{"version":"7.3.x below 7.3.16","status":"affected"},{"version":"7.4.x below 7.4.4","status":"affected"}]}],"references":["https://bugs.php.net/bug.php?id=79329","https://security.netapp.com/advisory/ntap-20200403-0001/","https://lists.debian.org/debian-lts-announce/2020/04/msg00021.html","https://usn.ubuntu.com/4330-2/","http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00025.html","https://www.debian.org/security/2020/dsa-4717","https://www.debian.org/security/2020/dsa-4719","https://www.tenable.com/security/tns-2021-14"],"weaknesses":["CWE-170"],"ingestedAt":"2026-10-29T19:47:41.446Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2020/7xxx/CVE-2020-7066.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2020-7066","state":"PUBLISHED","datePublished":"2020-04-01T03:35:14.021Z","dateUpdated":"2024-09-17T01:51:01.194Z","assignerShortName":"php","assignerOrgId":"dd77f84a-d19a-4638-8c3d-a322d820ed2b","dateReserved":"2020-01-15T00:00:00.000Z"},"containers":{"cna":{"title":"get_headers() silently truncates after a null byte","descriptions":[{"lang":"en","value":"In PHP versions 7.2.x below 7.2.29, 7.3.x below 7.3.16 and 7.4.x below 7.4.4, while using get_headers() with user-supplied URL, if the URL contains zero (\\0) character, the URL will be silently truncated at it. This may cause some software to make incorrect assumptions about the target of the get_headers() and possibly send some information to a wrong server."}],"affected":[{"vendor":"PHP Group","product":"PHP","versions":[{"version":"7.2.x below 7.2.29","status":"affected"},{"version":"7.3.x below 7.3.16","status":"affected"},{"version":"7.4.x below 7.4.4","status":"affected"}]}],"references":[{"url":"https://bugs.php.net/bug.php?id=79329","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20200403-0001/","tags":["x_refsource_CONFIRM"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/04/msg00021.html","name":"[debian-lts-announce] 20200426 [SECURITY] [DLA 2188-1] php5 security update","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://usn.ubuntu.com/4330-2/","name":"USN-4330-2","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00025.html","name":"openSUSE-SU-2020:0642","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"https://www.debian.org/security/2020/dsa-4717","name":"DSA-4717","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://www.debian.org/security/2020/dsa-4719","name":"DSA-4719","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://www.tenable.com/security/tns-2021-14","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-170","description":"CWE-170 Improper Null Termination","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"php","dateUpdated":"2021-07-22T17:06:30.000Z","orgId":"dd77f84a-d19a-4638-8c3d-a322d820ed2b"},"credits":[{"lang":"en","value":"64796c6e69 at gmail dot com"}],"datePublic":"2020-03-17T00:00:00.000Z","source":{"defect":["https://bugs.php.net/bug.php?id=79329"],"discovery":"EXTERNAL"},"x_generator":{"engine":"Vulnogram 0.0.9"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security@php.net","DATE_PUBLIC":"2020-03-17T05:39:00.000Z","ID":"CVE-2020-7066","STATE":"PUBLIC","TITLE":"get_headers() silently truncates after a null byte"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"PHP","version":{"version_data":[{"version_value":"7.2.x below 7.2.29"},{"version_value":"7.3.x below 7.3.16"},{"version_value":"7.4.x below 7.4.4"}]}}]},"vendor_name":"PHP Group"}]}},"credit":[{"lang":"eng","value":"64796c6e69 at gmail dot com"}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"In PHP versions 7.2.x below 7.2.29, 7.3.x below 7.3.16 and 7.4.x below 7.4.4, while using get_headers() with user-supplied URL, if the URL contains zero (\\0) character, the URL will be silently truncated at it. This may cause some software to make incorrect assumptions about the target of the get_headers() and possibly send some information to a wrong server."}]},"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-170 Improper Null Termination"}]}]},"references":{"reference_data":[{"name":"https://bugs.php.net/bug.php?id=79329","refsource":"MISC","url":"https://bugs.php.net/bug.php?id=79329"},{"name":"https://security.netapp.com/advisory/ntap-20200403-0001/","refsource":"CONFIRM","url":"https://security.netapp.com/advisory/ntap-20200403-0001/"},{"name":"[debian-lts-announce] 20200426 [SECURITY] [DLA 2188-1] php5 security update","refsource":"MLIST","url":"https://lists.debian.org/debian-lts-announce/2020/04/msg00021.html"},{"name":"USN-4330-2","refsource":"UBUNTU","url":"https://usn.ubuntu.com/4330-2/"},{"name":"openSUSE-SU-2020:0642","refsource":"SUSE","url":"http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00025.html"},{"name":"DSA-4717","refsource":"DEBIAN","url":"https://www.debian.org/security/2020/dsa-4717"},{"name":"DSA-4719","refsource":"DEBIAN","url":"https://www.debian.org/security/2020/dsa-4719"},{"name":"https://www.tenable.com/security/tns-2021-14","refsource":"CONFIRM","url":"https://www.tenable.com/security/tns-2021-14"}]},"source":{"defect":["https://bugs.php.net/bug.php?id=79329"],"discovery":"EXTERNAL"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://bugs.php.net/bug.php?id=79329","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20200403-0001/","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/04/msg00021.html","name":"[debian-lts-announce] 20200426 [SECURITY] [DLA 2188-1] php5 security update","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"https://usn.ubuntu.com/4330-2/","name":"USN-4330-2","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00025.html","name":"openSUSE-SU-2020:0642","tags":["vendor-advisory","x_refsource_SUSE","x_transferred"]},{"url":"https://www.debian.org/security/2020/dsa-4717","name":"DSA-4717","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"https://www.debian.org/security/2020/dsa-4719","name":"DSA-4719","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"https://www.tenable.com/security/tns-2021-14","tags":["x_refsource_CONFIRM","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T09:18:03.072Z"}}]}}}