CVE-2022-25297 Arbitrary File Write
Attackers can write files to arbitrary locations via unsafe filename handling in the Drogon framework's file upload method.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2022-25297?
CVE-2022-25297 is a high-severity path traversal vulnerability in drogonframework/drogon, published on 21 Feb 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
This affects the package drogonframework/drogon before 1.7.5. The unsafe handling of file names during upload using HttpFile::save() 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-25297?
It affects 1 product.
Products include Drogon Drogon.
How do I fix CVE-2022-25297?
No fix has been published for CVE-2022-25297 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-25297 being exploited?
There is no known exploitation of CVE-2022-25297 in the wild and no public exploit code.
Other vulnerabilities in drogonframework/drogon
Sources
Also known as GHSA-5gj5-vjr8-vv8h, SNYK-UNMANAGED-DROGONFRAMEWORKDROGON-2407243.