Vulnerabilities · 2022 · Cesanta
CVE-2022-25299
Cesanta Mongoose vulnerability
This affects the package cesanta/mongoose before 7.6. The unsafe handling of file names during upload using mg_http_upload() method may enable attackers to write files to arbitrary locations outside the designated target folder.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Mongoose. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Cesanta Mongoose runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
More vulnerabilities in Cesanta products
CVE-2025-65502CVE-2025-51495CVE-2024-42392CVE-2024-42391CVE-2024-42390CVE-2024-42389CVE-2024-42388CVE-2024-42387All 128
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.