{"id":"CVE-2015-1396","aliases":["DEBIAN-CVE-2015-1396","EUVD-2015-1533","GHSA-37cv-ggjj-37qh","SUSE-SU-2015:1019-1","UBUNTU-CVE-2015-1396","USN-2651-1"],"status":"published","title":"A Directory Traversal vulnerability exists in the GNU patch before 2.7.4. A remote attacker can...","description":"A Directory Traversal vulnerability exists in the GNU patch before 2.7.4. A remote attacker can write to arbitrary files via a symlink attack in a patch file. NOTE: this issue exists because of an incomplete fix for CVE-2015-1196.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.03253,"percentile":0.88426,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-22"],"published":"2015-01-28T00:00:00Z","modified":"2026-09-09T07:00:26Z","fixes":[{"ecosystem":"Debian:12","package":"patch","fixed_in":["2.7.3-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"patch","fixed_in":["2.7.3-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"patch","fixed_in":["2.7.3-1"],"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.3-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.3-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.3-1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Desktop 12","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.5-7.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.5-7.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.5-7.1"}]}],"bundled":3},{"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":"debian","product":"debian_linux"},{"vendor":"gnu","product":"patch"}],"references":[{"url":"http://www.openwall.com/lists/oss-security/2015/01/27/29","tags":["mailing-list","x_refsource_MLIST","x_refsource_MISC","x_transferred","web"]},{"url":"http://www.securityfocus.com/bid/75358","tags":["vdb-entry","x_refsource_BID","x_refsource_MISC","x_transferred","Third Party Advisory","VDB Entry","advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1186764","tags":["x_refsource_CONFIRM","x_transferred","report"]},{"url":"http://www.ubuntu.com/usn/USN-2651-1","tags":["x_refsource_MISC","x_transferred","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2015-1396"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2015-1396"},{"url":"https://bugzilla.suse.com/show_bug.cgi?id=CVE-2015-1396"},{"url":"https://security-tracker.debian.org/tracker/CVE-2015-1396","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-37cv-ggjj-37qh"},{"url":"https://www.suse.com/support/update/announcement/2015/suse-su-20151019-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/904519","tags":["report"]},{"url":"https://bugzilla.suse.com/913678","tags":["report"]},{"url":"https://bugzilla.suse.com/915328","tags":["report"]},{"url":"https://bugzilla.suse.com/915329","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2015-1196","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2015-1395","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2015-1396","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2015-1396","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-2651-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2015-1396","tags":["report"]},{"url":"https://ubuntu.com/security/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"]}],"sources":{"cve":[{"id":"CVE-2015-1396","description":"A Directory Traversal vulnerability exists in the GNU patch before 2.7.4. A remote attacker can write to arbitrary files via a symlink attack in a patch file. NOTE: this issue exists because of an incomplete fix for CVE-2015-1196.","status":"published","published":"2019-11-25T15:44:16Z","modified":"2024-08-06T04:40:18.555Z","updated_at":"2026-11-02T14:35:44.046042Z"}],"euvd":[{"id":"EUVD-2015-1533","description":"A Directory Traversal vulnerability exists in the GNU patch before 2.7.4. A remote attacker can write to arbitrary files via a symlink attack in a patch file. NOTE: this issue exists because of an incomplete fix for CVE-2015-1196.","status":"published","published":"2019-11-25T15:44:16Z","modified":"2024-08-06T04:40:18Z","updated_at":"2026-11-03T02:22:15.605684Z"}],"ghsa":[{"id":"GHSA-37cv-ggjj-37qh","title":"A Directory Traversal vulnerability exists in the GNU patch before 2.7.4. A remote attacker can...","description":"A Directory Traversal vulnerability exists in the GNU patch before 2.7.4. A remote attacker can write to arbitrary files via a symlink attack in a patch file. NOTE: this issue exists because of an incomplete fix for CVE-2015-1196.","status":"published","published":"2022-05-24T17:01:51Z","modified":"2023-01-28T05:07:32Z","updated_at":"2026-11-02T14:44:32.600172Z"}],"nvd":[{"id":"CVE-2015-1396","description":"A Directory Traversal vulnerability exists in the GNU patch before 2.7.4. A remote attacker can write to arbitrary files via a symlink attack in a patch file. NOTE: this issue exists because of an incomplete fix for CVE-2015-1196.","status":"published","published":"2019-11-25T16:15:12.817Z","modified":"2026-06-17T00:22:21.537Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"primary"},{"version":"2.0","score":6.4,"vector":"AV:N/AC:L/Au:N/C:N/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:03:19.73542Z"}],"osv":[{"id":"CVE-2015-1396","description":"A Directory Traversal vulnerability exists in the GNU patch before 2.7.4. A remote attacker can write to arbitrary files via a symlink attack in a patch file. NOTE: this issue exists because of an incomplete fix for CVE-2015-1196.","status":"published","published":"2019-11-25T16:15:12Z","modified":"2026-04-10T03:45:06.967992Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T15:44:00.097545Z"},{"id":"DEBIAN-CVE-2015-1396","description":"A Directory Traversal vulnerability exists in the GNU patch before 2.7.4. A remote attacker can write to arbitrary files via a symlink attack in a patch file. NOTE: this issue exists because of an incomplete fix for CVE-2015-1196.","status":"published","published":"2019-11-25T16:15:12.817Z","modified":"2026-09-09T07:00:26.368862637Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T15:45:26.752992Z"},{"id":"UBUNTU-CVE-2015-1396","description":"A Directory Traversal vulnerability exists in the GNU patch before 2.7.4. A remote attacker can write to arbitrary files via a symlink attack in a patch file. NOTE: this issue exists because of an incomplete fix for CVE-2015-1196.","status":"published","published":"2015-01-28T00:00:00Z","modified":"2026-02-04T04:18:04.375981Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T15:54:09.721803Z"},{"id":"SUSE-SU-2015:1019-1","title":"Security update for patch","description":"The GNU patch utility was updated to 2.7.5 to fix three security issues and one non-security bug.\n\nThe following vulnerabilities were fixed:\n\n* CVE-2015-1196: directory traversal flaw when handling git-style patches. This could allow an attacker to overwrite arbitrary files by tricking the user into applying a specially crafted patch. (bsc#913678)\n* CVE-2015-1395: directory traversal flaw when handling patches which rename files. This could allow an attacker to overwrite arbitrary files by tricking the user into applying a specially crafted patch. (bsc#915328) \n* CVE-2015-1396: directory traversal flaw via symbolic links. This could allow an attacker to overwrite arbitrary files by tricking the user into applying a by applying a specially crafted patch. (bsc#915329)\n\nThe following bug was fixed:\n\n* bsc#904519:  Function names in hunks (from diff -p) are now preserved in  reject files.\n","status":"published","published":"2015-06-03T12:13:47Z","modified":"2026-02-04T04:24:50.376113Z","updated_at":"2026-11-02T15:53:41.276824Z"},{"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"}]}}
