# CVE-2018-1000119: rack-protection gem timing attack vulnerability when validating CSRF token

- Severity: Medium 5.9 (CVSS:3.0, scored by NVD) `CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.40%, higher than 84% of CVEs (2026-12-01)
- Published: 2018-03-07T14:00:00.000Z
- Modified: 2026-06-17T01:32:28.030Z
- Also known as: GHSA-688c-3x49-6rqj
- Weaknesses: CWE-203
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- rack-protection (RubyGems): before 1.5.5; from 2.0.0.beta1 before 2.0.0
- sinatrarb rack-protection: before 1.5.5; 2.0.0

## Every score

- GitHub: CVSS:3.0 5.9 Medium `CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.0 5.9 Medium `CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:P/I:N/A:N`

## References

- <https://github.com/sinatra/rack-protection/pull/98> (issue-tracking, third-party-advisory, web)
- <https://access.redhat.com/errata/RHSA-2018:1060> (third-party-advisory, vendor-advisory, web)
- <https://www.debian.org/security/2018/dsa-4247> (vendor-advisory, web)
- <https://github.com/sinatra/sinatra/commit/8aa6c42ef724f93ae309fb7c5668e19ad547eceb#commitcomment-27964109> (issue-tracking, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2018-1000119> (advisory)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack-protection/CVE-2018-1000119.yml> (web)
- <https://github.com/sinatra/rack-protection> (package)

## Sources

- CVE List: [CVE-2018-1000119](https://www.cve.org/CVERecord?id=CVE-2018-1000119), CVE Terms of Use, modified 2024-08-05
- GitHub Advisory Database: [GHSA-688c-3x49-6rqj](https://github.com/advisories/GHSA-688c-3x49-6rqj), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2018-1000119](https://nvd.nist.gov/vuln/detail/CVE-2018-1000119), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2018-1000119 · Whole record: https://cve.day/CVE-2018-1000119.json · Rebuilt by cve.day 2026-11-25T22:57:36.820Z
