Denial of Service in QPDF due to Infinite Recursion and Stack Consumption (CVE-2017-9208)

qpdf Updated 02 Oct 2025

Summary

23/05/2017
N/A
Yes i
Medium
5.5

CVE-2017-9208: libqpdf.a in QPDF 6.0.0 allows remote attackers to cause a denial of service (infinite recursion and stack consumption) via a crafted PDF document, related to releaseResolved functions, aka qpdf-infiniteloop1. 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 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 an open-source command-line program and library for transforming PDF files. It provides functionality for manipulating and inspecting PDF documents. The vulnerability identified as CVE-2017-9208 affects QPDF versions 6.0.0 and earlier. This vulnerability allows remote attackers to cause a denial of service by exploiting an infinite recursion and stack consumption issue in the libqpdf.a library. The vulnerability is related to the releaseResolved functions in QPDF.

Vulnerability Detail

The vulnerability (CVE-2017-9208) in QPDF arises from a flaw in the libqpdf.a library. By crafting a malicious PDF document, remote attackers can trigger an infinite recursion and stack consumption, leading to a denial of service condition. This vulnerability can be exploited remotely, requiring no authentication or user interaction. The impact of this vulnerability is limited to a denial of service, with no direct risk of information disclosure or remote code execution.

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 known workaround for this vulnerability. It is essential to update QPDF to the fixed version to mitigate the risk of a denial of service attack.

Conclusion

The vulnerability (CVE-2017-9208) in QPDF exposes the software to a denial of service attack. To mitigate this risk, it is recommended to upgrade QPDF to version 7.0.0-r0 or later. This upgrade includes patches to address the infinite recursion and stack consumption issue. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for qpdf →

Share this vulnerability

FAQ

QPDF is an open-source command-line program and library for transforming PDF files. It provides functionality for manipulating and inspecting PDF documents.

The vulnerability (CVE-2017-9208) in QPDF allows remote attackers to cause a denial of service by exploiting an infinite recursion and stack consumption issue. However, there is no direct risk of information disclosure or remote code execution.

To fix this vulnerability, it is recommended to upgrade QPDF to version 7.0.0-r0 or later. This upgrade includes patches to address the infinite recursion and stack consumption issue.

No, there is no known workaround for this vulnerability. It is crucial to update QPDF to the fixed version to mitigate the risk of a denial of service attack.

Yes, this vulnerability can be exploited remotely without requiring authentication or user interaction.

Related vulnerabilities

Recent vulnerabilities recorded for qpdf.

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