{"id":"CVE-2019-11045","state":"PUBLISHED","title":"DirectoryIterator class silently truncates after a null byte","description":"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.","publishedAt":"2019-12-23T02:40:17.130Z","updatedAt":"2024-09-16T17:32:41.178Z","severity":{"score":3.7,"label":"Low","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/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","status":"affected","lessThan":"7.2.26","versionType":"custom"},{"version":"7.3.x","status":"affected","lessThan":"7.3.13","versionType":"custom"},{"version":"7.4.x","status":"affected","lessThan":"7.4.1","versionType":"custom"}]}],"references":["https://bugs.php.net/bug.php?id=78863","https://lists.debian.org/debian-lts-announce/2019/12/msg00034.html","https://security.netapp.com/advisory/ntap-20200103-0002/","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/N7GCOAE6KVHYJ3UQ4KLPLTGSLX6IRVRN/","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XWRQPYXVG43Q7DXMXH6UVWMKWGUW552F/","https://usn.ubuntu.com/4239-1/","http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00036.html","https://seclists.org/bugtraq/2020/Feb/27","https://www.debian.org/security/2020/dsa-4626","https://www.debian.org/security/2020/dsa-4628","https://seclists.org/bugtraq/2020/Feb/31","https://seclists.org/bugtraq/2021/Jan/3","https://www.tenable.com/security/tns-2021-14"],"weaknesses":["CWE-170"],"ingestedAt":"2026-10-29T19:45:22.458Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2019/11xxx/CVE-2019-11045.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2019-11045","state":"PUBLISHED","datePublished":"2019-12-23T02:40:17.130Z","dateUpdated":"2024-09-16T17:32:41.178Z","assignerShortName":"php","assignerOrgId":"dd77f84a-d19a-4638-8c3d-a322d820ed2b","dateReserved":"2019-04-09T00:00:00.000Z"},"containers":{"cna":{"title":"DirectoryIterator class silently truncates after a null byte","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"PHP Group","product":"PHP","versions":[{"version":"7.2.x","status":"affected","lessThan":"7.2.26","versionType":"custom"},{"version":"7.3.x","status":"affected","lessThan":"7.3.13","versionType":"custom"},{"version":"7.4.x","status":"affected","lessThan":"7.4.1","versionType":"custom"}]}],"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","name":"[debian-lts-announce] 20191229 [SECURITY] [DLA 2050-1] php5 security update","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/","name":"FEDORA-2019-437d94e271","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XWRQPYXVG43Q7DXMXH6UVWMKWGUW552F/","name":"FEDORA-2019-a54a622670","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://usn.ubuntu.com/4239-1/","name":"USN-4239-1","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00036.html","name":"openSUSE-SU-2020:0080","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"https://seclists.org/bugtraq/2020/Feb/27","name":"20200218 [SECURITY] [DSA 4626-1] php7.3 security update","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"https://www.debian.org/security/2020/dsa-4626","name":"DSA-4626","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://www.debian.org/security/2020/dsa-4628","name":"DSA-4628","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://seclists.org/bugtraq/2020/Feb/31","name":"20200219 [SECURITY] [DSA 4628-1] php7.0 security update","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"https://seclists.org/bugtraq/2021/Jan/3","name":"20210116 Re: [SECURITY] [DSA 4628-1] php7.0 security update","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"https://www.tenable.com/security/tns-2021-14","tags":["x_refsource_CONFIRM"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":3.7,"baseSeverity":"LOW","confidentialityImpact":"LOW","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/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:43.000Z","orgId":"dd77f84a-d19a-4638-8c3d-a322d820ed2b"},"credits":[{"lang":"en","value":"Submitted by ryat at php.net"}],"datePublic":"2019-12-17T00:00:00.000Z","source":{"defect":["https://bugs.php.net/bug.php?id=78863"],"discovery":"EXTERNAL"},"x_generator":{"engine":"Vulnogram 0.0.9"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security@php.net","DATE_PUBLIC":"2019-12-17T03:02:00.000Z","ID":"CVE-2019-11045","STATE":"PUBLIC","TITLE":"DirectoryIterator class silently truncates after a null byte"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"PHP","version":{"version_data":[{"version_affected":"<","version_name":"7.2.x","version_value":"7.2.26"},{"version_affected":"<","version_name":"7.3.x","version_value":"7.3.13"},{"version_affected":"<","version_name":"7.4.x","version_value":"7.4.1"}]}}]},"vendor_name":"PHP Group"}]}},"credit":[{"lang":"eng","value":"Submitted by ryat at php.net"}],"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.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."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":3.7,"baseSeverity":"LOW","confidentialityImpact":"LOW","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/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=78863","refsource":"MISC","url":"https://bugs.php.net/bug.php?id=78863"},{"name":"[debian-lts-announce] 20191229 [SECURITY] [DLA 2050-1] php5 security update","refsource":"MLIST","url":"https://lists.debian.org/debian-lts-announce/2019/12/msg00034.html"},{"name":"https://security.netapp.com/advisory/ntap-20200103-0002/","refsource":"CONFIRM","url":"https://security.netapp.com/advisory/ntap-20200103-0002/"},{"name":"FEDORA-2019-437d94e271","refsource":"FEDORA","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/N7GCOAE6KVHYJ3UQ4KLPLTGSLX6IRVRN/"},{"name":"FEDORA-2019-a54a622670","refsource":"FEDORA","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XWRQPYXVG43Q7DXMXH6UVWMKWGUW552F/"},{"name":"USN-4239-1","refsource":"UBUNTU","url":"https://usn.ubuntu.com/4239-1/"},{"name":"openSUSE-SU-2020:0080","refsource":"SUSE","url":"http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00036.html"},{"name":"20200218 [SECURITY] [DSA 4626-1] php7.3 security update","refsource":"BUGTRAQ","url":"https://seclists.org/bugtraq/2020/Feb/27"},{"name":"DSA-4626","refsource":"DEBIAN","url":"https://www.debian.org/security/2020/dsa-4626"},{"name":"DSA-4628","refsource":"DEBIAN","url":"https://www.debian.org/security/2020/dsa-4628"},{"name":"20200219 [SECURITY] [DSA 4628-1] php7.0 security update","refsource":"BUGTRAQ","url":"https://seclists.org/bugtraq/2020/Feb/31"},{"name":"20210116 Re: [SECURITY] [DSA 4628-1] php7.0 security update","refsource":"BUGTRAQ","url":"https://seclists.org/bugtraq/2021/Jan/3"},{"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=78863"],"discovery":"EXTERNAL"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://bugs.php.net/bug.php?id=78863","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/12/msg00034.html","name":"[debian-lts-announce] 20191229 [SECURITY] [DLA 2050-1] php5 security update","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20200103-0002/","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/N7GCOAE6KVHYJ3UQ4KLPLTGSLX6IRVRN/","name":"FEDORA-2019-437d94e271","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XWRQPYXVG43Q7DXMXH6UVWMKWGUW552F/","name":"FEDORA-2019-a54a622670","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"https://usn.ubuntu.com/4239-1/","name":"USN-4239-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00036.html","name":"openSUSE-SU-2020:0080","tags":["vendor-advisory","x_refsource_SUSE","x_transferred"]},{"url":"https://seclists.org/bugtraq/2020/Feb/27","name":"20200218 [SECURITY] [DSA 4626-1] php7.3 security update","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"https://www.debian.org/security/2020/dsa-4626","name":"DSA-4626","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"https://www.debian.org/security/2020/dsa-4628","name":"DSA-4628","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"https://seclists.org/bugtraq/2020/Feb/31","name":"20200219 [SECURITY] [DSA 4628-1] php7.0 security update","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"https://seclists.org/bugtraq/2021/Jan/3","name":"20210116 Re: [SECURITY] [DSA 4628-1] php7.0 security update","tags":["mailing-list","x_refsource_BUGTRAQ","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-04T22:40:16.106Z"}}]}}}