CVE-2014-2538 rack-ssl Cross-site Scripting vulnerability
Remote attackers can inject arbitrary web script or HTML via a URI in the rack-ssl gem, potentially compromising user sessions.
- 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-2014-2538?
CVE-2014-2538 is a medium-severity cross-site scripting vulnerability in n/a, published on 25 Mar 2014. 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
Cross-site scripting (XSS) vulnerability in lib/rack/ssl.rb in the rack-ssl gem before 1.4.0 for Ruby allows remote attackers to inject arbitrary web script or HTML via a URI, which might not be properly handled by third-party adapters such as JRuby-Rack.
Weakness: CWE-79
Which versions are affected by CVE-2014-2538?
2 open source packages ship an affected version, including rack-ssl. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
rack-ssl RubyGems | All versions | 1.4.0 |
rack-ssl RubyGems | All versions | 1.4.0 |
Products include Joshua Peek Rack-Ssl.
How do I fix CVE-2014-2538?
Upgrade rack-ssl to 1.4.0 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-2014-2538 being exploited?
There is no known exploitation of CVE-2014-2538 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2014-2538, GHSA-v3rr-cph9-2g2q, MGASA-2014-0156.