All vulnerabilities

Servers and applications

GHSA-36h2-7775-g5c5

Crafted animated WebP hangs the PDF export

Severity
Medium
Published
2 Dec 2026
Last changed
2 Dec 2026
Added to UpHeron
2 Dec 2026
Weakness
Infinite loop (CWE-835)
Sources
Project advisories (GitHub)

Description

Affected: 17.9.6. Older versions not tested. The same code is on dev.

In app/models/exports/pdf/common/attachments.rb, extract_first_webp_frame walks the chunks in a while loop. For an ANMF frame of an unknown type, such as ALPH, "next unless webp_type..." restarts the loop without moving pos, so the loop never ends.

Suggested fix: return instead of next.

A user who can attach a file could keep a PDF export from finishing. Limit of my test: I called the function directly. I did not run a full upload and export, and I did not measure the effect on the worker.

I used AI assistance to find and write up this report.

From opf/openproject's security advisory.

Workarounds

This was fixed as part of the 18.0 release: https://community.openproject.org/projects/OP/work_packages/OP-20721

Workarounds as given by opf/openproject's security advisory.

Affected software

SoftwareAffected versions
OpenProjectServers and applications · github:opf/openproject
  • Version 17.9.6

About OpenProject

web-based project management system

From Wikidata, CC0 1.0.
Total downloads
30M+OpenProject
Docker Hub pulls
6,539,922Docker Hub, 29 Nov 2026
GitHub stars
17,836GitHub, 29 Nov 2026
Forks
3,855GitHub, 29 Nov 2026
Latest release
v17.8.3GitHub, 29 Nov 2026
Released
19 Nov 2026GitHub
License
GNU General Public License, version 3.0Wikidata
Written in
RubyWikidata
First published on GitHub
28 Nov 2012GitHub

References