Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2021-31933
Chamilo vulnerability analysis and mitigation

Overview

A remote code execution vulnerability was discovered in Chamilo through version 1.11.14. The vulnerability exists due to improper input sanitization of parameters used for file uploads and insufficient file-extension filtering for certain filenames (e.g., .phar or .pht). This vulnerability was disclosed on April 30, 2021 (NVD).

Technical details

The vulnerability allows a remote authenticated administrator to upload a file containing arbitrary PHP code into specific directories via main/inc/lib/fileUpload.lib.php through directory traversal. The issue stems from insufficient validation of file extensions and improper sanitization of upload parameters. The vulnerability was addressed by adding additional file extension checks for .phar files in the php2phps() function and implementing proper path validation using Security::check_abs_path (GitHub Commit).

Impact

The vulnerability allows authenticated administrators to achieve PHP code execution on the affected system. This could potentially lead to complete system compromise, as the attacker could execute arbitrary commands with the permissions of the web server (Red Hat CVE).

Exploitability

The vulnerability requires authentication with administrator privileges to exploit. An attacker must be able to upload files to specific directories using the file upload functionality. The exploitation involves uploading a file with specific extensions (.phar or .pht) containing malicious PHP code (AttackerKB).

Mitigation and workarounds

The vulnerability was patched by updating the .htaccess file to disable PHP execution inside the web/ directory and adding the phar extension to the php2phps() function for proper filtering. Additional security measures were implemented including path validation checks and course/user validations. Users should upgrade to a version after 1.11.14 that contains these security fixes (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related Chamilo vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-45140CRITICAL9.8
  • PHP logoPHP
  • cpe:2.3:a:chamilo:chamilo_lms
NoYesSep 17, 2026
CVE-2026-39878CRITICAL9.3
  • Chamilo logoChamilo
  • cpe:2.3:a:chamilo:chamilo_lms
NoYesJul 20, 2026
CVE-2026-45143CRITICAL9
  • Chamilo logoChamilo
  • cpe:2.3:a:chamilo:chamilo_lms
NoYesSep 17, 2026
CVE-2026-34239HIGH7.5
  • Chamilo logoChamilo
  • cpe:2.3:a:chamilo:chamilo_lms
NoYesJul 20, 2026
CVE-2026-82535MEDIUM5.3
  • Chamilo logoChamilo
  • cpe:2.3:a:chamilo:chamilo_lms
NoNoSep 11, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management