{"id":"CVE-2016-10713","aliases":["ALPINE-CVE-2016-10713","DEBIAN-CVE-2016-10713","EUVD-2016-1712","GHSA-8m7f-5cc5-rjgp","MGASA-2018-0277","RHSA-2019:2033","SUSE-SU-2018:1128-1","SUSE-SU-2018:1162-1","UBUNTU-CVE-2016-10713","USN-3624-1","openSUSE-SU-2024:11151-1"],"status":"published","title":"An issue was discovered in GNU patch before 2.7.6. Out-of-bounds access within pch_write_line()...","description":"An issue was discovered in GNU patch before 2.7.6. Out-of-bounds access within pch_write_line() in pch.c can possibly lead to DoS via a crafted input 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-09","score":0.01558,"percentile":0.75382,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-119"],"published":"2018-02-13T00:00:00Z","modified":"2026-09-22T07:00:37Z","fixes":[{"ecosystem":"Alpine:v3.4","package":"patch","fixed_in":["2.7.5-r3"],"sources":["osv"]},{"ecosystem":"Alpine:v3.5","package":"patch","fixed_in":["2.7.5-r3"],"sources":["osv"]},{"ecosystem":"Alpine:v3.6","package":"patch","fixed_in":["2.7.5-r3"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"patch","fixed_in":["2.7.6-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"patch","fixed_in":["2.7.6-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"patch","fixed_in":["2.7.6-1"],"sources":["osv"]},{"ecosystem":"Ubuntu:14.04:LTS","package":"patch","fixed_in":["2.7.1-4ubuntu2.4"],"sources":["osv"]},{"ecosystem":"Ubuntu:16.04:LTS","package":"patch","fixed_in":["2.7.5-1ubuntu0.16.04.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.4","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.5-r3"}]}]},{"source":"osv","ecosystem":"Alpine:v3.5","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.5-r3"}]}]},{"source":"osv","ecosystem":"Alpine:v3.6","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.5-r3"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.6-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.6-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.6-1"}]}]},{"source":"osv","ecosystem":"Mageia:5","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.6-1.mga5"}]}],"bundled":3},{"source":"osv","ecosystem":"Mageia:6","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.6-1.mga6"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::client","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.7.1-11.el7"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::client","package":"patch-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.7.1-11.el7"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::computenode","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.7.1-11.el7"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::computenode","package":"patch-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.7.1-11.el7"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::server","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.7.1-11.el7"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::server","package":"patch-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.7.1-11.el7"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::workstation","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.7.1-11.el7"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::workstation","package":"patch-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.7.1-11.el7"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Desktop 12 SP3","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.5-8.5.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP3","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.5-8.5.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP3","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.5-8.5.1"}]}],"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.4"}]}],"versions":["2.7.1-3","2.7.1-4","2.7.1-4ubuntu1","2.7.1-4ubuntu2","2.7.1-4ubuntu2.3"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.5-1ubuntu0.16.04.1"}]}],"versions":["2.7.5-1"]},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.1-4ubuntu2.4"}]}],"versions":["2.7.1-3","2.7.1-4","2.7.1-4ubuntu1","2.7.1-4ubuntu2","2.7.1-4ubuntu2.3"],"bundled":3},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.5-1ubuntu0.16.04.1"}]}],"versions":["2.7.5-1"],"bundled":3},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"patch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.6-3.43"}]}],"bundled":3}],"products":[{"vendor":"gnu","product":"patch"}],"references":[{"url":"https://usn.ubuntu.com/3624-2/","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","web"]},{"url":"https://usn.ubuntu.com/3624-1/","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","web"]},{"url":"https://git.savannah.gnu.org/cgit/patch.git/commit/src/pch.c?id=a0d7fe4589651c64bd16ddaaa634030bb0455866","tags":["x_refsource_MISC","x_transferred","Patch","Vendor Advisory","fix"]},{"url":"http://www.securityfocus.com/bid/103063","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry","advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2019:2033","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-10713","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-8m7f-5cc5-rjgp"},{"url":"https://security.alpinelinux.org/vuln/CVE-2016-10713","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2016-10713","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2018-0277.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=22587","tags":["report"]},{"url":"https://access.redhat.com/security/updates/classification/#low","tags":["article"]},{"url":"https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/7.7_release_notes/index","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1545053","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1545405","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1626473","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1653294","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2019/rhsa-2019_2033.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2016-10713","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-10713","tags":["advisory","report"]},{"url":"https://savannah.gnu.org/bugs/index.php?45990","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2018-6952","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-6952","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-6952","tags":["advisory"]},{"url":"https://www.suse.com/support/update/announcement/2018/suse-su-20181128-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1080918","tags":["report"]},{"url":"https://bugzilla.suse.com/1080951","tags":["report"]},{"url":"https://bugzilla.suse.com/1088420","tags":["report"]},{"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://www.suse.com/security/cve/CVE-2018-6951","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/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://ubuntu.com/security/CVE-2016-10713","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-3624-1","tags":["advisory"]},{"url":"https://ubuntu.com/security/notices/USN-3624-2","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2018-6951","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-1000156","tags":["report"]},{"url":"","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2016-10713","description":"An issue was discovered in GNU patch before 2.7.6. Out-of-bounds access within pch_write_line() in pch.c can possibly lead to DoS via a crafted input file.","status":"published","published":"2018-02-13T19:00:00Z","modified":"2024-08-06T03:30:20.26Z","updated_at":"2026-11-02T14:33:31.450804Z"}],"euvd":[{"id":"EUVD-2016-1712","description":"An issue was discovered in GNU patch before 2.7.6. Out-of-bounds access within pch_write_line() in pch.c can possibly lead to DoS via a crafted input file.","status":"published","published":"2018-02-13T19:00:00Z","modified":"2024-08-06T03:30:20Z","updated_at":"2026-11-03T02:22:23.66215Z"}],"ghsa":[{"id":"GHSA-8m7f-5cc5-rjgp","title":"An issue was discovered in GNU patch before 2.7.6. Out-of-bounds access within pch_write_line()...","description":"An issue was discovered in GNU patch before 2.7.6. Out-of-bounds access within pch_write_line() in pch.c can possibly lead to DoS via a crafted input file.","status":"published","published":"2022-05-14T03:31:07Z","modified":"2023-02-02T05:08:01Z","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"}],"cwes":["CWE-119"],"updated_at":"2026-11-02T14:52:38.632929Z"}],"nvd":[{"id":"CVE-2016-10713","description":"An issue was discovered in GNU patch before 2.7.6. Out-of-bounds access within pch_write_line() in pch.c can possibly lead to DoS via a crafted input file.","status":"published","published":"2018-02-13T19:29:00.277Z","modified":"2026-06-17T00:40:12.97Z","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":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-119"],"updated_at":"2026-11-02T14:03:39.176887Z"}],"osv":[{"id":"ALPINE-CVE-2016-10713","description":"An issue was discovered in GNU patch before 2.7.6. Out-of-bounds access within pch_write_line() in pch.c can possibly lead to DoS via a crafted input file.","status":"published","published":"2018-02-13T19:29:00.277Z","modified":"2026-09-22T06:30:03.780530314Z","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:27:46.318571Z"},{"id":"CVE-2016-10713","description":"An issue was discovered in GNU patch before 2.7.6. Out-of-bounds access within pch_write_line() in pch.c can possibly lead to DoS via a crafted input file.","status":"published","published":"2018-02-13T19:29:00.277Z","modified":"2026-04-16T06:15:33.566797351Z","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:01.531338Z"},{"id":"DEBIAN-CVE-2016-10713","description":"An issue was discovered in GNU patch before 2.7.6. Out-of-bounds access within pch_write_line() in pch.c can possibly lead to DoS via a crafted input file.","status":"published","published":"2018-02-13T19:29:00.277Z","modified":"2026-09-22T07:00:37.808657753Z","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:27.323751Z"},{"id":"RHSA-2019:2033","title":"Red Hat Security Advisory: patch security and bug fix update","status":"published","published":"2024-09-16T01:52:38Z","modified":"2026-06-26T10:42:43Z","cvss":[{"version":"3.0","score":3.3,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","level":"low"}],"updated_at":"2026-11-02T15:53:06.0195Z"},{"id":"UBUNTU-CVE-2016-10713","description":"An issue was discovered in GNU patch before 2.7.6. Out-of-bounds access within pch_write_line() in pch.c can possibly lead to DoS via a crafted input file.","status":"published","published":"2018-02-13T00:00:00Z","modified":"2026-02-04T03:41:23.29324Z","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:11.492576Z"},{"id":"MGASA-2018-0277","title":"Updated patch packages fix security vulnerabilities","description":"Updated patch package fixes security vulnerabilities:\n\nIt was discovered that Patch incorrectly handled certain files. An attacker\ncould possibly use this to cause a denial of service (CVE-2016-10713).\n\nIt was discovered that Patch incorrectly handled certain inputs. An attacker\ncould possibly use this to cause a denial of service (CVE-2018-6951).\n\nIt was discovered that Patch incorrectly handled certain input validation. An\nattacker could possibly use this to execute arbitrary code (CVE-2018-1000156).\n","status":"published","published":"2018-06-14T18:14:36Z","modified":"2026-04-16T06:23:16.715577638Z","updated_at":"2026-11-02T15:49:40.442238Z"},{"id":"openSUSE-SU-2024:11151-1","title":"patch-2.7.6-3.43 on GA media","description":"These are all security issues fixed in the patch-2.7.6-3.43 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T02:37:07.616387Z","updated_at":"2026-11-02T16:58:34.894275Z"},{"id":"SUSE-SU-2018:1128-1","title":"Security update for patch","description":"This update for patch fixes the following issues:\n\nSecurity issues fixed:\n\n- CVE-2018-1000156: Malicious patch files cause ed to execute arbitrary commands (bsc#1088420).\n- CVE-2018-6951: Fixed NULL pointer dereference in the intuit_diff_type function in pch.c (bsc#1080918).\n- CVE-2016-10713: Fixed out-of-bounds access within pch_write_line() in pch.c (bsc#1080918).\n\n","status":"published","published":"2018-05-02T15:46:52Z","modified":"2025-05-02T04:05:06.204823Z","updated_at":"2026-11-02T15:53:44.594517Z"},{"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-3624-1","title":"patch vulnerabilities","description":"It was discovered that Patch incorrectly handled certain files. An attacker\ncould possibly use this to cause a denial of service. (CVE-2016-10713)\n\nIt was discovered that Patch incorrectly handled certain input validation. An\nattacker could possibly use this to execute arbitrary code. (CVE-2018-1000156)\n\nIt was discovered that Patch incorrectly handled certain inputs. An attacker\ncould possibly use this to cause a denial of service. (CVE-2018-6951)\n","status":"published","published":"2018-04-10T16:45:42Z","modified":"2026-02-10T04:41:19Z","updated_at":"2026-11-02T16:58:13.496563Z"}]}}
