CVE-2023-28158 Apache Archiva privilege escalation

Medium 6.5 Published Updated

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.

PackageAffectedFixed in
org.apache.archiva:archiva MavenFrom 2.0.02.2.10
org.apache.archiva:archiva MavenFrom 2.0.02.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.

Sources

Also known as GHSA-qf34-f43r-gv9p.

Is CVE-2023-28158 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free