<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Cpe:2.3:a:pypdf_project:pypdf:*:*:*:*:*:*:*:* - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/cpes/cpe2.3apypdf_projectpypdf/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Thu, 23 Jul 2026 16:39:59 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/cpes/cpe2.3apypdf_projectpypdf/feed.xml" rel="self" type="application/rss+xml"/><item><title>pypdf: Possible infinite loop for not terminated inline images</title><link>https://feed.craftedsignal.io/briefs/2026-07-pypdf-infinite-loop/</link><pubDate>Thu, 23 Jul 2026 16:39:59 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-pypdf-infinite-loop/</guid><description>An attacker can exploit a vulnerability in the pypdf library by crafting a PDF containing a malformed, not terminated inline image. When this malicious PDF is processed by pypdf, such as during text extraction, it triggers an infinite loop, leading to a denial of service. The issue is resolved in pypdf version 6.14.1.</description><content:encoded><![CDATA[<p>A high-severity denial of service (DoS) vulnerability, tracked as CVE-2026-59936, has been identified in the widely used Python library <code>pypdf</code>. This vulnerability affects all <code>pypdf</code> versions prior to 6.14.1. An attacker can exploit this flaw by crafting a specially malformed PDF document that contains a non-terminated inline image. When a vulnerable application or system attempts to parse the content stream of such a PDF, for example, during text extraction, the <code>pypdf</code> library enters an uncontrolled infinite loop. This endless processing consumes excessive system resources, leading to the application becoming unresponsive and effectively causing a denial of service. The vulnerability was publicly disclosed on 2026-07-23 and a fix was released in <code>pypdf</code> version 6.14.1. Organizations using <code>pypdf</code> to process untrusted PDF inputs are at risk.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker crafts a malicious PDF document designed to exploit the <code>pypdf</code> library.</li>
<li>The crafted PDF incorporates a malformed, non-terminated inline image within one of its page content streams.</li>
<li>A target application or system processes this malicious PDF using a vulnerable version of the <code>pypdf</code> library (e.g., any version prior to 6.14.1).</li>
<li>During a PDF operation such as text extraction, <code>pypdf</code> attempts to parse the content stream containing the malformed inline image.</li>
<li>Upon encountering the improperly terminated inline image, the <code>pypdf</code> parsing logic enters an infinite loop, continuously attempting to process the malformed data.</li>
<li>This infinite loop leads to unchecked resource consumption (e.g., 100% CPU utilization), causing the application or system to hang or crash, resulting in a denial of service.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>The successful exploitation of CVE-2026-59936 results in a denial of service (DoS) condition. Any application or service that relies on the <code>pypdf</code> library to process potentially untrusted PDF documents is at risk. If an attacker delivers a malicious PDF, the affected application will experience severe resource exhaustion, primarily high CPU usage, and will become unresponsive or crash. This can lead to significant operational disruptions, unavailability of critical services, and potential data loss if processes are abruptly terminated. Organizations handling user-submitted PDFs, such as document processing platforms, web forms, or content management systems, are particularly vulnerable to this type of attack.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Immediately upgrade the <code>pypdf</code> library to version <code>6.14.1</code> or newer to remediate <code>CVE-2026-59936</code>.</li>
<li>If upgrading to <code>pypdf</code> version <code>6.14.1</code> is not immediately feasible, apply the specific code changes detailed in PR <code>#3891</code> as a temporary workaround for <code>CVE-2026-59936</code>.</li>
<li>Monitor systems that process PDF documents using <code>pypdf</code> for unusual spikes in CPU utilization or application unresponsiveness, which could indicate a denial of service attempt related to this vulnerability.</li>
</ul>
]]></content:encoded><category domain="severity">low</category><category domain="type">advisory</category><category>denial-of-service</category><category>vulnerability</category><category>python</category><category>library</category></item></channel></rss>