CVEfocus › CVE database › CVE-2022-45442

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

CVSS 8.8 HighEPSS 1.0% (higher than 61% of CVEs)Published 2022-11-28Updated 2025-11-04Assigner: GitHub_M

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.

CWE-494

What to do

Fixed builds are available from AlmaLinux, Debian, PyPI, Red Hat, Rocky Linux, RubyGems, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

15Fixed
3Fix pending
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04ruby-sinatraNot affected
vulnerable_code_not_present
Ubuntu 22.04ruby-sinatraFixed2.0.8.1-2+deb11u1build0.22.04.1UBUNTU-CVE-2022-45442
Ubuntu 18.04ruby-sinatraFix pending1.4.8-1ubuntu0.1~esm2 (Ubuntu Pro)UBUNTU-CVE-2022-45442
Ubuntu 16.04ruby-sinatraFix pending1.4.7-3ubuntu0.1~esm2 (Ubuntu Pro)UBUNTU-CVE-2022-45442
Ubuntu 14.04ruby-sinatraFix pending
Debian 14ruby-sinatraFixed3.0.5-2DEBIAN-CVE-2022-45442
Debian 13ruby-sinatraFixed3.0.5-2DEBIAN-CVE-2022-45442
Debian 12ruby-sinatraFixed3.0.5-2DEBIAN-CVE-2022-45442
Red Hat Enterprise Linux 9pcsFixed0:0.11.3-4.el9_1.2RHSA-2023:0974
Red Hat Enterprise Linux 9pcs-snmpFixed0:0.11.3-4.el9_1.2RHSA-2023:0974
Red Hat Enterprise Linux 8pcsFixed0:0.10.14-5.el8_7.2RHSA-2023:0855
Red Hat Enterprise Linux 8pcs-snmpFixed0:0.10.14-5.el8_7.2RHSA-2023:0855
AlmaLinux 9pcsFixed0.11.3-4.el9_1.2ALSA-2023:0974
AlmaLinux 9pcs-snmpFixed0.11.3-4.el9_1.2ALSA-2023:0974
AlmaLinux 8pcsFixed0.10.14-5.el8_7.2.almaALSA-2023:0855
AlmaLinux 8pcs-snmpFixed0.10.14-5.el8_7.2.almaALSA-2023:0855
Rocky Linux 8pcsFixed0:0.10.14-5.el8_7.2RLSA-2023:0855
PyPI librarydjangoFixed3.2.15GHSA-8x94-hmjh-97hq
RubyGems librarysinatraFixed3.0.4GHSA-2x8x-jmrp-phxw

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.