# CVE-2020-15237: Timing attack in Shrine

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/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): 1.01%, higher than 64% of CVEs (2026-12-01)
- Published: 2020-10-05T15:48:34.000Z
- Modified: 2026-07-08T06:29:09.017Z
- Also known as: GHSA-5jjv-x4fq-qjwp
- Weaknesses: CWE-203, CWE-208
- Assigned by: GitHub_M

## Description

In Shrine before version 3.3.0, when using the `derivation_endpoint` plugin, it's possible for the attacker to use a timing attack to guess the signature of the derivation URL. The problem has been fixed by comparing sent and calculated signature in constant time, using `Rack::Utils.secure_compare`. Users using the `derivation_endpoint` plugin are urged to upgrade to Shrine 3.3.0 or greater. A possible workaround is provided in the linked advisory.

(As written by CVE List.)

## Affected

- shrinerb shrine: < 3.3.0; before 3.3.0
- shrine (RubyGems): before 3.3.0

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/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/shrinerb/shrine/security/advisories/GHSA-5jjv-x4fq-qjwp> (third-party-advisory, web)
- <https://github.com/shrinerb/shrine/commit/1b27090ce31543bf39f186c20ea47c8250fca2f0> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-15237> (advisory)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/shrine/CVE-2020-15237.yml> (web)
- <https://github.com/shrinerb/shrine> (package)

## Sources

- CVE List: [CVE-2020-15237](https://www.cve.org/CVERecord?id=CVE-2020-15237), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-5jjv-x4fq-qjwp](https://github.com/advisories/GHSA-5jjv-x4fq-qjwp), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2020-15237](https://nvd.nist.gov/vuln/detail/CVE-2020-15237), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-15237 · Whole record: https://cve.day/CVE-2020-15237.json · Rebuilt by cve.day 2026-11-25T22:57:55.044Z
