CVE-2021-41242: Path Traversal in some REST methods leading to file upload to arbitrary places
OpenOlat is a web-basedlearning management system. A path traversal vulnerability exists in OpenOlat prior to versions 15.5.12 and 16.0.5. By providing a filename that contains a relative path as a parameter in some REST methods, it is possible to create directory structures and write files anywhere on the target system. The attack could be used to write files anywhere in the web root folder or outside, depending on the configuration of the system and the properly configured permission of the application server user. The attack requires an OpenOlat user account, an enabled REST API and the rights on a business object to call the vulnerable REST calls. The problem is fixed in version 15.5.12 and 16.0.5. There is a workaround available. The vulnerability requires the REST module to be enabled. Disabling the REST module or limiting the REST module via some firewall or web-server access rules to be accessed only be trusted systems will mitigate the risk.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is CVE-2021-41242?
CVE-2021-41242 is a path traversal vulnerability in OpenOlat, a web-based learning management system.
What is the severity of CVE-2021-41242?
The severity of CVE-2021-41242 is high with a CVSS score of 8.1.
Which software versions are affected by CVE-2021-41242?
OpenOlat versions up to 15.5.12 and between 16.0.0 to 16.0.5 are affected by CVE-2021-41242.
How does CVE-2021-41242 work?
CVE-2021-41242 allows an attacker to perform path traversal by providing a filename with a relative path as a parameter in some REST methods, enabling them to create directory structures and write files anywhere on the system.
How can I fix CVE-2021-41242?
To fix CVE-2021-41242, users should update their OpenOlat installations to versions 15.5.12 or 16.0.5, which contain the necessary security patches.