The load-language command expects a lang
parameter from which it constructs the path of the localization file to load, of the form translations-$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.
{ "nvd_published_at": "2024-10-24T22:15:04Z", "cwe_ids": [ "CWE-22" ], "severity": "HIGH", "github_reviewed": true, "github_reviewed_at": "2024-10-24T18:32:40Z" }