{"id":"CVE-2014-9637","aliases":["DEBIAN-CVE-2014-9637","EUVD-2014-9447","GHSA-wpf6-pr9h-p2gj","MGASA-2015-0068","SUSE-SU-2018:1162-1","UBUNTU-CVE-2014-9637","USN-2651-1"],"status":"published","title":"GNU patch 2.7.2 and earlier allows remote attackers to cause a denial of service (memory...","description":"GNU patch 2.7.2 and earlier allows remote attackers to cause a denial of service (memory consumption and segmentation fault) via a crafted diff file.","severity":{"version":"3.0","score":5.5,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.02361,"percentile":0.83884,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-399"],"published":"2014-12-31T00:00:00Z","modified":"2026-10-23T16:02:06Z","fixes":[{"ecosystem":"Debian:12","package":"patch","fixed_in":["2.7.1-7"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"patch","fixed_in":["2.7.1-7"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"patch","fixed_in":["2.7.1-7"],"sources":["osv"]},{"ecosystem":"Ubuntu:14.04:LTS","package":"patch","fixed_in":["2.7.1-4ubuntu2.3"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.1-7"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.1-7"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.1-7"}]}]},{"source":"osv","ecosystem":"Mageia:4","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.4-1.mga4"}]}],"bundled":3},{"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"]},{"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}],"products":[{"vendor":"canonical","product":"ubuntu_linux"},{"vendor":"fedoraproject","product":"fedora"},{"vendor":"gnu","product":"patch"},{"vendor":"mageia","product":"mageia"}],"references":[{"url":"https://savannah.gnu.org/bugs/?44051","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Patch","Third Party Advisory","advisory","fix","report"]},{"url":"http://www.openwall.com/lists/oss-security/2015/01/22/7","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Patch","Third Party Advisory","advisory","article","fix"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-January/148953.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","Patch","Third Party Advisory","advisory","fix"]},{"url":"http://advisories.mageia.org/MGASA-2015-0068.html","tags":["x_refsource_CONFIRM","x_transferred","Patch","Third Party Advisory","advisory","fix"]},{"url":"http://www.securityfocus.com/bid/72286","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry","advisory"]},{"url":"https://git.savannah.gnu.org/cgit/patch.git/commit/?id=0c08d7a902c6fdd49b704623a12d8d672ef18944","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Patch","Third Party Advisory","advisory","fix","report"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-April/154214.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","Patch","Third Party Advisory","advisory","fix"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1185262","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Patch","Third Party Advisory","advisory","fix","report"]},{"url":"http://www.ubuntu.com/usn/USN-2651-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","Patch","Third Party Advisory","advisory","fix"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2014-9637"},{"url":"https://github.com/advisories/GHSA-wpf6-pr9h-p2gj"},{"url":"https://security-tracker.debian.org/tracker/CVE-2014-9637","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2015-0068.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=15142","tags":["report"]},{"url":"https://lists.fedoraproject.org/pipermail/package-announce/2015-January/148953.html","tags":["web"]},{"url":"https://lists.fedoraproject.org/pipermail/package-announce/2015-February/149140.html","tags":["web"]},{"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-2014-9637","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-2651-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2014-9637","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2010-4651","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"]}],"sources":{"cve":[{"id":"CVE-2014-9637","description":"GNU patch 2.7.2 and earlier allows remote attackers to cause a denial of service (memory consumption and segmentation fault) via a crafted diff file.","status":"published","published":"2017-08-25T18:00:00Z","modified":"2024-08-06T13:47:41.811Z","updated_at":"2026-11-02T14:33:42.882687Z"}],"euvd":[{"id":"EUVD-2014-9447","description":"GNU patch 2.7.2 and earlier allows remote attackers to cause a denial of service (memory consumption and segmentation fault) via a crafted diff file.","status":"published","published":"2017-08-25T18:00:00Z","modified":"2024-08-06T13:47:41Z","updated_at":"2026-11-03T01:56:48.455518Z"}],"ghsa":[{"id":"GHSA-wpf6-pr9h-p2gj","title":"GNU patch 2.7.2 and earlier allows remote attackers to cause a denial of service (memory...","description":"GNU patch 2.7.2 and earlier allows remote attackers to cause a denial of service (memory consumption and segmentation fault) via a crafted diff file.","status":"published","published":"2022-05-17T01:22:36Z","modified":"2023-02-03T05:03:58Z","cvss":[{"version":"3.0","score":5.5,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T14:53:27.864934Z"}],"nvd":[{"id":"CVE-2014-9637","description":"GNU patch 2.7.2 and earlier allows remote attackers to cause a denial of service (memory consumption and segmentation fault) via a crafted diff file.","status":"published","published":"2017-08-25T18:29:00.45Z","modified":"2026-06-17T00:18:41.48Z","cvss":[{"version":"3.0","score":5.5,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary"},{"version":"2.0","score":7.1,"vector":"AV:N/AC:M/Au:N/C:N/I:N/A:C","level":"high","assessor":"primary"}],"cwes":["CWE-399"],"updated_at":"2026-11-02T14:02:59.001778Z"}],"osv":[{"id":"CVE-2014-9637","description":"GNU patch 2.7.2 and earlier allows remote attackers to cause a denial of service (memory consumption and segmentation fault) via a crafted diff file.","status":"published","published":"2017-08-25T18:29:00Z","modified":"2026-04-16T06:21:57.728575918Z","cvss":[{"version":"3.0","score":5.5,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:44:00.097545Z"},{"id":"DEBIAN-CVE-2014-9637","description":"GNU patch 2.7.2 and earlier allows remote attackers to cause a denial of service (memory consumption and segmentation fault) via a crafted diff file.","status":"published","published":"2017-08-25T18:29:00.45Z","modified":"2026-10-23T16:02:06.464289357Z","cvss":[{"version":"3.0","score":5.5,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:45:26.442161Z"},{"id":"UBUNTU-CVE-2014-9637","description":"GNU patch 2.7.2 and earlier allows remote attackers to cause a denial of service (memory consumption and segmentation fault) via a crafted diff file.","status":"published","published":"2014-12-31T00:00:00Z","modified":"2026-02-04T02:13:08.142207Z","cvss":[{"version":"3.0","score":5.5,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:54:09.378953Z"},{"id":"MGASA-2015-0068","title":"Updated patch packages fix security vulnerabilities","description":"Updated patch package fixes security vulnerabilities:\n\nIt was reported that a crafted diff file can make patch eat memory and later\nsegfault (CVE-2014-9637).\n\nIt was reported that the versions of the patch utility that support Git-style\npatches are vulnerable to a directory traversal flaw. This could allow an\nattacker to overwrite arbitrary files by applying a specially crafted patch,\nwith the privileges of the user running patch (CVE-2015-1395).\n\nGNU patch before 2.7.4 allows remote attackers to write to arbitrary files via\na symlink attack in a patch file (CVE-2015-1196).\n","status":"published","published":"2015-02-17T18:38:13Z","modified":"2026-04-16T06:24:47.269069126Z","updated_at":"2026-11-02T15:49:39.488462Z"},{"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":"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"}]}}
