CVE-2026-77467

Lychee: A single 383-byte PDF causes ~184 seconds of CPU consumption in the real processing path

Published Oct 15, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
Description
Lychee is a free, open-source photo-management tool. Prior to 7.7.0, Lychee enables ImageMagick PDF support with Ghostscript but does not apply an effective pre-render limit to PDF page dimensions in ImagickHandler::loadPdf(). An authenticated user who can upload a small PDF with an oversized /MediaBox can cause Imagick::readImage() to consume substantial CPU before failing to produce an image. When QUEUE_CONNECTION selects synchronous processing the request can occupy a web worker, while the official asynchronous Docker configuration can clog the shared image-processing queue and delay other work. The advisory did not identify a Ghostscript sandbox escape. This issue is fixed in version 7.7.0.

Analysis

AI-generated

Technical impact

Prior to v7.7.0, Lychee’s image‑handling component uses ImageMagick and Ghostscript to render PDFs without bounding the media box size. An attacker who can authenticate and upload a small PDF with an oversized /MediaBox can trigger Imagick::readImage to consume large amounts of CPU time before failing, resulting in a high‑impact denial of service that stalls image processing. The flaw is caused by the absence of a pre‑render limit on page dimensions, leading to uncontrolled resource consumption (CWE‑400) and potential buffer exhaustion (CWE‑770).

Affected Systems

The vulnerability affects Lychee versions earlier than 7.7.0. It is relevant for installations that allow authenticated users to upload PDFs via ImagickHandler::loadPdf(). The issue exists in the core Lychee application shipped by LycheeOrg and is not limited to a particular deployment mode.

Risk and Exploitability

The CVSS score of 7.1 classifies this as a high‑severity vulnerability, but the EPSS score is below 1 %, indicating a low probability of active exploitation at the time of analysis. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires victim credentials and the ability to upload a malicious PDF, so the attack vector is an authenticated web upload. In configurations where the web worker processes synchronously, the request can occupy a worker for up to several minutes, while asynchronous Docker farms risk clogging a shared processing queue and delaying other tasks.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Lychee to version 7.7.0 or later, which imposes proper limits on PDF page dimensions.
  • If an immediate update is not possible, restrict PDF upload privileges to a minimal set of trusted administrators and consider disabling PDF support entirely until a patch is applied.
  • Monitor CPU usage on image‑processing workers and throttle or terminate long‑running tasks that exceed a reasonable threshold to prevent systemwide service degradation.

Generated by OpenCVE AI on October 16, 2026 at 20:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Lycheeorg
Lycheeorg lychee
Vendors & Products Lycheeorg
Lycheeorg lychee
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Lychee is a free, open-source photo-management tool. Prior to 7.7.0, Lychee enables ImageMagick PDF support with Ghostscript but does not apply an effective pre-render limit to PDF page dimensions in ImagickHandler::loadPdf(). An authenticated user who can upload a small PDF with an oversized /MediaBox can cause Imagick::readImage() to consume substantial CPU before failing to produce an image. When QUEUE_CONNECTION selects synchronous processing the request can occupy a web worker, while the official asynchronous Docker configuration can clog the shared image-processing queue and delay other work. The advisory did not identify a Ghostscript sandbox escape. This issue is fixed in version 7.7.0.
Title Lychee: A single 383-byte PDF causes ~184 seconds of CPU consumption in the real processing path
Weaknesses CWE-400
CWE-770
References
Metrics cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 20, 2026, 2:50 AM
Reserved
Aug 20, 2026, 8:07 PM
Status
Deferred
Published
Oct 15, 2026, 5:17 PM
Modified
Oct 20, 2026, 3:17 AM