CVE-2023-4222
Chamilo vulnerability analysis and mitigation

Overview

CVE-2023-4222 is a command injection vulnerability discovered in Chamilo LMS versions up to and including v1.11.24. The vulnerability exists in the main/lp/openoffice_text_document.class.php file and was disclosed on November 28, 2023. The vulnerability affects users who have permissions to upload Learning Paths in the Chamilo LMS system (STAR Labs Advisory).

Technical details

The vulnerability stems from improper neutralization of special characters in the OpenofficeTextDocument class. The issue occurs when processing file names in the Learning Path upload functionality. The vulnerability manifests when $this->file_name is used to construct shell commands without proper sanitization. The CVSS v3.1 base score is 7.2 (High) with the vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:N/C:H/I:H/A:H, indicating network accessibility with high privileges required (STAR Labs Advisory).

Impact

Successful exploitation of this vulnerability allows authenticated users with permissions to upload Learning Paths to execute arbitrary commands on the target server with the web server's privileges. This could lead to complete system compromise, including the ability to read, write, or delete files and execute malicious code (STAR Labs Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 1.11.26. The fix involves proper implementation of escapeshellarg() to escape user input used in shell commands. Users are strongly encouraged to upgrade to the latest version of Chamilo. For detection, administrators should monitor server access logs for suspicious requests to /main/lp/lp_upload.php and related endpoints (STAR Labs Advisory, GitHub Patch).

Additional resources


SourceThis report was generated using AI

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