Patch: filename validation bypass in reversal fallback allows file creation outside the working directory (Red Hat Red Hat Enterprise Linux 10)

CVE-2026-115207
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.14 % Β· percentile 3 ()
State
PUBLISHED
Published
Updated
Assigner
redhat
NVD status
Awaiting Analysis

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.

Weaknesses (CWE)

  • CWE-22 β€” Improper Limitation of a Pathname to a Restricted Directory

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:Nredhat
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:NNVD Β· secalert@redhat.com (Secondary)

European references

Affected products

ProductVersions
Red Hat Β· Red Hat Enterprise Linux 10
Red Hat Β· Red Hat Enterprise Linux 6
Red Hat Β· Red Hat Enterprise Linux 7
Red Hat Β· Red Hat Enterprise Linux 8
Red Hat Β· Red Hat Enterprise Linux 9
Red Hat Β· Red Hat Hardened Images

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST β€” attribution requested
ENISA EUVDENISA β€” reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain β€” this product uses data from the NVD API but is not endorsed or certified by the NVD