Heap-Based Buffer Overflow in bsdiff Package: CVE-2014-9862

bsdiff Updated 02 Oct 2025

Summary

22/07/2016
N/A
Yes i
High
7.8

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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The bsdiff package is a tool used for creating and applying binary patches. It is widely utilized in various software applications to efficiently update files without needing to replace the entire file. The package is known for its ability to handle large files and create small patch files. However, prior to version 4.3-17, bsdiff was vulnerable to an integer signedness error, which could lead to severe security risks.

Vulnerability Detail

CVE-2014-9862 is an integer signedness error found in the bspatch.c file of the bsdiff tool. This vulnerability allows remote attackers to execute arbitrary code or cause a denial of service through a crafted patch file. The flaw arises from improper handling of signed integers, leading to a heap-based buffer overflow. This can result in unauthorized access to system resources and potential exploitation of the affected system.

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

As a temporary workaround, users can avoid applying untrusted patch files until the package is updated. Additionally, implementing strict access controls on systems using bsdiff can help mitigate the risk of exploitation.

Conclusion

CVE-2014-9862 is a significant vulnerability in the bsdiff package that poses serious security risks. Users are strongly advised to update to the latest version to mitigate potential threats. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.

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 a crafted patch file.

If your system uses an affected version of bsdiff, it may be susceptible to remote code execution or denial of service attacks, compromising system integrity and availability.

All versions of bsdiff prior to 4.3-17 are affected by this vulnerability.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Simply upload your manifest file, like package-lock.json, to check for vulnerabilities.

The CVSS score of CVE-2014-9862 is 7.8, indicating a high severity level.

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