CVE-2018-11627 Sinatra Cross-site Scripting vulnerability
Attackers can execute arbitrary scripts in victim browsers via a cross-site scripting flaw in the Sinatra framework's error handling.
- 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-2018-11627?
CVE-2018-11627 is a medium-severity cross-site scripting vulnerability in n/a, published on 31 May 2018. 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
Sinatra before 2.0.2 has XSS via the 400 Bad Request page that occurs upon a params parser exception.
Weakness: CWE-79
Which versions are affected by CVE-2018-11627?
2 open source packages ship an affected version, including sinatra. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
sinatra RubyGems | From 2.0.0 | 2.0.2 |
sinatra RubyGems | From 2.0.0 | 2.0.2 |
Linux distribution packages (11)
cfme Red Hat:cloudforms_managementengine:5.9::el7 | All versions | 0:5.9.8.1-1.el7cf |
cfme-amazon-smartstate Red Hat:cloudforms_managementengine:5.9::el7 | All versions | 0:5.9.8.1-1.el7cf |
cfme-appliance Red Hat:cloudforms_managementengine:5.9::el7 | All versions | 0:5.9.8.1-1.el7cf |
cfme-appliance-common Red Hat:cloudforms_managementengine:5.9::el7 | All versions | 0:5.9.8.1-1.el7cf |
cfme-appliance-debuginfo Red Hat:cloudforms_managementengine:5.9::el7 | All versions | 0:5.9.8.1-1.el7cf |
cfme-appliance-tools Red Hat:cloudforms_managementengine:5.9::el7 | All versions | 0:5.9.8.1-1.el7cf |
cfme-debuginfo Red Hat:cloudforms_managementengine:5.9::el7 | All versions | 0:5.9.8.1-1.el7cf |
cfme-gemset Red Hat:cloudforms_managementengine:5.9::el7 | All versions | 0:5.9.8.1-1.el7cf |
cfme-gemset-debuginfo Red Hat:cloudforms_managementengine:5.9::el7 | All versions | 0:5.9.8.1-1.el7cf |
dbus-api-service Red Hat:cloudforms_managementengine:5.9::el7 | All versions | 0:1.0.1-3.2.el7cf |
rubygem-sinatra openSUSE:Tumbleweed | All versions | 2.2.0-1.1 |
Products include Redhat Cloudforms, Sinatrarb Sinatra.
How do I fix CVE-2018-11627?
Upgrade sinatra to 2.0.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-2018-11627 being exploited?
There is no known exploitation of CVE-2018-11627 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-mq35-wqvf-r23c, RHSA-2019:0315, UBUNTU-CVE-2018-11627, openSUSE-SU-2024:11353-1, openSUSE-SU-2024:12033-1.