{"id":"CVE-2026-35359","state":"PUBLISHED","title":"uutils coreutils cp Information Disclosure via Time-of-Check to Time-of-Use Symlink Swap","description":"A Time-of-Check to Time-of-Use (TOCTOU) vulnerability in the cp utility of uutils coreutils allows an attacker to bypass no-dereference intent. The utility checks if a source path is a symbolic link using path-based metadata but subsequently opens it without the O_NOFOLLOW flag. An attacker with concurrent write access can swap a regular file for a symbolic link during this window, causing a privileged cp process to copy the contents of arbitrary sensitive files into a destination controlled by the attacker.","publishedAt":"2026-04-22T16:08:25.506Z","updatedAt":"2026-04-22T17:50:54.548Z","severity":{"score":4.7,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","source":"canonical"},"assigner":"canonical","products":["Uutils coreutils"],"affected":[{"vendor":"Uutils","product":"coreutils","packageName":"coreutils","defaultStatus":"affected","platforms":["Linux","Unix","macOS"],"collectionURL":"https://github.com/uutils","repo":"https://github.com/uutils/coreutils"}],"references":["https://github.com/uutils/coreutils/issues/10017"],"weaknesses":["CWE-367","CWE-59"],"ingestedAt":"2026-10-29T20:11:40.391Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/35xxx/CVE-2026-35359.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-35359","state":"PUBLISHED","datePublished":"2026-04-22T16:08:25.506Z","dateUpdated":"2026-04-22T17:50:54.548Z","assignerShortName":"canonical","assignerOrgId":"cc1ad9ee-3454-478d-9317-d3e869d708bc","dateReserved":"2026-04-02T12:58:56.087Z"},"containers":{"cna":{"title":"uutils coreutils cp Information Disclosure via Time-of-Check to Time-of-Use Symlink Swap","descriptions":[{"lang":"en","value":"A Time-of-Check to Time-of-Use (TOCTOU) vulnerability in the cp utility of uutils coreutils allows an attacker to bypass no-dereference intent. The utility checks if a source path is a symbolic link using path-based metadata but subsequently opens it without the O_NOFOLLOW flag. An attacker with concurrent write access can swap a regular file for a symbolic link during this window, causing a privileged cp process to copy the contents of arbitrary sensitive files into a destination controlled by the attacker."}],"affected":[{"vendor":"Uutils","product":"coreutils","packageName":"coreutils","defaultStatus":"affected","platforms":["Linux","Unix","macOS"],"collectionURL":"https://github.com/uutils","repo":"https://github.com/uutils/coreutils"}],"references":[{"url":"https://github.com/uutils/coreutils/issues/10017","tags":["issue-tracking"]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"version":"3.1","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseSeverity":"MEDIUM","baseScore":4.7,"vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-367","lang":"en","description":"CWE-367: Time-of-Check Time-of-Use (TOCTOU) Race Condition","type":"CWE"},{"cweId":"CWE-59","lang":"en","description":"CWE-59: Improper Link Resolution Before File Access ('Link Following')","type":"CWE"}]}],"providerMetadata":{"shortName":"canonical","orgId":"cc1ad9ee-3454-478d-9317-d3e869d708bc","dateUpdated":"2026-04-22T16:08:25.506Z"},"impacts":[{"capecId":"CAPEC-29","descriptions":[{"lang":"en","value":"CAPEC-29: Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions"}]},{"capecId":"CAPEC-132","descriptions":[{"lang":"en","value":"CAPEC-132: Symlink Attack"}]}],"credits":[{"lang":"en","value":"Zellic","type":"finder"}],"source":{"discovery":"EXTERNAL"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/uutils/coreutils/issues/10017","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-04-22T17:50:51.990482Z","id":"CVE-2026-35359","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-04-22T17:50:54.548Z"}}]}}}