OpenRefine has a path traversal in LoadLanguageCommand
High severity
GitHub Reviewed
Published
Oct 24, 2024
in
OpenRefine/OpenRefine
•
Updated Oct 25, 2024
Description
Published to the GitHub Advisory Database
Oct 24, 2024
Reviewed
Oct 24, 2024
Published by the National Vulnerability Database
Oct 24, 2024
Last updated
Oct 25, 2024
The load-language command expects a
lang
parameter from which it constructs the path of the localization file to load, of the formtranslations-$LANG.json
.When doing so, it does not check that the resulting path is in the expected directory, which means that this command could be exploited to read other JSON files on the file system.
The command should be patched by checking that the normalized path is in the expected directory.
References