PT-2022-17195 · Cesanta · Mongoose

Published

2022-02-18

·

Updated

2022-02-28

·

CVE-2022-25299

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions cesanta/mongoose versions prior to 7.6
Description The issue is related to the unsafe handling of file names during upload using the mg http upload() method, which may allow attackers to write files to arbitrary locations outside the designated target folder.
Recommendations For versions prior to 7.6, update to version 7.6 or later to resolve the issue. As a temporary workaround, consider restricting the use of the mg http upload() method until a patch is available.

Exploit

Fix

Files Accessible to External Parties

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2022-25299
SNYK-UNMANAGED-CESANTAMONGOOSE-2404180

Affected Products

Mongoose