{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:apache:archiva:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "2.0"
              },
              {
                "fixed": "2.2.10"
              }
            ],
            "source": "CPE_RANGE"
          },
          "events": [
            {
              "introduced": "c4ee3fbb9d55a0911c3fc432c45286ac2a03c02b"
            },
            {
              "fixed": "4a4521e749a56adec068a4308a3f10336fc4319f"
            }
          ],
          "repo": "https://github.com/apache/archiva",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "apache",
    "cwe_ids": [
      "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/28xxx/CVE-2023-28158.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "introduced": "2.0"
          },
          {
            "fixed": "2.2.10"
          }
        ],
        "source": "AFFECTED_FIELD"
      }
    ]
  },
  "details": "Privilege escalation via stored XSS using the file upload service to upload malicious content.\nThe issue can be exploited only by authenticated users which can create directory name to inject some XSS content and gain some privileges such admin user.",
  "id": "CVE-2023-28158",
  "modified": "2026-07-08T05:38:02.117746982Z",
  "published": "2023-03-29T12:21:46.932Z",
  "references": [
    {
      "type": "WEB",
      "url": "http://www.openwall.com/lists/oss-security/2023/04/18/2"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/28xxx/CVE-2023-28158.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://lists.apache.org/thread/8pm6d5y9cptznm0bdny3n8voovmm0dtt"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-28158"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Apache Archiva privilege escalation"
}