Heap Buffer Overflow in qpdf Package: Critical Vulnerability Overview

qpdf Updated 02 Oct 2025

Summary

29/02/2024
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2024-24246: Heap Buffer Overflow vulnerability in qpdf 11.9.0 allows attackers to crash the application via the std::__shared_count() function at /bits/shared_ptr_base.h. Affects qpdf versions < 11.9.0-1. Fixed in 11.9.0-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 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

qpdf is a powerful open-source tool for PDF manipulation, allowing users to inspect, modify, and create PDF files. It is widely used in various applications for tasks such as merging, splitting, and encrypting PDFs. However, a critical vulnerability has been identified in versions prior to 11.9.0-1, which could lead to severe security risks.

Vulnerability Detail

The vulnerability is a Heap Buffer Overflow in qpdf version 11.9.0, specifically occurring in the std::__shared_count() function located in /bits/shared_ptr_base.h. This flaw can be exploited by attackers to crash the application, potentially leading to denial of service or further exploitation of the system. The issue arises from improper handling of memory allocation, which can allow malicious actors to manipulate the application's memory.

How To Fix

Minimum fixed version

11.9.0-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade qpdf

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

Workaround

As a temporary measure, users can avoid using the affected features of qpdf until the package is updated. Additionally, running the application in a controlled environment or sandbox may help mitigate potential risks.

Conclusion

The Heap Buffer Overflow vulnerability in the qpdf package poses significant risks to users running affected versions. It is crucial to update to the latest patched version to safeguard against potential exploits. Users are encouraged to monitor their systems and utilize tools like Vulert for real-time vulnerability alerts.

See every vulnerability recorded for qpdf →

Share this vulnerability

FAQ

A Heap Buffer Overflow occurs when a program writes more data to a buffer located on the heap than it can hold, potentially overwriting adjacent memory and leading to unpredictable behavior.

Exploitation of this vulnerability can lead to application crashes, denial of service, and may allow attackers to execute arbitrary code, compromising system security.

Yes, you can use Vulert, which monitors open-source vulnerabilities in your software. By using the Vulert playground, you can check if your application is affected by this vulnerability without any signup.

If immediate updates are not possible, consider using workarounds such as limiting access to the application or running it in a secure environment until the update can be applied.

Detailed information can be found in the official Debian CVE database and through security advisories related to the qpdf package.

Related vulnerabilities

Recent vulnerabilities recorded for qpdf.

How To Fix

Minimum fixed version

11.9.0-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade qpdf

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