CVE-2024-27140 Apache Archiva: reflected XSS

Medium 5.4 Published Updated

Reflected XSS in Apache Archiva allows attackers to execute scripts, but the project is retired with no official fix available.

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
None listed

What is CVE-2024-27140?

CVE-2024-27140 is a medium-severity cross-site scripting vulnerability in Apache Archiva, published on 1 Mar 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

** UNSUPPORTED WHEN ASSIGNED **

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Apache Archiva.

This issue affects Apache Archiva: from 2.0.0.

As this project is retired, we do not plan to release a version that fixes this issue. Users are recommended to find an alternative or restrict access to the instance to trusted users. Alternatively, you could configure a HTTP proxy in front of your Archiva instance to only forward requests that do not have malicious characters in the URL.

NOTE: This vulnerability only affects products that are no longer supported by the maintainer.

Weakness: CWE-79

Which versions are affected by CVE-2024-27140?

2 open source packages ship an affected version, including org.apache.archiva:archiva-common. It affects 1 product.

PackageAffectedFixed in
org.apache.archiva:archiva-common MavenFrom 2.0.0 to 2.2.10None
org.apache.archiva:archiva-common MavenFrom 2.0.0 to 2.2.10None

Products include Apache Archiva.

How do I fix CVE-2024-27140?

No fix has been published for CVE-2024-27140 yet. Limit exposure of the affected software until one is available.

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-2024-27140 being exploited?

There is no known exploitation of CVE-2024-27140 in the wild and no public exploit code.

Sources

Also known as GHSA-hp2x-6vrm-7j7v.

Is CVE-2024-27140 in your software?

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

Check your SBOMs for free