{"id":"CVE-2019-11045","published":"2019-12-23T02:40:17Z","modified":"2024-09-16T17:32:41Z","title":"DirectoryIterator class silently truncates after a null byte","vendor":"PHP","product":"PHP","tier":"tail","description":{"text":"In PHP versions 7.2.x below 7.2.26, 7.3.x below 7.3.13 and 7.4.0, PHP DirectoryIterator class accepts filenames with embedded \\0 byte and treats them as terminating at that byte. This could lead to security vulnerabilities, e.g. in applications checking paths that the code is allowed to access.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.7,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.08818,"percentile":0.95309,"provenance":"source"},"cwes":[{"id":"CWE-170","name":"Improper Null Termination"}],"references":[{"url":"https://bugs.php.net/bug.php?id=78863","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/12/msg00034.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://security.netapp.com/advisory/ntap-20200103-0002/","tags":["x_refsource_CONFIRM"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/N7GCOAE6KVHYJ3UQ4KLPLTGSLX6IRVRN/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XWRQPYXVG43Q7DXMXH6UVWMKWGUW552F/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://usn.ubuntu.com/4239-1/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00036.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"https://seclists.org/bugtraq/2020/Feb/27","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"https://www.debian.org/security/2020/dsa-4626","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://www.debian.org/security/2020/dsa-4628","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://seclists.org/bugtraq/2020/Feb/31","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"https://seclists.org/bugtraq/2021/Jan/3","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"https://www.tenable.com/security/tns-2021-14","tags":["x_refsource_CONFIRM"]}],"priority":{"score":21.7,"factors":[{"name":"EPSS percentile","points":19.06},{"name":"CVSS severity","points":2.59}]},"vendorSlug":"php","affectedVersions":[{"vendor":"PHP Group","product":"PHP","versions":[">= 7.2.x, < 7.2.26",">= 7.3.x, < 7.3.13",">= 7.4.x, < 7.4.1"]}],"summary":{"text":"The DirectoryIterator class in PHP (in the PHP product itself) silently truncates filenames containing an embedded null byte, treating the name as ending at that byte. An attacker who can supply a crafted filename to an application that uses DirectoryIterator can cause path checks to validate a different path than the one actually accessed, and this requires no authentication or user interaction, though the attack is considered complex to carry out.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:14:06Z"},"euvd":{"id":"EUVD-2019-2753","exploited":false,"provenance":"source"}}