CVE-2024-27140 Apache Archiva: reflected XSS
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.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.archiva:archiva-common Maven | From 2.0.0 to 2.2.10 | None |
org.apache.archiva:archiva-common Maven | From 2.0.0 to 2.2.10 | None |
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.
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-hp2x-6vrm-7j7v.