CVE-2010-4651
Directory traversal vulnerability in util.c in GNU patch 2.6.1 and earlier allows user-assisted...
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.
Exploit likelihood
What each source reports
NVD Score used
5.8
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.
- Record
CVE-2010-4651- CVSS 2.0
- 5.8 Medium
AV:N/AC:M/Au:N/C:N/I:P/A:P - Weakness
- CWE-22
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2010-4651- Updated
- 2026-11-02
EUVDEUVD-2010-4616 No score
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.
- Record
EUVD-2010-4616- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-ghmh-8qx5-2gfp No score
Directory traversal vulnerability in util.c in GNU patch 2.6.1 and earlier allows user-assisted...
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.
- Record
GHSA-ghmh-8qx5-2gfp- Weakness
- CWE-22
- Updated
- 2026-11-02
OSV No score
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.
- Record
CVE-2010-4651- Updated
- 2026-11-02
OSVDEBIAN-CVE-2010-4651 No score
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.
- Record
DEBIAN-CVE-2010-4651- Updated
- 2026-11-02
Show 5 moreShow less
OSVopenSUSE-SU-2024:10379-1 No score
patch-2.7.5-1.112 on GA media
These are all security issues fixed in the patch-2.7.5-1.112 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10379-1- Updated
- 2026-11-02
OSVROOT-OS-DEBIAN-12-CVE-2010-4651 No score
CVE-2010-4651 in patch - Patched by Root
Root has patched CVE-2010-4651 in the patch package for Root:Debian:12. Multiple fixed versions available.
- Record
ROOT-OS-DEBIAN-12-CVE-2010-4651- Updated
- 2026-11-02
OSVSUSE-SU-2018:1162-1 No score
Security update for patch
This update for patch fixes several issues.
These security issues were fixed:
- CVE-2018-1000156: patch: Malicious patch files cause ed to execute arbitrary commands (bsc#1088420).
- CVE-2014-9637: Prevent DoS by remote attackers (memory consumption and segmentation fault) via a crafted diff file (bsc#914891).
- CVE-2016-10713: Prevent out-of-bounds access within pch_write_line() that could have lead to DoS via a crafted input file (bsc#1080918).
- CVE-2010-4651: Fixed a directory traversal bug (bsc#662957):
- Record
SUSE-SU-2018:1162-1- Updated
- 2026-11-02
OSVUBUNTU-CVE-2010-4651 No score
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.
- Record
UBUNTU-CVE-2010-4651- Updated
- 2026-11-02
OSVUSN-2651-1 No score
patch vulnerabilities
Jakub Wilk discovered that GNU patch did not correctly handle file paths in patch files. An attacker could specially craft a patch file that could overwrite arbitrary files with the privileges of the user invoking the program. This issue only affected Ubuntu 12.04 LTS. (CVE-2010-4651)
László Böszörményi discovered that GNU patch did not correctly handle some patch files. An attacker could specially craft a patch file that could cause a denial of service. (CVE-2014-9637)
Jakub Wilk discovered that GNU patch did not correctly handle symbolic links in git style patch files. An attacker could specially craft a patch file that could overwrite arbitrary files with the privileges of the user invoking the program. This issue only affected Ubuntu 14.04 LTS and Ubuntu 14.10. (CVE-2015-1196)
Jakub Wilk discovered that GNU patch did not correctly handle file renames in git style patch files. An attacker could specially craft a patch file that could overwrite arbitrary files with the privileges of the user invoking the program. This issue only affected Ubuntu 14.04 LTS and Ubuntu 14.10. (CVE-2015-1395)
Jakub Wilk discovered the fix for CVE-2015-1196 was incomplete for GNU patch. An attacker could specially craft a patch file that could overwrite arbitrary files with the privileges of the user invoking the program. This issue only affected Ubuntu 14.04 LTS and Ubuntu 14.10. (CVE-2015-1396)
- Record
USN-2651-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
patchDebian:12 |
All versions, plus listed versions 2.7.6-72.8-12.8-2 |
None known |
patchDebian:13 |
All versions, plus listed versions 2.8-2 |
None known |
patchDebian:14 |
All versions, plus listed versions 2.8-2 |
None known |
patchRoot:Debian:12 |
before 2.7.6-7.aikido.7 | 2.7.6-7.aikido.72.7.6-7.root.io.6 |
rootio-patchRoot:Debian:12 |
before 2.7.6-7.aikido.7 | 2.7.6-7.aikido.72.7.6-7.root.io.6 |
patchSUSE:Linux Enterprise Point of Sale 11 SP3 From an advisory covering 4 CVEs |
before 2.5.9-252.22.7.1 | 2.5.9-252.22.7.1 |
patchSUSE:Linux Enterprise Server 11 SP3-LTSS From an advisory covering 4 CVEs |
before 2.5.9-252.22.7.1 | 2.5.9-252.22.7.1 |
patchSUSE:Linux Enterprise Server 11 SP3-TERADATA From an advisory covering 4 CVEs |
before 2.5.9-252.22.7.1 | 2.5.9-252.22.7.1 |
patchSUSE:Linux Enterprise Server 11 SP4 From an advisory covering 4 CVEs |
before 2.5.9-252.22.7.1 | 2.5.9-252.22.7.1 |
patchSUSE:Linux Enterprise Server for SAP Applications 11 SP4 From an advisory covering 4 CVEs |
before 2.5.9-252.22.7.1 | 2.5.9-252.22.7.1 |
patchUbuntu:14.04:LTS From an advisory covering 5 CVEs |
before 2.7.1-4ubuntu2.3, plus listed versions 2.7.1-32.7.1-42.7.1-4ubuntu12.7.1-4ubuntu2 |
2.7.1-4ubuntu2.3 |
patchopenSUSE:Tumbleweed From an advisory covering 2 CVEs |
before 2.7.5-1.112 | 2.7.5-1.112 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2010-4651 is a medium vulnerability (CVSS 5.8) in Gnu Patch, published March 11, 2011. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 4.87%, the 92nd percentile. Fixed in patch 2.7.6-7.aikido.7.
References
vupen.com/english/advisories/2011/0600
support.apple.com/kb/HT4723
openwall.com/lists/oss-security/2011/01/06/20
securityfocus.com/bid/46768
lists.apple.com/archives/security-announce/2011//Jun/msg00000.html
openwall.com/lists/oss-security/2011/01/06/21
Show 30 moreShow less
bugzilla.redhat.com/show_bug.cgi?id=667529
lists.fedoraproject.org/pipermail/package-announce/2011-March/055246.html
openwall.com/lists/oss-security/2011/01/06/19
git.savannah.gnu.org/cgit/patch.git/commit?id=685a78b6052f4df6eac6d625a545cfb54a6ac0e1
secunia.com/advisories/43677
lists.fedoraproject.org/pipermail/package-announce/2011-March/055241.html
openwall.com/lists/oss-security/2011/01/05/10
lists.gnu.org/archive/html/bug-patch/2010-12/msg00000.html
secunia.com/advisories/43663
nvd.nist.gov/vuln/detail/CVE-2010-4651
github.com/advisories/GHSA-ghmh-8qx5-2gfp
security-tracker.debian.org/tracker/CVE-2010-4651
suse.com/support/update/announcement/2018/suse-su-20181162-1
bugzilla.suse.com/1059698
bugzilla.suse.com/1080918
bugzilla.suse.com/1088420
bugzilla.suse.com/662957
bugzilla.suse.com/914891
suse.com/security/cve/CVE-2010-4651
suse.com/security/cve/CVE-2014-9637
suse.com/security/cve/CVE-2016-10713
suse.com/security/cve/CVE-2018-1000156
ubuntu.com/security/CVE-2010-4651
ubuntu.com/security/notices/USN-2651-1
cve.org/CVERecord?id=CVE-2010-4651
ubuntu.com/security/CVE-2014-9637
ubuntu.com/security/CVE-2015-1196
ubuntu.com/security/CVE-2015-1395
ubuntu.com/security/CVE-2015-1396
suse.com/security/cve/CVE-2015-1196