CVE-2024-39303: Weblate vulnerabler to improper sanitization of project backups
Impact Weblate didn't correctly validate filenames when restoring project backup. It may be possible to gain unauthorized access to files on the server using a crafted ZIP file.
Patches This issue has been addressed in Weblate 5.6.2 via https://github.com/WeblateOrg/weblate/commit/b6a7eace155fa0feaf01b4ac36165a9c5e63bfdd.
Workarounds Do not allow project creation to untrusted users.
References Thanks to Bryan Cahill for bringing this issue to our attention.
For more information If you have any questions or comments about this advisory: Open a topic in discussions Email us at care@weblate.org
Other sources
Weblate is a web based localization tool. Prior to version 5.6.2, Weblate didn't correctly validate filenames when restoring project backup. It may be possible to gain unauthorized access to files on the server using a crafted ZIP file. This issue has been addressed in Weblate 5.6.2. As a workaround, do not allow untrusted users to create projects.
— MITRE
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-39303?
CVE-2024-39303 is considered a high severity vulnerability due to the potential for unauthorized access to server files through crafted ZIP files.
How do I fix CVE-2024-39303?
To fix CVE-2024-39303, upgrade Weblate to version 5.6.2 or later.
Which versions of Weblate are affected by CVE-2024-39303?
CVE-2024-39303 affects Weblate versions between 4.14 and 5.6.1.
What types of attacks are possible with CVE-2024-39303?
CVE-2024-39303 may allow attackers to exploit improper filename validation to access unauthorized server files.
How does CVE-2024-39303 affect server security?
CVE-2024-39303 poses a risk to server security by enabling potential attackers to gain access to sensitive files.