Out-of-Bounds Access Vulnerability in GNU Patch Package - CVE-2016-10713

patch Updated 02 Oct 2025

Summary

13/02/2018
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2016-10713: 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. Affects patch versions < 2.7.6-1. Fixed in 2.7.6-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The GNU Patch package is a widely used utility that allows users to apply changes to files and manage patches in software development. It is essential for maintaining code integrity and facilitating updates. However, prior to version 2.7.6, it was found to have a critical vulnerability that could lead to severe consequences if exploited.

Vulnerability Detail

An issue was discovered in GNU Patch before version 2.7.6, specifically within the pch_write_line() function in pch.c. This vulnerability allows for out-of-bounds access, which can potentially lead to a Denial of Service (DoS) when a crafted input file is processed. The flaw arises from improper handling of input data, making it susceptible to malicious exploitation.

How To Fix

Minimum fixed version

2.7.6-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade patch

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can avoid processing untrusted or crafted input files that may exploit this vulnerability until the package is updated.

Conclusion

The GNU Patch package has a critical vulnerability (CVE-2016-10713) that can lead to Denial of Service through out-of-bounds access. Users are advised to update to version 2.7.6-1 or later to mitigate this risk. Until then, caution should be exercised when handling input files.

See every vulnerability recorded for patch →

Share this vulnerability

FAQ

CVE-2016-10713 is a vulnerability identifier for an out-of-bounds access issue found in the GNU Patch package before version 2.7.6.

Exploitation of this vulnerability can lead to Denial of Service (DoS), causing the application to crash or become unresponsive.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without needing to sign up.

If an immediate update is not possible, refrain from using untrusted input files that could exploit the vulnerability.

More information about GNU Patch can be found in its official documentation and repositories, which detail its features and usage.

Related vulnerabilities

Recent vulnerabilities recorded for patch.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

2.7.6-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade patch

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback