Skip to main content
← All vulnerabilities
CVE-2026-115207

Patch: filename validation bypass in reversal fallback allows file creation outside the working directory

Published
Last modified
published
Not listed in CISA KEV
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

GNU patch, the utility used to apply changes from diff files to source code, is affected by this vulnerability. An attacker could trick a user or automated process into applying a specially crafted patch so that files are created in arbitrary locations outside the working directory, with the privileges of the user running the tool.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original description

A 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.

Timeline

  1. CVE published
  2. First seen by cve.now
  3. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  4. Record last updated

Affected versions

  • patch

    Version range not reported

  • patch

    Version range not reported

  • patch

    Version range not reported

  • patch

    Version range not reported

  • patch

    Version range not reported

  • patch

    Version range not reported

References 2

access.redhat.com

bugzilla.redhat.com