CVE-2015-2944 Improper Neutralization of Input During Web Page Generation in Apache Sling
Remote attackers can inject arbitrary web script or HTML via the URI in Apache Sling API and Servlets Post libraries.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2015-2944?
CVE-2015-2944 is a medium-severity cross-site scripting vulnerability in n/a, published on 2 Jun 2015. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Multiple cross-site scripting (XSS) vulnerabilities in Apache Sling API before 2.2.2 and Apache Sling Servlets Post before 2.1.2 allow remote attackers to inject arbitrary web script or HTML via the URI, related to (1) org/apache/sling/api/servlets/HtmlResponse and (2) org/apache/sling/servlets/post/HtmlResponse.
Weakness: CWE-79
Which versions are affected by CVE-2015-2944?
4 open source packages ship an affected version, including org.apache.sling:org.apache.sling.api and org.apache.sling:org.apache.sling.servlets.post. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.sling:org.apache.sling.api Maven | All versions | 2.2.2 |
org.apache.sling:org.apache.sling.api Maven | All versions | 2.2.2 |
org.apache.sling:org.apache.sling.servlets.post Maven | All versions | 2.1.2 |
org.apache.sling:org.apache.sling.servlets.post Maven | All versions | 2.1.2 |
Products include Apache Sling Api, Apache Sling Servlets Post.
How do I fix CVE-2015-2944?
Upgrade org.apache.sling:org.apache.sling.api to 2.2.2 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-2015-2944 being exploited?
There is no known exploitation of CVE-2015-2944 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-rxvx-44w5-44r7.