CVE-2010-4651
NoneCVSS
—
EPSS
4.9%
Published
Mar 11, 2011
CISA due date
—
Cloudanix analysis
A flaw in an old file patching tool could let someone slip in changes that reach places they should not, allowing tampering with important files on the computer.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Data Tampering
- Component
- Application
- Class
- Path Traversal
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Directory traversal in GNU patch allows crafted patch files containing .. or absolute paths to create or overwrite arbitrary files on the target system during application.
Why it matters to the business
Attackers can place or modify files in sensitive locations, potentially leading to configuration changes, data tampering, or execution of attacker-controlled code if the patched system is later used.
How an attack unfolds
An attacker crafts a malicious patch file embedding directory traversal sequences or full paths, then tricks a user or automated process into applying it with GNU patch, resulting in files being written outside the intended directory.
How to fix it
Upgrade affected packages to the fixed versions: dive (Chainguard) 0.12.0-r3 or later and dive (Wolfi) 0.12.0-r3 or later. Ensure any embedded or vendored GNU patch instances are also updated to versions after 2.6.1.
How to confirm the fix worked
Verify package versions match or exceed the listed fixed releases, test patch application with known traversal payloads in a controlled environment, and confirm no file writes occur outside the working directory.
Typical attack path
- Craft malicious patch containing .. sequences or absolute paths
- Deliver patch to target via email, download, or supply chain
- Victim or process applies patch using vulnerable GNU patch version
- Arbitrary files created or overwritten on the system
How to detect it
Examine logs from patch application processes and build systems for unexpected file paths containing dot-dot sequences or absolute paths outside the working directory; review file creation timestamps coinciding with patch operations.
What your security team should do
- Apply the specified fixed package versions immediately
- Scan build and CI pipelines for use of GNU patch and enforce version pinning
- Review historical patch application logs for unexpected file writes
The record
Directory traversal vulnerability in util.c in GNU patch 2.6.1 and earlier allows user-assisted remote attackers to create or overwrite arbitrary files via a filename that is specified with a .. (dot dot) or full pathname, a related issue to CVE-2010-1679.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:10 | patch | 0 | No fix |
| Debian:11 | patch | 0 | No fix |
| Debian:12 | patch | 0 | No fix |
| Debian:13 | patch | 0 | No fix |
| SUSE:Linux Enterprise Point of Sale 11 SP3 | patch | 0 | 2.5.9-252.22.7.1 |
| SUSE:Linux Enterprise Server 11 SP3-LTSS | patch | 0 | 2.5.9-252.22.7.1 |
| SUSE:Linux Enterprise Server 11 SP3-TERADATA | patch | 0 | 2.5.9-252.22.7.1 |
| SUSE:Linux Enterprise Server 11 SP4 | patch | 0 | 2.5.9-252.22.7.1 |
| SUSE:Linux Enterprise Server for SAP Applications 11 SP4 | patch | 0 | 2.5.9-252.22.7.1 |
| Ubuntu:14.04:LTS | patch | 0 | 2.7.1-4ubuntu1 |
| Ubuntu:14.04:LTS | patch | 0 | 2.7.1-4ubuntu2.3 |
| openSUSE:Tumbleweed | patch | 0 | 2.7.5-1.112 |
Related vulnerabilities
- CVE-2015-1395 Directory traversal vulnerability in GNU patch versions which support Git-style patching… Also affects patch
- CVE-2026-81163 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')… CWE-22
- CVE-2026-112049 Vita3K before build 4187 contains a path traversal (zip slip) vulnerability in… CWE-22
- CVE-2026-112005 WhoDB 0.104.0 before 0.135.0 contains a path traversal vulnerability that allows remote… CWE-22
- CVE-2026-61702 OpenPrinting CUPS is an open source printing system for Linux and other Unix-like… CWE-22
- CVE-2026-104871 The Angular SSR is a server-rise rendering tool for Angular applications. CWE-22
- CVE-2026-102991 Mako is a template library written in Python. CWE-22
- CVE-2026-101894 The decompress package for Node.js extracts archives. CWE-22