Patch: filename validation bypass in reversal fallback allows file creation outside the working directory
Historical advisory recorded 12 Nov 2026 06:53:47 UTC. Read the latest advisory.
cve-program · CVE-2026-115207
PublishedA flaw was found in GNU patch. An attacker can achieve arbitrary file creation outside the intended working directory by enticing a user or automated workflow to apply a specially crafted patch file. Due to missing validation during automatic patch reversal, absolute file paths in patch headers are accepted rather than rejected. Consequently, the utility can create files in arbitrary locations with the permissions of the executing user.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-115207 · CVE overview and exploitation status
cve-program · CVE-2026-115207
This historical advisory does not include today's related changes. Open the latest advisory to find current connections.