CVE Catalog

CVE-2026-115207

MediumCVSS 5.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.14%

3th percentile - higher than 3% of all known CVEs

Summary

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.

Risk Assessment

An attacker can create or overwrite files in arbitrary locations with the permissions of the user running patch, potentially leading to privilege escalation or code execution.

Recommendation

Upgrade GNU patch to a version containing the fix and avoid applying patches from untrusted sources; consider running patch in a restricted environment.

Other vulnerabilities in GNU patch

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS