Denial of Service Vulnerability in GNU Patch Package

patch Updated 02 Oct 2025

Summary

25/08/2017
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2014-9637: 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. Affects patch versions < 2.7.1-7. Fixed in 2.7.1-7. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

GNU Patch is a utility that allows users to apply changes to files based on differences between file versions. It is widely used in software development for managing changes in source code. The package is essential for developers who need to maintain and update code efficiently. However, it has been found to be vulnerable to a specific issue that can lead to denial of service.

Vulnerability Detail

The vulnerability, identified as CVE-2014-9637, affects GNU Patch versions 2.7.2 and earlier. It allows remote attackers to exploit the software by sending a crafted diff file, which can lead to excessive memory consumption and segmentation faults. This can result in the application crashing, thereby denying service to legitimate users. The issue arises from improper handling of certain input files, making it critical for users to address this vulnerability promptly.

How To Fix

Minimum fixed version

2.7.1-7

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 diff files until the package is updated. This can help prevent potential exploitation of the vulnerability while a permanent fix is being implemented.

Conclusion

The GNU Patch package has a critical vulnerability that can lead to denial of service. Users are advised to update to the patched version to secure their systems. Temporary workarounds are available, but updating is the most effective solution.

See every vulnerability recorded for patch →

Share this vulnerability

FAQ

CVE-2014-9637 is a vulnerability in GNU Patch that allows remote attackers to cause denial of service through crafted diff files.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The vulnerability can lead to memory consumption issues and segmentation faults, causing the application to crash and deny service to users.

Yes, the patched version of the GNU Patch package is 2.7.1-7 or later. Users should update to this version to mitigate the risk.

If immediate updates are not possible, avoid processing untrusted diff files as a temporary workaround to minimize risk.

Related vulnerabilities

Recent vulnerabilities recorded for patch.

How To Fix

Minimum fixed version

2.7.1-7

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