The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2023-28158

CVE-2023-28158: Apache Archiva Privilege Escalation Flaw

CVE-2023-28158 is a privilege escalation vulnerability in Apache Archiva exploited via stored XSS through file upload services. Authenticated users can inject malicious content to gain elevated privileges.

Published: January 28, 2026

CVE-2023-28158 Overview

CVE-2023-28158 is a stored Cross-Site Scripting (XSS) vulnerability affecting Apache Archiva that enables privilege escalation through the file upload service. Authenticated users can exploit this flaw by creating directory names containing malicious XSS payloads, potentially allowing them to elevate their privileges to administrative levels when the crafted content is rendered by other users.

Critical Impact

Authenticated attackers can inject persistent XSS payloads via directory names in the file upload service, enabling session hijacking and privilege escalation to administrator accounts.

Affected Products

  • Apache Archiva (all affected versions)

Discovery Timeline

  • 2023-03-29 - CVE CVE-2023-28158 published to NVD
  • 2025-02-13 - Last updated in NVD database

Technical Details for CVE-2023-28158

Vulnerability Analysis

This vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation), commonly known as Cross-Site Scripting. The flaw exists in Apache Archiva's file upload service, specifically in how it handles directory name inputs. When users create directories through the file upload functionality, the application fails to properly sanitize or encode the directory names before rendering them in the web interface.

The stored nature of this XSS vulnerability makes it particularly dangerous. Unlike reflected XSS attacks that require victim interaction with a malicious link, the payload persists in the application's storage. Any user—including administrators—who subsequently views the affected directory listing will execute the attacker's script in their browser context.

The attack requires authenticated access to the system, meaning the attacker must first obtain valid credentials. However, even low-privileged users can exploit this vulnerability to escalate their permissions by targeting administrator sessions.

Root Cause

The root cause stems from insufficient input validation and output encoding in Apache Archiva's file upload service. When processing directory creation requests, the application accepts user-supplied directory names without properly sanitizing special characters used in HTML and JavaScript. Subsequently, when these directory names are displayed in the user interface, they are rendered without adequate output encoding, allowing embedded scripts to execute in the context of viewing users' browsers.

Attack Vector

The attack is conducted over the network and requires user interaction. An authenticated attacker with the ability to create directories uses the file upload service to create a directory with a malicious name containing JavaScript code. When an administrator or privileged user browses to view this directory listing, the XSS payload executes in their browser session.

The attacker's script can then steal session cookies, perform actions on behalf of the victim, or redirect them to malicious sites. Most critically, if an administrator views the malicious content, the attacker can capture their session token or perform administrative actions, effectively gaining elevated privileges.

Detection Methods for CVE-2023-28158

Indicators of Compromise

  • Directory names in Apache Archiva containing HTML tags, JavaScript code, or encoded script patterns such as <script>, onerror=, or javascript:
  • Unexpected administrative actions or configuration changes following directory browsing activities
  • Unusual session activity patterns where lower-privileged users suddenly exhibit administrative capabilities

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block XSS patterns in HTTP requests to the Archiva file upload service
  • Review Apache Archiva logs for directory creation events containing suspicious characters or encoding patterns
  • Monitor for anomalous privilege changes or administrative actions that correlate with directory browsing activities
  • Deploy browser-based XSS detection mechanisms that can identify script execution from unexpected sources

Monitoring Recommendations

  • Enable detailed logging for the Apache Archiva file upload service and directory management operations
  • Configure security information and event management (SIEM) alerts for patterns indicative of XSS injection attempts
  • Regularly audit directory names and file system artifacts for embedded script content
  • Monitor user session behavior for privilege escalation patterns following interaction with the file upload service

How to Mitigate CVE-2023-28158

Immediate Actions Required

  • Review and audit all existing directory names in Apache Archiva for potentially malicious content
  • Implement strict Content Security Policy (CSP) headers to limit the impact of any XSS exploitation
  • Consider temporarily restricting directory creation capabilities to trusted administrators only
  • Update Apache Archiva to the latest available version that addresses this vulnerability

Patch Information

Apache has disclosed this vulnerability through their official security advisory. System administrators should consult the Apache Mailing List Thread for official patch information and upgrade guidance. Additional technical discussion is available through the Openwall OSS Security Discussion.

Workarounds

  • Implement input validation at the web server or reverse proxy level to block directory names containing script tags or JavaScript event handlers
  • Deploy a Web Application Firewall (WAF) with XSS filtering capabilities in front of the Apache Archiva instance
  • Restrict file upload and directory creation permissions to trusted users until a patch can be applied
  • Enable HTTP-only and Secure flags on session cookies to reduce the impact of potential session theft
bash
# Example Apache configuration to add security headers
# Add to httpd.conf or relevant virtual host configuration

# Content Security Policy to mitigate XSS impact
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'"

# Additional security headers
Header set X-Content-Type-Options "nosniff"
Header set X-XSS-Protection "1; mode=block"
Header set X-Frame-Options "SAMEORIGIN"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechApache Archiva

  • SeverityMEDIUM

  • CVSS Score5.4

  • EPSS Probability0.13%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • Openwall OSS Security Discussion
  • Vendor Resources
  • Apache Mailing List Thread
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English