All vulnerabilities

Servers and applications

GHSA-jf75-vp35-w4mg

MessageAttachment API item GET is gated on ROLE_USER only, with no message-ownership voter (< 3.0.0)

Severity
Medium 4.3
Published
17 Nov 2026
Last changed
17 Nov 2026
Added to UpHeron
17 Nov 2026
Weakness
Improper access control (CWE-284)Authorization bypass through a user-controlled key (IDOR) (CWE-639)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Sources
Project advisories (GitHub)

Description

Chamilo 2.0 exposes message attachments as an API Platform resource, and the item GET is protected by is_granted('ROLE_USER') and nothing else. There is no object voter, no custom state provider, and no query extension tying the attachment back to the message it belongs to, so any logged-in user can call GET /api/message_attachments/{id} for any id and read that attachment's serialized fields no matter who sent or received the underlying private message.

The parent Message resource does enforce this. Its item GET is is_granted('VIEW', object) (src/CoreBundle/Entity/Message.php:41-43), backed by MessageVoter, which grants VIEW only to the sender or a receiver (src/CoreBundle/Security/Authorization/Voter/MessageVoter.php:71-76). The attachment that hangs off that message omits the check.

src/CoreBundle/Entity/MessageAttachment.php:16-23:

From chamilo/chamilo-lms's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
Chamilo LMSServers and applications · github:chamilo/chamilo-lms
  • Version 2.0

About Chamilo LMS

Free Software Learning Management System

From Wikidata, CC0 1.0.
Share of websites with a known CMS
0.6%W3Techs, Nov 2026
GitHub stars
1,024GitHub, 15 Nov 2026
Forks
567GitHub, 15 Nov 2026
Latest release
v3.0.2GitHub, 15 Nov 2026
Released
3 Nov 2026GitHub
License
GPL-3.0GitHub
Written in
PHP, JavaScriptWikidata
First released
18 Jan 2010Wikidata
First published on GitHub
29 Mar 2013GitHub

References