CVE-2023-28158 Apache Archiva privilege escalation
Authenticated users can escalate privileges to admin via stored XSS in Apache Archiva's file upload service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2023-28158?
CVE-2023-28158 is a medium-severity cross-site scripting vulnerability in Apache Archiva, published on 29 Mar 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Privilege escalation via stored XSS using the file upload service to upload malicious content. The 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.
Weakness: CWE-79
Which versions are affected by CVE-2023-28158?
2 open source packages ship an affected version, including org.apache.archiva:archiva. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.archiva:archiva Maven | From 2.0.0 | 2.2.10 |
org.apache.archiva:archiva Maven | From 2.0.0 | 2.2.10 |
Products include Apache Archiva.
How do I fix CVE-2023-28158?
Upgrade org.apache.archiva:archiva to 2.2.10 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2023-28158 being exploited?
There is no known exploitation of CVE-2023-28158 in the wild and no public exploit code.
Other vulnerabilities in Apache Archiva
- CVE-2013-2251 Apache Struts Improper Input Validation
- CVE-2016-4469 Cross-site request forgery in n/a
- CVE-2017-5657 Apache Archiva vulnerable to Cross Site Request Forgery
- CVE-2024-27138 Apache Archiva: disabling user registration is not effective
- CVE-2024-27139 Apache Archiva: incorrect authentication potentially leading to account takeover
Sources
Also known as GHSA-qf34-f43r-gv9p.