CVE-2026-115207
Medium · 5.5CVSS
5.5
EPSS
0.1%
Published
Oct 22, 2026
CISA due date
—
Cloudanix analysis
A common tool used to apply software updates can be tricked into creating or changing files anywhere on the computer if someone applies a specially made update file.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Data Tampering
- Component
- Application
- Class
- Path Traversal
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Missing validation of absolute paths in patch headers during automatic reversal allows the GNU patch utility to write files to arbitrary locations outside the working directory using the permissions of the invoking user.
Why it matters to the business
Attackers can create or overwrite files in privileged locations, potentially leading to system compromise, data tampering, or persistence if users or automated workflows apply untrusted patches; the issue affects a widely used utility with high ecosystem prevalence.
How an attack unfolds
An attacker crafts a patch file containing an absolute path header (for example targeting /etc/cron.d or a user-writable binary location), then entices a victim to apply the patch; during reversal processing the absolute path is honored instead of rejected, resulting in arbitrary file creation.
How to fix it
Upgrade GNU patch to the latest vendor release that enforces rejection of absolute paths; until fixed versions are available, avoid applying patches from untrusted sources and run patch with minimal privileges inside restricted directories.
How to confirm the fix worked
Confirm the installed patch version rejects absolute paths during reversal; test by attempting to apply a crafted patch containing an absolute path header and verify the operation is blocked or fails safely.
Typical attack path
- Craft a malicious patch containing absolute file paths in the header
- Deliver the patch via email, download link, or repository to a target user or CI/CD workflow
- Victim invokes patch (including reversal mode) on the file
- Arbitrary file is written to the attacker-chosen location with user privileges
How to detect it
Review patch command logs and process execution history for invocations involving reversal flags combined with files containing absolute paths; correlate with unexpected file creation or modification timestamps in system directories.
What your security team should do
- Prioritize updating GNU patch across all systems once a fixed release is published
- Implement policy requiring review or sandboxing of any externally sourced patch files
- Monitor EPSS and KEV status for changes indicating increased exploitation risk
- Educate developers and operations staff on the risks of applying untrusted patches
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-61725 sevenz-rust2 is a Rust-native 7z compressor and `decompress`or. CWE-22
- CVE-2026-62965 SABnzbd is an open source automated Usenet download tool. CWE-22
- CVE-2026-119342 Stirling-PDF is a locally hosted web application that facilitates various operations on… CWE-22
- CVE-2026-119328 Immich is a high-performance self-hosted photo and video management solution. CWE-22
- CVE-2026-116249 In server mode pgAdmin 4 resolves a server's password file, SSL certificate, key, CRL and… CWE-22
- CVE-2026-116240 In server mode pgAdmin 4 validates a path into the user's storage directory with… CWE-22
- CVE-2026-62331 praktor is a multi-agent Claude Code orchestrator with Telegram input and output, Docker… CWE-22
- CVE-2026-115604 Subscriber Arbitrary File Deletion in SureDash <= 1.12.3 versions. CWE-22