CVE-2016-10713
An issue was discovered in GNU patch before 2.7.6. Out-of-bounds access within pch_write_line()...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
5.5
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.
- Record
CVE-2016-10713- CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:N/A:P - Weakness
- CWE-119
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2016-10713- Updated
- 2026-11-02
EUVDEUVD-2016-1712 No score
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.
- Record
EUVD-2016-1712- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-8m7f-5cc5-rjgp
5.5
An issue was discovered in GNU patch before 2.7.6. Out-of-bounds access within pch_write_line()...
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.
- Record
GHSA-8m7f-5cc5-rjgp- CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-119
- Updated
- 2026-11-02
OSVALPINE-CVE-2016-10713
5.5
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.
- Record
ALPINE-CVE-2016-10713- CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSV
5.5
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.
- Record
CVE-2016-10713- CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 8 moreShow less
OSVDEBIAN-CVE-2016-10713
5.5
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.
- Record
DEBIAN-CVE-2016-10713- CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVRHSA-2019:2033
3.3
Red Hat Security Advisory: patch security and bug fix update
- Record
RHSA-2019:2033- CVSS 3.0
- 3.3 Low
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-02
OSVUBUNTU-CVE-2016-10713
5.5
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.
- Record
UBUNTU-CVE-2016-10713- CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVMGASA-2018-0277 No score
Updated patch packages fix security vulnerabilities
Updated patch package fixes security vulnerabilities:
It was discovered that Patch incorrectly handled certain files. An attacker could possibly use this to cause a denial of service (CVE-2016-10713).
It was discovered that Patch incorrectly handled certain inputs. An attacker could possibly use this to cause a denial of service (CVE-2018-6951).
It was discovered that Patch incorrectly handled certain input validation. An attacker could possibly use this to execute arbitrary code (CVE-2018-1000156).
- Record
MGASA-2018-0277- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11151-1 No score
patch-2.7.6-3.43 on GA media
These are all security issues fixed in the patch-2.7.6-3.43 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11151-1- Updated
- 2026-11-02
OSVSUSE-SU-2018:1128-1 No score
Security update for patch
This update for patch fixes the following issues:
Security issues fixed:
- CVE-2018-1000156: Malicious patch files cause ed to execute arbitrary commands (bsc#1088420).
- CVE-2018-6951: Fixed NULL pointer dereference in the intuit_diff_type function in pch.c (bsc#1080918).
- CVE-2016-10713: Fixed out-of-bounds access within pch_write_line() in pch.c (bsc#1080918).
- Record
SUSE-SU-2018:1128-1- 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
OSVUSN-3624-1 No score
patch vulnerabilities
It was discovered that Patch incorrectly handled certain files. An attacker could possibly use this to cause a denial of service. (CVE-2016-10713)
It was discovered that Patch incorrectly handled certain input validation. An attacker could possibly use this to execute arbitrary code. (CVE-2018-1000156)
It was discovered that Patch incorrectly handled certain inputs. An attacker could possibly use this to cause a denial of service. (CVE-2018-6951)
- Record
USN-3624-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
patchAlpine:v3.4 |
before 2.7.5-r3 | 2.7.5-r3 |
patchAlpine:v3.5 |
before 2.7.5-r3 | 2.7.5-r3 |
patchAlpine:v3.6 |
before 2.7.5-r3 | 2.7.5-r3 |
patchDebian:12 |
before 2.7.6-1 | 2.7.6-1 |
patchDebian:13 |
before 2.7.6-1 | 2.7.6-1 |
patchDebian:14 |
before 2.7.6-1 | 2.7.6-1 |
patchMageia:5 |
before 2.7.6-1.mga5 | 2.7.6-1.mga5 |
patchMageia:6 |
before 2.7.6-1.mga6 | 2.7.6-1.mga6 |
patchRed Hat:enterprise_linux:7::client |
before 0:2.7.1-11.el7 | 0:2.7.1-11.el7 |
patch-debuginfoRed Hat:enterprise_linux:7::client |
before 0:2.7.1-11.el7 | 0:2.7.1-11.el7 |
Show 17 moreShow less
| Package | Affected | Fixed |
|---|---|---|
patchRed Hat:enterprise_linux:7::computenode |
before 0:2.7.1-11.el7 | 0:2.7.1-11.el7 |
patch-debuginfoRed Hat:enterprise_linux:7::computenode |
before 0:2.7.1-11.el7 | 0:2.7.1-11.el7 |
patchRed Hat:enterprise_linux:7::server |
before 0:2.7.1-11.el7 | 0:2.7.1-11.el7 |
patch-debuginfoRed Hat:enterprise_linux:7::server |
before 0:2.7.1-11.el7 | 0:2.7.1-11.el7 |
patchRed Hat:enterprise_linux:7::workstation |
before 0:2.7.1-11.el7 | 0:2.7.1-11.el7 |
patch-debuginfoRed Hat:enterprise_linux:7::workstation |
before 0:2.7.1-11.el7 | 0:2.7.1-11.el7 |
patchSUSE:Linux Enterprise Desktop 12 SP3 |
before 2.7.5-8.5.1 | 2.7.5-8.5.1 |
patchSUSE:Linux Enterprise Server 12 SP3 |
before 2.7.5-8.5.1 | 2.7.5-8.5.1 |
patchSUSE:Linux Enterprise Server for SAP Applications 12 SP3 |
before 2.7.5-8.5.1 | 2.7.5-8.5.1 |
patchSUSE:Linux Enterprise Point of Sale 11 SP3 |
before 2.5.9-252.22.7.1 | 2.5.9-252.22.7.1 |
patchSUSE:Linux Enterprise Server 11 SP3-LTSS |
before 2.5.9-252.22.7.1 | 2.5.9-252.22.7.1 |
patchSUSE:Linux Enterprise Server 11 SP3-TERADATA |
before 2.5.9-252.22.7.1 | 2.5.9-252.22.7.1 |
patchSUSE:Linux Enterprise Server 11 SP4 |
before 2.5.9-252.22.7.1 | 2.5.9-252.22.7.1 |
patchSUSE:Linux Enterprise Server for SAP Applications 11 SP4 |
before 2.5.9-252.22.7.1 | 2.5.9-252.22.7.1 |
patchUbuntu:14.04:LTS |
before 2.7.1-4ubuntu2.4, plus listed versions 2.7.1-32.7.1-42.7.1-4ubuntu12.7.1-4ubuntu22.7.1-4ubuntu2.3 |
2.7.1-4ubuntu2.4 |
patchUbuntu:16.04:LTS |
before 2.7.5-1ubuntu0.16.04.1, plus listed versions 2.7.5-1 |
2.7.5-1ubuntu0.16.04.1 |
patchopenSUSE:Tumbleweed |
before 2.7.6-3.43 | 2.7.6-3.43 |
History
| Recorded | Changed | Sources |
|---|---|---|
| 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-2016-10713 is a medium vulnerability (CVSS 5.5) in Gnu Patch, published February 13, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.56%, the 75th percentile. Fixed in patch 2.7.5-r3.
References
usn.ubuntu.com/3624-2
usn.ubuntu.com/3624-1
git.savannah.gnu.org/cgit/patch.git/commit/src/pch.c?id=a0d7fe4589651c64bd16ddaaa634030bb0455866
securityfocus.com/bid/103063
access.redhat.com/errata/RHSA-2019:2033
nvd.nist.gov/vuln/detail/CVE-2016-10713
Show 36 moreShow less
github.com/advisories/GHSA-8m7f-5cc5-rjgp
security.alpinelinux.org/vuln/CVE-2016-10713
security-tracker.debian.org/tracker/CVE-2016-10713
advisories.mageia.org/MGASA-2018-0277.html
bugs.mageia.org/show_bug.cgi?id=22587
access.redhat.com/security/updates/classification
access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/7.7_release_notes/index
bugzilla.redhat.com/show_bug.cgi?id=1545053
bugzilla.redhat.com/show_bug.cgi?id=1545405
bugzilla.redhat.com/show_bug.cgi?id=1626473
bugzilla.redhat.com/show_bug.cgi?id=1653294
security.access.redhat.com/data/csaf/v2/advisories/2019/rhsa-2019_2033.json
access.redhat.com/security/cve/CVE-2016-10713
cve.org/CVERecord?id=CVE-2016-10713
savannah.gnu.org/bugs/index.php?45990
access.redhat.com/security/cve/CVE-2018-6952
cve.org/CVERecord?id=CVE-2018-6952
nvd.nist.gov/vuln/detail/CVE-2018-6952
suse.com/support/update/announcement/2018/suse-su-20181128-1
bugzilla.suse.com/1080918
bugzilla.suse.com/1080951
bugzilla.suse.com/1088420
suse.com/security/cve/CVE-2016-10713
suse.com/security/cve/CVE-2018-1000156
suse.com/security/cve/CVE-2018-6951
suse.com/support/update/announcement/2018/suse-su-20181162-1
bugzilla.suse.com/1059698
bugzilla.suse.com/662957
bugzilla.suse.com/914891
suse.com/security/cve/CVE-2010-4651
suse.com/security/cve/CVE-2014-9637
ubuntu.com/security/CVE-2016-10713
ubuntu.com/security/notices/USN-3624-1
ubuntu.com/security/notices/USN-3624-2
ubuntu.com/security/CVE-2018-6951
ubuntu.com/security/CVE-2018-1000156