VulnerabilityModified
CVE-2022-25299
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 7.5EPSS 1.43%
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (1.43%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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.
- CVSS 3.1
- 7.5 HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- EPSS
- 1.43% probability · 72th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-552
- Affected
- cesanta/mongoose
- Source
- report@snyk.io
References
- https://github.com/cesanta/mongoose/commit/c65c8fdaaa257e0487ab0aaae9e8f6b439335945Patch, Third Party Advisory
- https://snyk.io/vuln/SNYK-UNMANAGED-CESANTAMONGOOSE-2404180Exploit, Third Party Advisory
- https://github.com/cesanta/mongoose/commit/c65c8fdaaa257e0487ab0aaae9e8f6b439335945Patch, Third Party Advisory
- https://snyk.io/vuln/SNYK-UNMANAGED-CESANTAMONGOOSE-2404180Exploit, Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.