{"id":"CVE-2019-11044","published":"2019-12-23T02:40:16Z","modified":"2024-09-17T01:47:06Z","title":"link() silently truncates after a null byte on Windows","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 on Windows, PHP link() function 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.05124,"percentile":0.92585,"provenance":"source"},"cwes":[{"id":"CWE-170","name":"Improper Null Termination"}],"references":[{"url":"https://bugs.php.net/bug.php?id=78862","tags":["x_refsource_MISC"]},{"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://www.tenable.com/security/tns-2021-14","tags":["x_refsource_CONFIRM"]}],"priority":{"score":21.1,"factors":[{"name":"EPSS percentile","points":18.52},{"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 link() function in PHP, on Windows builds of the 7.2.x, 7.3.x and 7.4.0 branches (older than the fixed releases), silently truncates a filename at an embedded null byte, treating the remainder as absent. An attacker who can supply a filename to link() can exploit this when the application validates the path but then passes the untruncated value, which could let the operation reach files the code was meant to restrict, and this requires network access to the application, no authentication, and a configuration in which such filenames reach link().","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:15:11Z"},"euvd":{"id":"EUVD-2019-2752","exploited":false,"provenance":"source"}}