All vulnerabilities

Servers and applications

GHSA-ppmw-74cv-cr98

Attachments on other users' work package comments can be deleted and added with `edit_own_work_package_comments` (Reader role)

Severity
Medium 4.3
Published
3 Dec 2026
Last changed
3 Dec 2026
Added to UpHeron
3 Dec 2026
Fixed in
17.9.9
Weakness
Authorization bypass through a user-controlled key (IDOR) (CWE-639)Incorrect authorization (CWE-863)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Change some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
Sources
Project advisories (GitHub)

Description

A project member whose role has edit_own_work_package_comments (the seeded "Reader" role has it) can delete attachments that belong to other users' comments on work packages of that project, and can add files to those comments. The permission is meant for the user's own comments only: editing the foreign comment itself is correctly refused.

  • app/models/journal.rb:41-44: acts_as_attachable ... add_on_persisted_permission: :edit_own_work_package_comments, delete_permission: :edit_own_work_package_comments. Journal overrides attachments_visible? only.
  • lib_static/plugins/acts_as_attachable/lib/acts_as_attachable.rb:190-217: attachments_deletable? / attachments_addable? end in user.allowed_based_on_permission_context?(permission, project:, entity:), a project-wide permission check without comparing the journal's author with the caller.
  • Attachments::DeleteContract uses model.deletable?, which delegates to the container.
From opf/openproject's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
OpenProjectServers and applications · github:opf/openproject
  • Every version before 17.9.9

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