# CVE-2022-25297: Arbitrary File Write

- Severity: High 7.5 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.65%, higher than 77% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2022-02-21T08:00:17.382Z
- Modified: 2026-06-17T04:33:20.703Z
- Weaknesses: CWE-552
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- drogonframework/drogon: from unspecified before 1.7.5
- drogon drogon: before 1.7.5

## Every score

- snyk: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://snyk.io/vuln/SNYK-UNMANAGED-DROGONFRAMEWORKDROGON-2407243> (exploit, patch, third-party-advisory)
- <https://github.com/drogonframework/drogon/pull/1174> (exploit, patch, third-party-advisory)
- <https://github.com/drogonframework/drogon/commit/3c785326c63a34aa1799a639ae185bc9453cb447> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2022-25297](https://www.cve.org/CVERecord?id=CVE-2022-25297), CVE Terms of Use, modified 2024-09-16
- NVD: [CVE-2022-25297](https://nvd.nist.gov/vuln/detail/CVE-2022-25297), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-25297 · Whole record: https://cve.day/CVE-2022-25297.json · Rebuilt by cve.day 2026-11-25T22:58:09.780Z
