All vulnerabilities

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
Weakness
Code injection (CWE-94)Server-side template injection (CWE-1336)
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…
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
  • From 2.0.0 before 2.0.3

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