{"id":"CVE-2022-25299","aliases":["CVE-2022-25299"],"related":[],"kind":"vulnerability","state":"published","title":"Arbitrary File Write","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Esto afecta al paquete cesanta/mongoose versiones anteriores a 7.6. Un manejo no seguro de los nombres de archivo durante la carga usando el método mg_http_upload() puede permitir a atacantes escribir archivos en ubicaciones arbitrarias fuera de la carpeta de destino designada","source":"nvd"}],"published":"2022-02-18T12:55:21.998Z","modified":"2026-06-17T04:33:20.967Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-552"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"7.6","status":"affected"}],"product":"cesanta/mongoose","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"7.6"}],"vendor":"cesanta","product":"mongoose","cpe":"cpe:2.3:a:cesanta:mongoose:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-UNMANAGED-CESANTAMONGOOSE-2404180","tags":["exploit","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/cesanta/mongoose/commit/c65c8fdaaa257e0487ab0aaae9e8f6b439335945","tags":["patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":["Snyk Security Team"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-25299","url":"https://www.cve.org/CVERecord?id=CVE-2022-25299","licence":"CVE Terms of Use","modified":"2024-09-16T17:52:54.754Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-25299","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25299","licence":"Public domain","modified":"2026-06-17T04:33:20.967Z"}],"updatedAt":"2026-11-25T22:58:09.742Z","epss":{"score":0.01394,"percentile":0.73183,"date":"2026-12-01T12:00:22.000Z"}}