Stack-consumption vulnerability in libqpdf in QPDF 6.0.0

qpdf Updated 02 Oct 2025

Summary

25/07/2017
N/A
Yes i
Medium
5.5

CVE-2017-11626: A stack-consumption vulnerability was found in libqpdf in QPDF 6.0.0, which allows attackers to cause a denial of service via a crafted file, related to the QPDFTokenizer::resolveLiteral function in QPDFTokenizer.cc afte... Affects qpdf across 2 version ranges.

< 7.0.0-r0 < b7302a9b727d28d59bff0f0f7d8d62ff6486aef6

Fixed in 7.0.0-r0. 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

QPDF is an open-source library and command-line tool for manipulating PDF files. It provides functionality for reading, writing, and editing PDF documents. The vulnerability affects version 6.0.0 of the library and is related to the QPDFTokenizer::resolveLiteral function in QPDFTokenizer.cc. This function can enter an infinite loop after four consecutive calls to QPDFObjectHandle::parseInternal, leading to a stack-consumption issue.

Vulnerability Detail

The stack-consumption vulnerability in libqpdf allows attackers to cause a denial of service by exploiting a crafted file. By triggering the infinite loop in the QPDFTokenizer::resolveLiteral function, an attacker can exhaust the stack, resulting in the application becoming unresponsive or crashing. This vulnerability has a CVSS score of 5.5, indicating a moderate severity level.

How To Fix

Minimum fixed version

7.0.0-r0

This is the first release that contains the fix.

sudo apk add --upgrade qpdf

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

Workaround

There is no specific workaround provided for this vulnerability. The recommended approach is to update to a patched version of the qpdf package.

Conclusion

In conclusion, the stack-consumption vulnerability in libqpdf can lead to a denial of service if exploited by an attacker. It is crucial to update to a patched version of the qpdf package to mitigate the risk. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for qpdf →

Share this vulnerability

FAQ

QPDF is an open-source library and command-line tool for manipulating PDF files. It provides functionality for reading, writing, and editing PDF documents.

The vulnerability allows attackers to cause a denial of service by exploiting a crafted file. This can result in the application becoming unresponsive or crashing.

The CVSS score of this vulnerability is 5.5, indicating a moderate severity level.

To fix this vulnerability, update to version 7.0.0-r0 or later of the qpdf package.

There is no specific workaround provided for this vulnerability. The recommended approach is to update to a patched version of the qpdf package.

Related vulnerabilities

Recent vulnerabilities recorded for qpdf.

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

7.0.0-r0

This is the first release that contains the fix.

sudo apk add --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