Heap-Based Buffer Overflow Vulnerability in bsdiff Package

bsdiff Updated 02 Oct 2025

Summary

22/07/2016
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2014-9862: Integer signedness error in bspatch.c in bspatch in bsdiff, as used in Apple OS X before 10.11.6 and other products, allows remote attackers to execute arbitrary code or cause a denial of service (heap-based buffer overf... Affects bsdiff versions < 4.3-17. Fixed in 4.3-17. 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

bsdiff is a tool used for creating and applying binary patches. It is widely utilized in various software applications to efficiently update files by only transmitting the differences between the original and modified versions. However, bsdiff has been found to have a critical vulnerability that affects its integrity and security, particularly in versions prior to 4.3-17 across multiple Debian releases.

Vulnerability Detail

The vulnerability, identified as CVE-2014-9862, stems from an integer signedness error in the bspatch.c file of the bsdiff tool. This flaw allows remote attackers to exploit the software by crafting malicious patch files, which can lead to arbitrary code execution or a denial of service due to a heap-based buffer overflow. The vulnerability is particularly concerning as it can be triggered by untrusted input, making systems using vulnerable versions of bsdiff susceptible to attacks.

How To Fix

Minimum fixed version

4.3-17

This is the first release that contains the fix.

sudo apt-get install --only-upgrade bsdiff

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

Workaround

If immediate patching is not feasible, consider restricting access to the bsdiff tool or validating patch files before applying them to mitigate potential risks. Additionally, using alternative patching tools that do not have this vulnerability may be a temporary solution.

Conclusion

The bsdiff package has a critical vulnerability (CVE-2014-9862) that can lead to severe security risks if not addressed. Users are strongly advised to update to version 4.3-17 or later to protect their systems from potential exploitation. For those unable to update immediately, implementing workarounds can help mitigate risks until a proper fix is applied.

See every vulnerability recorded for bsdiff →

Share this vulnerability

FAQ

CVE-2014-9862 is a vulnerability in the bsdiff package that allows remote attackers to execute arbitrary code or cause a denial of service through crafted patch files.

All versions of bsdiff prior to 4.3-17 are affected by this vulnerability across multiple Debian releases.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

If you cannot update immediately, consider restricting access to the bsdiff tool and validating patch files before applying them as a temporary measure.

The consequences include the possibility of arbitrary code execution by attackers and denial of service, which can compromise system integrity and availability.

Related vulnerabilities

Recent vulnerabilities recorded for bsdiff.

How To Fix

Minimum fixed version

4.3-17

This is the first release that contains the fix.

sudo apt-get install --only-upgrade bsdiff

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