CVE-2022-25299 Arbitrary File Write
Attackers can write files to arbitrary locations outside the designated folder via unsafe filename handling in the upload method.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2022-25299?
CVE-2022-25299 is a critical path traversal vulnerability in Cesanta Mongoose, published on 18 Feb 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-552
Which versions are affected by CVE-2022-25299?
It affects 1 product.
Products include Cesanta Mongoose.
How do I fix CVE-2022-25299?
No fix has been published for CVE-2022-25299 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2022-25299 being exploited?
There is no known exploitation of CVE-2022-25299 in the wild and no public exploit code.
Other vulnerabilities in Cesanta Mongoose
Sources
Also known as GHSA-q66h-r8q8-x284, SNYK-UNMANAGED-CESANTAMONGOOSE-2404180, UBUNTU-CVE-2022-25299.