CVEvulnerability
CVE-2022-25299
7.5 HIGH
Official page ↗
- Status
- Modified
- Published
- 2022-02-18
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 9.8 CRITICAL — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS 3.1 ([email protected])
- 7.5 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- CVSS 2.0 ([email protected])
- 5.0 MEDIUM — AV:N/AC:L/Au:N/C:N/I:P/A:N
- Weaknesses
- CWE-552
Description
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.
Affected configurations
• cesanta mongoose (< 7.6)
Related
Weakness · CWE (1)
- CWE-552 Files or Directories Accessible to External Parties weakness
References
- https://github.com/cesanta/mongoose/commit/c65c8fdaaa257e0487ab0aaae9e8f6b439335945 Patch, Third Party Advisory
- https://snyk.io/vuln/SNYK-UNMANAGED-CESANTAMONGOOSE-2404180 Exploit, Third Party Advisory
- https://github.com/cesanta/mongoose/commit/c65c8fdaaa257e0487ab0aaae9e8f6b439335945 Patch, Third Party Advisory
- https://snyk.io/vuln/SNYK-UNMANAGED-CESANTAMONGOOSE-2404180 Exploit, Third Party Advisory