CVE-2021-31933 in Chamilo
A remote code execution vulnerability exists in Chamilo through 1.11.14 due to improper input sanitization of a parameter used for file uploads, and improper file-extension filtering for certain filenames (e.g., .phar or .pht). A remote authenticated administrator is able to upload a file containing arbitrary PHP co...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, high privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Chamilo | Chamilo | ≤ 1.11.14 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Reported · reference |
Official description
A remote code execution vulnerability exists in Chamilo through 1.11.14 due to improper input sanitization of a parameter used for file uploads, and improper file-extension filtering for certain filenames (e.g., .phar or .pht). A remote authenticated administrator is able to upload a file containing arbitrary PHP code into specific directories via main/inc/lib/fileUpload.lib.php directory traversal to achieve PHP code execution.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2021-31933 |
|---|---|
| BreachSpider ID | BS-2021-GLOBAL-301561-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| Published | 2021-04-30 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-706: CWE-706
Related attack patterns (CAPEC)
CAPEC-177 Create files with the same name as files protected with a higher classification via CWE-706
CAPEC-641 DLL Side-Loading via CWE-706
CAPEC-48 Passing Local Filenames to Functions That Expect a URL via CWE-706
CAPEC-159 Redirect Access to Libraries via CWE-706
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2021-31933 is a remote code execution vulnerability in Chamilo versions up to 1.11.14, caused by improper input sanitization and file-extension filtering. An authenticated administrator can exploit this vulnerability to upload a file with arbitrary PHP code, leading to remote code execution. The CVSS score is 7.2, indicating a high severity level. While there is no public proof of concept, an exploit exists, and the EPSS score suggests a low likelihood of exploitation in the wild. However, the potential impact on ICS/OT environments is significant due to the possibility of compromising critical systems and data.
The vulnerability arises from improper input sanitization and file-extension filtering in the file upload functionality of Chamilo. An authenticated administrator can upload a file with a malicious PHP code payload, which can then be executed on the server. This can lead to full control of the affected system, potentially allowing an attacker to execute arbitrary commands, modify or exfiltrate data, and disrupt operations.
Compensating controls AI-drafted, review before use
Implement strict file upload policies and input validation to prevent the upload of files with potentially dangerous extensions such as .phar and .pht. Additionally, ensure that only authorized users have the ability to upload files and that file uploads are logged and monitored for suspicious activity.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Questions
What is CVE-2021-31933?
CVE-2021-31933 is a remote code execution vulnerability in Chamilo versions up to 1.11.14, caused by improper input sanitization and file-extension filtering. An authenticated administrator can exploit this vulnerability to upload a file with arbitrary PHP code, leading to remote code execution. The CVSS score is 7.2, indicating a high severity level. While there is no public proof of concept, an exploit exists, and the EPSS score suggests a low likelihood of exploitation in the wild. However, t
What is the CVSS score for CVE-2021-31933?
CVE-2021-31933 has CVSS 7.2 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H. EPSS: 13.9%.
Is CVE-2021-31933 actively exploited?
Public exploit available for CVE-2021-31933. Exploitation risk elevated.
How do I remediate CVE-2021-31933?
Priority: MEDIUM. Advisory: https://support.chamilo.org/projects/1/wiki/Security_issues#Issue-48-2021-04-17-Critical-impact-high-risk-Remote-Code-Execution PSIRT: [email protected]
What systems are affected by CVE-2021-31933?
CVE-2021-31933 affects Chamilo Chamilo.
What NERC-CIP standard applies to CVE-2021-31933?
NERC CIP CIP-007 CIP-007-R2: This CVE violates CIP-007-R2 because it allows an authenticated user to upload and execute arbitrary code, which can compromise the security of the system and potentially lead to unauthorized access and control of critical assets.
What IEC 62443 requirement maps to CVE-2021-31933?
IEC 62443 SR 7.6: This CVE maps to SR 7.6 because it involves a vulnerability in the file upload functionality that can be exploited to execute arbitrary code, which can compromise the integrity and availability of the system, violating the security requirements for ICS/OT environments.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Chamilo","product":"Chamilo","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.