{"id":"CVE-2020-15237","published":"2020-10-05T18:30:14Z","modified":"2024-08-04T13:08:22Z","title":"Timing attack in Shrine","vendor":"shrinerb","product":"shrine","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01015,"percentile":0.64102,"provenance":"source"},"cwes":[{"id":"CWE-208","name":"Observable Timing Discrepancy"},{"id":"CWE-203","name":"Observable Discrepancy"}],"references":[{"url":"https://github.com/shrinerb/shrine/security/advisories/GHSA-5jjv-x4fq-qjwp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/shrinerb/shrine/commit/1b27090ce31543bf39f186c20ea47c8250fca2f0","tags":["x_refsource_MISC"]}],"priority":{"score":17.0,"factors":[{"name":"EPSS percentile","points":12.82},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"shrinerb","affectedVersions":[{"vendor":"shrinerb","product":"shrine","versions":["< 3.3.0"]}],"affected":[{"ecosystem":"RubyGems","package":"shrine","vulnerableRanges":["<3.3.0"],"patched":["3.3.0"],"from":["GHSA-5jjv-x4fq-qjwp"],"provenance":"source"}],"summary":{"text":"A timing discrepancy in the signature check of Shrine's derivation_endpoint plugin lets an attacker guess the signature on derivation URLs, because the comparison was not performed in constant time. Exploitation requires only network access and no authentication or user interaction, but it depends on the attacker being able to make repeated measurable requests against an endpoint that has this plugin enabled.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:09:48Z"},"euvd":{"id":"EUVD-2020-1413","exploited":false,"provenance":"source"}}