{"id":"CVE-2021-21707","state":"PUBLISHED","title":"Special characters break path parsing in XML functions","description":"In PHP versions 7.3.x below 7.3.33, 7.4.x below 7.4.26 and 8.0.x below 8.0.13, certain XML parsing functions, like simplexml_load_file(), URL-decode the filename passed to them. If that filename contains URL-encoded NUL character, this may cause the function to interpret this as the end of the filename, thus interpreting the filename differently from what the user intended, which may lead it to reading a different file than intended.","publishedAt":"2021-11-29T06:25:08.814Z","updatedAt":"2024-09-17T03:38:22.394Z","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.33","versionType":"custom"},{"version":"7.4.x","status":"affected","lessThan":"7.4.26","versionType":"custom"},{"version":"8.0.X","status":"affected","lessThan":"8.0.13","versionType":"custom"}]}],"references":["https://bugs.php.net/bug.php?id=79971","https://security.netapp.com/advisory/ntap-20211223-0005/","https://www.debian.org/security/2022/dsa-5082","https://www.tenable.com/security/tns-2022-09","https://lists.debian.org/debian-lts-announce/2022/12/msg00030.html"],"weaknesses":["CWE-159"],"ingestedAt":"2026-10-29T19:47:59.168Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/21xxx/CVE-2021-21707.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-21707","state":"PUBLISHED","datePublished":"2021-11-29T06:25:08.814Z","dateUpdated":"2024-09-17T03:38:22.394Z","assignerShortName":"php","assignerOrgId":"dd77f84a-d19a-4638-8c3d-a322d820ed2b","dateReserved":"2021-01-04T00:00:00.000Z"},"containers":{"cna":{"title":"Special characters break path parsing in XML functions","descriptions":[{"lang":"en","value":"In PHP versions 7.3.x below 7.3.33, 7.4.x below 7.4.26 and 8.0.x below 8.0.13, certain XML parsing functions, like simplexml_load_file(), URL-decode the filename passed to them. If that filename contains URL-encoded NUL character, this may cause the function to interpret this as the end of the filename, thus interpreting the filename differently from what the user intended, which may lead it to reading a different file than intended."}],"affected":[{"vendor":"PHP Group","product":"PHP","versions":[{"version":"7.3.x","status":"affected","lessThan":"7.3.33","versionType":"custom"},{"version":"7.4.x","status":"affected","lessThan":"7.4.26","versionType":"custom"},{"version":"8.0.X","status":"affected","lessThan":"8.0.13","versionType":"custom"}]}],"references":[{"url":"https://bugs.php.net/bug.php?id=79971"},{"url":"https://security.netapp.com/advisory/ntap-20211223-0005/"},{"url":"https://www.debian.org/security/2022/dsa-5082","name":"DSA-5082","tags":["vendor-advisory"]},{"url":"https://www.tenable.com/security/tns-2022-09"},{"url":"https://lists.debian.org/debian-lts-announce/2022/12/msg00030.html","name":"[debian-lts-announce] 20221215 [SECURITY] [DLA 3243-1] php7.3 security update","tags":["mailing-list"]}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-159","type":"CWE","lang":"en","description":"CWE-159 Failure to Sanitize Special Element"}]}],"providerMetadata":{"shortName":"php","orgId":"dd77f84a-d19a-4638-8c3d-a322d820ed2b","dateUpdated":"2022-12-15T00:00:00.000Z"},"datePublic":"2021-11-15T00:00:00.000Z","credits":[{"lang":"en","value":"Reported by rawataman6525 at gmail dot com"}],"x_generator":{"engine":"Vulnogram 0.0.9"},"source":{"advisory":"https://bugs.php.net/bug.php?id=79971","defect":["https://bugs.php.net/bug.php?id=79971"],"discovery":"EXTERNAL"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://bugs.php.net/bug.php?id=79971","tags":["x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20211223-0005/","tags":["x_transferred"]},{"url":"https://www.debian.org/security/2022/dsa-5082","name":"DSA-5082","tags":["vendor-advisory","x_transferred"]},{"url":"https://www.tenable.com/security/tns-2022-09","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/12/msg00030.html","name":"[debian-lts-announce] 20221215 [SECURITY] [DLA 3243-1] php7.3 security update","tags":["mailing-list","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T18:23:28.471Z"}}]}}}