Servers and applications
CVE-2026-61558
Authenticated (admin) Server-Side Template Injection in mail templates leads to Remote Code Execution (< 2.0.3, < 1.11.40)
- Severity
- High 7.2
- Published
- 4 Aug 2026
- Last changed
- 4 Aug 2026
- Added to UpHeron
- 3 Nov 2026
- Fixed in
- 2.0.3
- Attack
- Over the network · Needs an administrator account · No user action needed
- Attacker can
- Read data · Change data · Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H- Also known as
- GHSA-x579-vfgg-ff5w
- Sources
- Project advisories (GitHub)
Description
A stored mail template that a platform administrator can edit is compiled as a Twig template from a raw string using the full, non-sandboxed Symfony Twig environment. A Twig payload placed in the new_user_mail_to_admin_approval.tpl template body is therefore executed as PHP/OS code when the approval mail is built — i.e. Server-Side Template Injection → Remote Code Execution. The payload is planted by an administrator (admin-only editor), but the execution is triggered by an ordinary event (a new user self-registering while admin-approval of accounts is enabled). This crosses the application-admin → operating-system boundary, which matters on hosted / multi-tenant Chamilo where the platform admin is not meant to have a shell on the server.
- Class: CWE-1336 (Server-Side Template Injection) / CWE-94 (Code Injection) → Remote Code Execution.
- Effect: arbitrary OS command execution as the web-server user → full server compromise (read/modify all data and files, pivot to the database…
Affected software
| Software | Affected versions |
|---|---|
Chamilo LMSServers and applications · github:chamilo/chamilo-lms |
|
About Chamilo LMS
Free Software Learning Management System
- 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
Vulnerabilities in Chamilo LMS
- In our list
- 196
- Published in the last 12 months
- 145
- Critical, last 12 months
- 21
- High, last 12 months
- 75
- Known exploited
- 0
- GHSA-rrjh-7f5h-8w96Stored XSS in course chat leads to account takeover (sanitizer runs before Markdown) (< 3.0.0)High 8.7 17 Nov 2026
- GHSA-4j89-qjx2-3wcrUnauthenticated arbitrary resource file deletion via `delete_variant` endpoint (< 3.0.0)Critical 9.1 17 Nov 2026
- GHSA-2prx-vqcv-mv68Authenticated arbitrary resource file read via mismatched `resourceFileId` (< 3.0.0)Medium 6.5 17 Nov 2026
- GHSA-r6vc-jgrj-jqp6IDOR in certificates (< 1.11.42)Medium 4.3 17 Nov 2026
- GHSA-jf75-vp35-w4mgMessageAttachment API item GET is gated on ROLE_USER only, with no message-ownership voter (< 3.0.0)Medium 4.3 17 Nov 2026
- GHSA-j7rr-2665-j2w3Missing Authorization in StudentPublicationController allows any authenticated user (incl. students) to read all submissions, exfiltrate submitted files, and tamper with corrections (< 3.0.0)High 8.3 17 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-61558
- GitHub Advisory Database https://github.com/advisories/GHSA-x579-vfgg-ff5w
- github.com https://github.com/chamilo/chamilo-lms/security/advisories/GHSA-x579-vfgg-ff5w