{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-21707","id":"CVE-2021-21707","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 re","descriptionLong":"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.","published":"2021-11-29T06:25:08.814Z","updated":"2026-10-24T10:30:37.596799237Z","reserved":"2021-01-04T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"php","metric":{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"php"},"metrics":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"php"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"php.net"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"OSV"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","rating":"medium","source":"NVD"}],"rating":"medium","products":["PHP Group PHP"],"affectedProducts":[{"vendor":"PHP Group","product":"PHP","defaultStatus":null,"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"}],"platforms":[]}],"packages":[],"cwes":["CWE-159"],"aliases":["BIT-libphp-2021-21707","BIT-php-2021-21707","BIT-php-min-2021-21707"],"references":[{"url":"https://bugs.php.net/bug.php?id=79971","tags":["x_transferred","Exploit","Issue Tracking","Patch","Release Notes","Vendor Advisory","fix"]},{"url":"https://security.netapp.com/advisory/ntap-20211223-0005/","tags":["x_transferred","Third Party Advisory","advisory"]},{"url":"https://www.debian.org/security/2022/dsa-5082","tags":["vendor-advisory","x_transferred","Third Party Advisory","advisory"]},{"url":"https://www.tenable.com/security/tns-2022-09","tags":["x_transferred","Patch","Release Notes","Third Party Advisory","fix"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/12/msg00030.html","tags":["mailing-list","x_transferred","Issue Tracking","Mailing List","report"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.25315,"epssPercentile":0.97981,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-21707","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21707","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-21707","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-21707","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}