# CVE-2022-40309: Apache Archiva subject to arbitrary directory deletion by users.

Source: https://junglewise.ai/threats/cve-2022-40309-apache-archiva-subject-to-arbitrary-directory-deletion-by-users  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-11-15  
License: CC BY 4.0 with a link back

CVE-2022-40309 · Severity: low · CVSS 3.1 · Published 2022-11-15

Apache Archiva subject to arbitrary directory deletion by users.

Technologies: [org.apache.archiva:archiva-common (Maven)](https://junglewise.ai/threats/technologies/org-apache-archiva-archiva-common). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2022-40309 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-40309 being exploited in the wild.

**How severe is CVE-2022-40309?** Low severity, with a CVSS score of 3.1, published 15 November 2022.

**Which products and versions are affected?** org.apache.archiva:archiva-common (Maven) ECOSYSTEM:introduced=0,fixed=2.2.9.

**Is there a fix for CVE-2022-40309?** Yes. org.apache.archiva:archiva-common (Maven): upgrade to 2.2.9 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-40309?** Check whether you run org.apache.archiva:archiva-common (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.apache.archiva:archiva-common (Maven): upgrade to 2.2.9 or later

  ```sh
  # set org.apache.archiva:archiva-common to 2.2.9 in your pom.xml or build.gradle
  ```


## Affected products

- org.apache.archiva:archiva-common (Maven) ECOSYSTEM:introduced=0,fixed=2.2.9

## Identifiers

- CVE-2022-40309
- GHSA-xgq8-jq9w-77r5

## Related threats

- [Apache Archiva Reflected Cross-site Scripting vulnerability](https://junglewise.ai/threats/cve-2024-27140-apache-archiva-reflected-cross-site-scripting-vulnerability)
- [Apache Archiva vulnerable to Sensitive Information Disclosure via anonymous user](https://junglewise.ai/threats/cve-2022-40308-apache-archiva-vulnerable-to-sensitive-information-disclosure-via)
