{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:apache:archiva:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "2.2.9"
              }
            ],
            "source": "CPE_RANGE"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "f8e7fc29cff887f0ac58128e95b0fba5edc0035d"
            }
          ],
          "repo": "https://github.com/apache/archiva",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "apache",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/40xxx/CVE-2022-40309.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "last_affected": "2.2.8"
          }
        ],
        "source": "AFFECTED_FIELD"
      }
    ]
  },
  "details": "Users with write permissions to a repository can delete arbitrary directories.",
  "id": "CVE-2022-40309",
  "modified": "2026-07-08T05:39:12.300335999Z",
  "published": "2022-11-15T00:00:00Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://lists.apache.org/thread/1odl4p85r96n27k577jk6ftrp19xfc27"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/40xxx/CVE-2022-40309.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-40309"
    },
    {
      "type": "ARTICLE",
      "url": "http://www.openwall.com/lists/oss-security/2022/11/15/3"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Apache Archiva prior to 2.2.9 allows an authenticated user to delete arbitrary directories"
}