{"id":"CVE-2010-4651","aliases":["DEBIAN-CVE-2010-4651","EUVD-2010-4616","GHSA-ghmh-8qx5-2gfp","ROOT-OS-DEBIAN-12-CVE-2010-4651","SUSE-SU-2018:1162-1","UBUNTU-CVE-2010-4651","USN-2651-1","openSUSE-SU-2024:10379-1"],"status":"published","title":"Directory traversal vulnerability in util.c in GNU patch 2.6.1 and earlier allows user-assisted...","description":"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.","severity":{"version":"2.0","score":5.8,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:P","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.04874,"percentile":0.92111,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-22"],"published":"2011-03-11T00:00:00Z","modified":"2026-10-23T17:47:26Z","fixes":[{"ecosystem":"Root:Debian:12","package":"patch","fixed_in":["2.7.6-7.aikido.7","2.7.6-7.root.io.6"],"sources":["osv"]},{"ecosystem":"Root:Debian:12","package":"rootio-patch","fixed_in":["2.7.6-7.aikido.7","2.7.6-7.root.io.6"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.7.6-7","2.8-1","2.8-2"]},{"source":"osv","ecosystem":"Debian:13","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.8-2"]},{"source":"osv","ecosystem":"Debian:14","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.8-2"]},{"source":"osv","ecosystem":"Root:Debian:12","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.6-7.aikido.7"},{"fixed":"2.7.6-7.root.io.6"}]}]},{"source":"osv","ecosystem":"Root:Debian:12","package":"rootio-patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.6-7.aikido.7"},{"fixed":"2.7.6-7.root.io.6"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Point of Sale 11 SP3","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.9-252.22.7.1"}]}],"bundled":4},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 11 SP3-LTSS","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.9-252.22.7.1"}]}],"bundled":4},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 11 SP3-TERADATA","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.9-252.22.7.1"}]}],"bundled":4},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 11 SP4","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.9-252.22.7.1"}]}],"bundled":4},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 11 SP4","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.9-252.22.7.1"}]}],"bundled":4},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.1-4ubuntu2.3"}]}],"versions":["2.7.1-3","2.7.1-4","2.7.1-4ubuntu1","2.7.1-4ubuntu2"],"bundled":5},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.5-1.112"}]}],"bundled":2}],"products":[{"vendor":"gnu","product":"gnu_patch"}],"references":[{"url":"http://www.vupen.com/english/advisories/2011/0600","tags":["vdb-entry","x_refsource_VUPEN","x_transferred","Vendor Advisory","advisory"]},{"url":"http://support.apple.com/kb/HT4723","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://openwall.com/lists/oss-security/2011/01/06/20","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://www.securityfocus.com/bid/46768","tags":["vdb-entry","x_refsource_BID","x_transferred","web"]},{"url":"http://lists.apple.com/archives/security-announce/2011//Jun/msg00000.html","tags":["vendor-advisory","x_refsource_APPLE","x_transferred","web"]},{"url":"http://openwall.com/lists/oss-security/2011/01/06/21","tags":["mailing-list","x_refsource_MLIST","x_transferred","Patch","fix"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=667529","tags":["x_refsource_CONFIRM","x_transferred","Patch","fix"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2011-March/055246.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","Patch","fix"]},{"url":"http://openwall.com/lists/oss-security/2011/01/06/19","tags":["mailing-list","x_refsource_MLIST","x_transferred","Patch","fix"]},{"url":"http://git.savannah.gnu.org/cgit/patch.git/commit/?id=685a78b6052f4df6eac6d625a545cfb54a6ac0e1","tags":["x_refsource_CONFIRM","x_transferred","Patch","fix"]},{"url":"http://secunia.com/advisories/43677","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2011-March/055241.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","Patch","fix"]},{"url":"http://openwall.com/lists/oss-security/2011/01/05/10","tags":["mailing-list","x_refsource_MLIST","x_transferred","Patch","fix"]},{"url":"http://lists.gnu.org/archive/html/bug-patch/2010-12/msg00000.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","Patch","fix"]},{"url":"http://secunia.com/advisories/43663","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2010-4651"},{"url":"https://github.com/advisories/GHSA-ghmh-8qx5-2gfp"},{"url":"https://security-tracker.debian.org/tracker/CVE-2010-4651","tags":["advisory"]},{"url":"https://www.suse.com/support/update/announcement/2018/suse-su-20181162-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1059698","tags":["report"]},{"url":"https://bugzilla.suse.com/1080918","tags":["report"]},{"url":"https://bugzilla.suse.com/1088420","tags":["report"]},{"url":"https://bugzilla.suse.com/662957","tags":["report"]},{"url":"https://bugzilla.suse.com/914891","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2010-4651","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2014-9637","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-10713","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-1000156","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2010-4651","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-2651-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2010-4651","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2014-9637","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2015-1196","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2015-1395","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2015-1396","tags":["report"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2015-1196","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2010-4651","description":"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.","status":"published","published":"2011-03-11T22:00:00Z","modified":"2024-08-07T03:51:17.968Z","updated_at":"2026-11-02T14:33:28.50039Z"}],"euvd":[{"id":"EUVD-2010-4616","description":"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.","status":"published","published":"2011-03-11T22:00:00Z","modified":"2024-08-07T03:51:17Z","updated_at":"2026-11-03T01:39:29.508356Z"}],"ghsa":[{"id":"GHSA-ghmh-8qx5-2gfp","title":"Directory traversal vulnerability in util.c in GNU patch 2.6.1 and earlier allows user-assisted...","description":"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.","status":"published","published":"2022-05-17T03:46:38Z","modified":"2023-01-27T05:07:43Z","cwes":["CWE-22"],"updated_at":"2026-11-02T14:43:10.83298Z"}],"nvd":[{"id":"CVE-2010-4651","description":"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.","status":"published","published":"2011-03-11T22:55:02.09Z","modified":"2026-06-16T23:25:14.96Z","cvss":[{"version":"2.0","score":5.8,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:02:03.297831Z"}],"osv":[{"id":"CVE-2010-4651","description":"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.","status":"published","published":"2011-03-11T22:55:02Z","modified":"2026-04-10T03:41:32.519785Z","updated_at":"2026-11-02T15:43:57.991581Z"},{"id":"DEBIAN-CVE-2010-4651","description":"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.","status":"published","published":"2011-03-11T22:55:02.09Z","modified":"2026-10-23T17:47:26.536356551Z","updated_at":"2026-11-02T15:45:24.316685Z"},{"id":"openSUSE-SU-2024:10379-1","title":"patch-2.7.5-1.112 on GA media","description":"These are all security issues fixed in the patch-2.7.5-1.112 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T02:38:40.268815Z","updated_at":"2026-11-02T16:58:34.487567Z"},{"id":"ROOT-OS-DEBIAN-12-CVE-2010-4651","title":"CVE-2010-4651 in patch - Patched by Root","description":"Root has patched CVE-2010-4651 in the patch package for Root:Debian:12. Multiple fixed versions available.","status":"published","published":"2026-08-25T14:03:30Z","modified":"2026-08-26T01:15:21.628710522Z","updated_at":"2026-11-02T15:53:30.44348Z"},{"id":"SUSE-SU-2018:1162-1","title":"Security update for patch","description":"This update for patch fixes several issues.\n\nThese security issues were fixed:\n\n- CVE-2018-1000156: patch: Malicious patch files cause ed to execute arbitrary commands (bsc#1088420).\n- CVE-2014-9637: Prevent DoS by remote attackers (memory consumption and\n  segmentation fault) via a crafted diff file (bsc#914891).\n- CVE-2016-10713: Prevent out-of-bounds access within pch_write_line() that\n  could have lead to DoS via a crafted input file (bsc#1080918).\n- CVE-2010-4651: Fixed a directory traversal bug (bsc#662957):\n\n","status":"published","published":"2018-05-07T15:16:04Z","modified":"2026-02-04T03:23:14.898777Z","updated_at":"2026-11-02T15:53:44.594517Z"},{"id":"UBUNTU-CVE-2010-4651","description":"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.","status":"withdrawn","published":"2011-03-11T00:00:00Z","modified":"2026-02-04T04:17:38.517276Z","updated_at":"2026-11-02T15:54:06.395274Z"},{"id":"USN-2651-1","title":"patch vulnerabilities","description":"Jakub Wilk discovered that GNU patch did not correctly handle file paths in\npatch files. An attacker could specially craft a patch file that could\noverwrite arbitrary files with the privileges of the user invoking the program.\nThis issue only affected Ubuntu 12.04 LTS. (CVE-2010-4651)\n\nLászló Böszörményi discovered that GNU patch did not correctly handle some\npatch files. An attacker could specially craft a patch file that could cause a\ndenial of service. (CVE-2014-9637)\n\nJakub Wilk discovered that GNU patch did not correctly handle symbolic links in\ngit style patch files. An attacker could specially craft a patch file that\ncould overwrite arbitrary files with the privileges of the user invoking the\nprogram. This issue only affected Ubuntu 14.04 LTS and Ubuntu 14.10.\n(CVE-2015-1196)\n\nJakub Wilk discovered that GNU patch did not correctly handle file renames in\ngit style patch files. An attacker could specially craft a patch file that\ncould overwrite arbitrary files with the privileges of the user invoking the\nprogram. This issue only affected Ubuntu 14.04 LTS and Ubuntu 14.10.\n(CVE-2015-1395)\n\nJakub Wilk discovered the fix for CVE-2015-1196 was incomplete for GNU patch.\nAn attacker could specially craft a patch file that could overwrite arbitrary\nfiles with the privileges of the user invoking the program. This issue only\naffected Ubuntu 14.04 LTS and Ubuntu 14.10. (CVE-2015-1396)\n","status":"published","published":"2015-06-22T23:50:54Z","modified":"2026-02-10T04:40:54Z","updated_at":"2026-11-02T16:58:09.227524Z"}]}}
