CVE-2022-45442: Sinatra vulnerable to Reflected File Download attack

Published Nov 28, 2022
·
Updated

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.

Affected Software

3 affected components
Sinatrarb Sinatra>=2.0.0<2.2.3
Sinatrarb Sinatra>=3.0.0<3.0.4
Debian Debian Linux=10.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Sinatra to a version that resolves this vulnerability.

    Fixed in 2.2.3
  2. Upgrade

    Upgrade Sinatra to a version that resolves this vulnerability.

    Fixed in 3.0.4

Event History

Nov 28, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is Sinatra?

Sinatra is a domain-specific language for creating web applications in Ruby.

2

What is the vulnerability ID for this issue?

The vulnerability ID for this issue is CVE-2022-45442.

3

What is the severity of CVE-2022-45442?

The severity of CVE-2022-45442 is high with a CVSS score of 8.8.

4

What is the affected software?

The affected software is Sinatra versions 2.0 before 2.2.3 and 3.0 before 3.0.4, as well as Debian Linux version 10.0.

5

How can I fix the vulnerability in Sinatra?

To fix the vulnerability in Sinatra, upgrade to version 2.2.3 or 3.0.4.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203