CVE-2022-25297 Arbitrary File Write

High 7.5 Published Updated

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.

Sources

Also known as GHSA-5gj5-vjr8-vv8h, SNYK-UNMANAGED-DROGONFRAMEWORKDROGON-2407243.

Is CVE-2022-25297 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free