Live threats

All CVEs / Sinatrarb

CVE-2018-1000119Sinatrarb Rack-protection

Medium 5.9 No auth needed

Priority
51
CVSS 3.0
5.9
EPSS
2.4%
probability of exploitation in 30 days · percentile 85
Auth required
No
Published
Mar 7, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-203
Vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

Sinatra rack-protection versions 1.5.4 and 2.0.0.rc3 and earlier contains a timing attack vulnerability in the CSRF token checking that can result in signatures can be exposed. This attack appear to be exploitable via network connectivity to the ruby application. This vulnerability appears to have been fixed in 1.5.5 and 2.0.0.

Original NVD text.

What to do

  1. Apply the vendor's security update for Rack-protection.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
RubyGems rack-protection < 1.5.5 1.5.5 gem "rack-protection", ">= 1.5.5"
RubyGems rack-protection ≥ 2.0.0.beta1 < 2.0.0 2.0.0 gem "rack-protection", ">= 2.0.0"

Per OSV / GitHub Advisories (GHSA-688c-3x49-6rqj). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
sinatrarbrack-protection< 1.5.5
sinatrarbrack-protection2.0.0
sinatrarbrack-protection2.0.0
sinatrarbrack-protection2.0.0

Official sources

References

Links published by the sources. Open them with care.