Skip to main content
← All vulnerabilities
CVE-2022-45442GHSA-2X8X-JMRP-PHXW

Sinatra vulnerable to Reflected File Download attack

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.0.4, 2.2.3
1 proof of concept on GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

Sinatra is a domain-specific language for creating web applications in Ruby. An issue was discovered in Sinatra 2.0 before 2.2.3 and 3.0 before 3.0.4. An application is vulnerable to a reflected file download (RFD) attack that sets the Content-Disposition header of a response when the filename is derived from user-supplied input. Version 2.2.3 and 3.0.4 contain patches for this issue.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • sinatra sinatra

    From 3.0 · fixed in 3.0.4; From 2.0 · fixed in 2.2.3

  • sinatraRubyGems

    From 3.0 · fixed in 3.0.4

  • sinatraRubyGems

    From 2.0.0 · fixed in 2.2.3

References 6

GitHub · sinatra/sinatra

GitHub Advisory Database

blackhat.com

lists.debian.org

GitHub · boost-legal/refile