Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-31933
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:45 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-31933
Complete source record
{
"id": "1acf196a5ad3d9e8435f8454924a6790696b2c279ab341cf0e329597a4b55479",
"url": "https://osv.dev/vulnerability/CVE-2021-31933",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-31933",
"summary": "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.",
"evidence": "osv:CVE-2021-31933",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-31933",
"aliases": [
"CVE-2021-31933"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/chamilo/chamilo-lms",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "25d89346c1b5f73b6b8d969971b4e402dd89d7e5"
},
{
"fixed": "229302139e8d23bf6862183cf219b967f6e2fbc1"
},
{
"fixed": "f65d065061a77bb2e84f73217079ce3998cf3453"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:chamilo:chamilo:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "1.11.14"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "229302139e8d23bf6862183cf219b967f6e2fbc1"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "f65d065061a77bb2e84f73217079ce3998cf3453"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v1.11.14",
"v1.11.14-beta.1",
"v1.11.12",
"v1.11.10",
"v1.11.6",
"v1.11.6-alpha.1",
"v1.9.8",
"CHAMILO_1_9_6_STABLE",
"CHAMILO_1_9_6_RC_2",
"CHAMILO_1_9_6_RC_1",
"CHAMILO_1_9_4_STABLE",
"CHAMILO_1_9_4_RC_1",
"CHAMILO_1_9_4_ALPHA_1",
"CHAMILO_1_9_2_STABLE_QUARTER",
"CHAMILO_1_9_2_STABLE",
"CHAMILO_1_9_0_STABLE_3",
"CHAMILO_1_9_0_STABLE_2",
"CHAMILO_1_9_0_RC_1",
"CHAMILO_1_8_8_4_STABLE",
"CHAMILO_1_9_0_ALPHA_4",
"CHAMILO_1_9_0_ALPHA_2",
"CHAMILO_1_9_0_ALPHA_1",
"CHAMILO_1_9_0_PRE_ALPHA",
"CHAMILO_1_8_8.3_STABLE_4",
"CHAMILO_1_8_8_2_STABLE_2",
"CHAMILO_1_8_8_2_STABLE",
"CHAMILO_1_8_8_2_RC_1",
"CHAMILO_1_8_8_BETA_2",
"CHAMILO_1_8_8_BETA_1",
"CHAMILO_1_8_8_ALPHA",
"CHAMILO_1_8_7_STABLE_BIS",
"CHAMILO_1_8_7_STABLE",
"CHAMILO_1_8_7_RC2",
"CHAMILO_1_8_7_RC_1",
"CHAMILO_1_8_7_ALPHA_2",
"CHAMILO_1_8_7_ALPHA_1",
"v1.8.6.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-31933.json"
}
}
],
"modified": "2026-10-20T10:54:40.849862610Z",
"provider": "osv",
"references": [
"https://github.com/chamilo/chamilo-lms/commit/229302139e8d23bf6862183cf219b967f6e2fbc1",
"https://github.com/chamilo/chamilo-lms/commit/f65d065061a77bb2e84f73217079ce3998cf3453",
"https://support.chamilo.org/projects/1/wiki/Security_issues#Issue-48-2021-04-17-Critical-impact-high-risk-Remote-Code-Execution"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-31933",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 385875,
"published_at": "2021-04-30T21:15:09+00:00"
}