Vulnerability · Published Oct 5, 2020 · Assigned by GitHub_M

CVE-2020-15237Timing attack in Shrine

Medium 5.9

In plain English

A medium-severity security flaw in shrine from shrinerb. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 63% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.9Medium
Exploit odds (30 days)1.0%top 36.6% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
RubyGemsshrine3.3.0GHSA-5jjv-x4fq-qjwp

Affected products (as reported)

VendorProductVersions
shrinerb shrine < 3.3.0

Weakness: CWE-208, CWE-203 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

References