CVE-2022-45442
published high CVSS 3.1 · 8.8Sinatra vulnerable to Reflected File Download attack
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| sinatra | — | sinatra>= 3.0, < 3.0.4 · >= 2.0, < 2.2.3 | Affected | Not stated | GitHub_M |
| AlmaLinux | 8 | pcs | Advisory build | 0.10.14-5.el8_7.2.alma | ALSA-2023:0855 |
| Debian | bullseye | ruby-sinatra | Advisory build | 2.0.8.1-2+deb11u1 | DLA-3877-1 |
| Oracle Linux | 8 | pcsaarch64 | Advisory build | 0:0.10.14-5.0.1.el8_7.2 | ELSA-2023-12137 |
| Red Hat Enterprise Linux | RHEL-8 | pcsaarch64 | Advisory build | 0.10.12-6.el8_6.3 | RHSA-2023:0427 |
| Ubuntu | bionic | ruby-sinatra | Advisory build | 1.4.8-1ubuntu0.1~esm2 | USN-7664-1 |
| Rocky Linux | 8 | pcsaarch64 | Listed in advisory | Not stated | RLSA-2023:0855 |
| AlmaLinux | 8 | pcs-snmp | Advisory build | 0.10.14-5.el8_7.2.alma | ALSA-2023:0855 |
Show 75 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 9 | pcs | Advisory build | 0.11.3-4.el9_1.2 | ALSA-2023:0974 |
| AlmaLinux | 9 | pcs-snmp | Advisory build | 0.11.3-4.el9_1.2 | ALSA-2023:0974 |
| Debian | buster | ruby-sinatra | Advisory build | 2.0.5-4+deb10u2 | DLA-3264-1 |
| Oracle Linux | 8 | pcsx86_64 | Advisory build | 0:0.10.14-5.0.1.el8_7.2 | ELSA-2023-12137 |
| Oracle Linux | 8 | pcs-snmpaarch64 | Advisory build | 0:0.10.14-5.0.1.el8_7.2 | ELSA-2023-12137 |
| Oracle Linux | 8 | pcs-snmpx86_64 | Advisory build | 0:0.10.14-5.0.1.el8_7.2 | ELSA-2023-12137 |
| Oracle Linux | 9 | pcsaarch64 | Advisory build | 0:0.11.3-4.el9_1.2 | ELSA-2023-12150 |
| Oracle Linux | 9 | pcsx86_64 | Advisory build | 0:0.11.3-4.el9_1.2 | ELSA-2023-12150 |
| Oracle Linux | 9 | pcs-snmpaarch64 | Advisory build | 0:0.11.3-4.el9_1.2 | ELSA-2023-12150 |
| Oracle Linux | 9 | pcs-snmpx86_64 | Advisory build | 0:0.11.3-4.el9_1.2 | ELSA-2023-12150 |
| Red Hat Enterprise Linux | RHEL-8 | pcsaarch64 | Advisory build | 0.10.14-5.el8_7.2 | RHSA-2023:0855 |
| Red Hat Enterprise Linux | RHEL-8 | pcsaarch64 | Advisory build | 0.10.8-1.el8_4.3 | RHSA-2023:0506 |
| Red Hat Enterprise Linux | RHEL-8 | pcsppc64le | Advisory build | 0.10.12-6.el8_6.3 | RHSA-2023:0427 |
| Red Hat Enterprise Linux | RHEL-8 | pcsppc64le | Advisory build | 0.10.14-5.el8_7.2 | RHSA-2023:0855 |
| Red Hat Enterprise Linux | RHEL-8 | pcsppc64le | Advisory build | 0.10.2-4.el8_1.3 | RHSA-2023:0857 |
| Red Hat Enterprise Linux | RHEL-8 | pcsppc64le | Advisory build | 0.10.4-6.el8_2.4 | RHSA-2023:0393 |
| Red Hat Enterprise Linux | RHEL-8 | pcsppc64le | Advisory build | 0.10.8-1.el8_4.3 | RHSA-2023:0506 |
| Red Hat Enterprise Linux | RHEL-8 | pcss390x | Advisory build | 0.10.12-6.el8_6.3 | RHSA-2023:0427 |
| Red Hat Enterprise Linux | RHEL-8 | pcss390x | Advisory build | 0.10.14-5.el8_7.2 | RHSA-2023:0855 |
| Red Hat Enterprise Linux | RHEL-8 | pcss390x | Advisory build | 0.10.8-1.el8_4.3 | RHSA-2023:0506 |
| Red Hat Enterprise Linux | RHEL-8 | pcssrc | Advisory build | 0.10.12-6.el8_6.3 | RHSA-2023:0427 |
| Red Hat Enterprise Linux | RHEL-8 | pcssrc | Advisory build | 0.10.14-5.el8_7.2 | RHSA-2023:0855 |
| Red Hat Enterprise Linux | RHEL-8 | pcssrc | Advisory build | 0.10.2-4.el8_1.3 | RHSA-2023:0857 |
| Red Hat Enterprise Linux | RHEL-8 | pcssrc | Advisory build | 0.10.4-6.el8_2.4 | RHSA-2023:0393 |
| Red Hat Enterprise Linux | RHEL-8 | pcssrc | Advisory build | 0.10.8-1.el8_4.3 | RHSA-2023:0506 |
| Red Hat Enterprise Linux | RHEL-8 | pcsx86_64 | Advisory build | 0.10.12-6.el8_6.3 | RHSA-2023:0427 |
| Red Hat Enterprise Linux | RHEL-8 | pcsx86_64 | Advisory build | 0.10.14-5.el8_7.2 | RHSA-2023:0855 |
| Red Hat Enterprise Linux | RHEL-8 | pcsx86_64 | Advisory build | 0.10.2-4.el8_1.3 | RHSA-2023:0857 |
| Red Hat Enterprise Linux | RHEL-8 | pcsx86_64 | Advisory build | 0.10.4-6.el8_2.4 | RHSA-2023:0393 |
| Red Hat Enterprise Linux | RHEL-8 | pcsx86_64 | Advisory build | 0.10.8-1.el8_4.3 | RHSA-2023:0506 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmpaarch64 | Advisory build | 0.10.12-6.el8_6.3 | RHSA-2023:0427 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmpaarch64 | Advisory build | 0.10.14-5.el8_7.2 | RHSA-2023:0855 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmpaarch64 | Advisory build | 0.10.8-1.el8_4.3 | RHSA-2023:0506 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmpppc64le | Advisory build | 0.10.12-6.el8_6.3 | RHSA-2023:0427 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmpppc64le | Advisory build | 0.10.14-5.el8_7.2 | RHSA-2023:0855 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmpppc64le | Advisory build | 0.10.2-4.el8_1.3 | RHSA-2023:0857 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmpppc64le | Advisory build | 0.10.4-6.el8_2.4 | RHSA-2023:0393 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmpppc64le | Advisory build | 0.10.8-1.el8_4.3 | RHSA-2023:0506 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmps390x | Advisory build | 0.10.12-6.el8_6.3 | RHSA-2023:0427 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmps390x | Advisory build | 0.10.14-5.el8_7.2 | RHSA-2023:0855 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmps390x | Advisory build | 0.10.8-1.el8_4.3 | RHSA-2023:0506 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmpx86_64 | Advisory build | 0.10.12-6.el8_6.3 | RHSA-2023:0427 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmpx86_64 | Advisory build | 0.10.14-5.el8_7.2 | RHSA-2023:0855 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmpx86_64 | Advisory build | 0.10.2-4.el8_1.3 | RHSA-2023:0857 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmpx86_64 | Advisory build | 0.10.4-6.el8_2.4 | RHSA-2023:0393 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmpx86_64 | Advisory build | 0.10.8-1.el8_4.3 | RHSA-2023:0506 |
| Red Hat Enterprise Linux | RHEL-9 | pcsaarch64 | Advisory build | 0.11.1-10.el9_0.3 | RHSA-2023:0527 |
| Red Hat Enterprise Linux | RHEL-9 | pcsaarch64 | Advisory build | 0.11.3-4.el9_1.2 | RHSA-2023:0974 |
| Red Hat Enterprise Linux | RHEL-9 | pcsppc64le | Advisory build | 0.11.1-10.el9_0.3 | RHSA-2023:0527 |
| Red Hat Enterprise Linux | RHEL-9 | pcsppc64le | Advisory build | 0.11.3-4.el9_1.2 | RHSA-2023:0974 |
| Red Hat Enterprise Linux | RHEL-9 | pcss390x | Advisory build | 0.11.1-10.el9_0.3 | RHSA-2023:0527 |
| Red Hat Enterprise Linux | RHEL-9 | pcss390x | Advisory build | 0.11.3-4.el9_1.2 | RHSA-2023:0974 |
| Red Hat Enterprise Linux | RHEL-9 | pcssrc | Advisory build | 0.11.1-10.el9_0.3 | RHSA-2023:0527 |
| Red Hat Enterprise Linux | RHEL-9 | pcssrc | Advisory build | 0.11.3-4.el9_1.2 | RHSA-2023:0974 |
| Red Hat Enterprise Linux | RHEL-9 | pcsx86_64 | Advisory build | 0.11.1-10.el9_0.3 | RHSA-2023:0527 |
| Red Hat Enterprise Linux | RHEL-9 | pcsx86_64 | Advisory build | 0.11.3-4.el9_1.2 | RHSA-2023:0974 |
| Red Hat Enterprise Linux | RHEL-9 | pcs-snmpaarch64 | Advisory build | 0.11.1-10.el9_0.3 | RHSA-2023:0527 |
| Red Hat Enterprise Linux | RHEL-9 | pcs-snmpaarch64 | Advisory build | 0.11.3-4.el9_1.2 | RHSA-2023:0974 |
| Red Hat Enterprise Linux | RHEL-9 | pcs-snmpppc64le | Advisory build | 0.11.1-10.el9_0.3 | RHSA-2023:0527 |
| Red Hat Enterprise Linux | RHEL-9 | pcs-snmpppc64le | Advisory build | 0.11.3-4.el9_1.2 | RHSA-2023:0974 |
| Red Hat Enterprise Linux | RHEL-9 | pcs-snmps390x | Advisory build | 0.11.1-10.el9_0.3 | RHSA-2023:0527 |
| Red Hat Enterprise Linux | RHEL-9 | pcs-snmps390x | Advisory build | 0.11.3-4.el9_1.2 | RHSA-2023:0974 |
| Red Hat Enterprise Linux | RHEL-9 | pcs-snmpx86_64 | Advisory build | 0.11.1-10.el9_0.3 | RHSA-2023:0527 |
| Red Hat Enterprise Linux | RHEL-9 | pcs-snmpx86_64 | Advisory build | 0.11.3-4.el9_1.2 | RHSA-2023:0974 |
| Ubuntu | focal | ruby-rack-protection | Advisory build | 2.0.8.1-1ubuntu0.1~esm2 | USN-7664-1 |
| Ubuntu | focal | ruby-sinatra | Advisory build | 2.0.8.1-1ubuntu0.1~esm2 | USN-7664-1 |
| Ubuntu | focal | ruby-sinatra-contrib | Advisory build | 2.0.8.1-1ubuntu0.1~esm2 | USN-7664-1 |
| Ubuntu | jammy | ruby-rack-protection | Advisory build | 2.0.8.1-2+deb11u1build0.22.04.1 | USN-7664-1 |
| Ubuntu | jammy | ruby-sinatra | Advisory build | 2.0.8.1-2+deb11u1build0.22.04.1 | USN-7664-1 |
| Ubuntu | jammy | ruby-sinatra-contrib | Advisory build | 2.0.8.1-2+deb11u1build0.22.04.1 | USN-7664-1 |
| Ubuntu | xenial | ruby-sinatra | Advisory build | 1.4.7-3ubuntu0.1~esm2 | USN-7664-1 |
| Rocky Linux | 8 | pcssrc | Listed in advisory | Not stated | RLSA-2023:0855 |
| Rocky Linux | 8 | pcsx86_64 | Listed in advisory | Not stated | RLSA-2023:0855 |
| Rocky Linux | 8 | pcs-snmpaarch64 | Listed in advisory | Not stated | RLSA-2023:0855 |
| Rocky Linux | 8 | pcs-snmpx86_64 | Listed in advisory | Not stated | RLSA-2023:0855 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| sinatra | sinatra | >= 3.0, < 3.0.4 (affected)>= 2.0, < 2.2.3 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-494 CWE-494: Download of Code Without Integrity Check
References
6- https://github.com/advisories/GHSA-8x94-hmjh-97hq
- https://github.com/sinatra/sinatra/commit/ea8fc9495a350f7551b39e3025bfcd06f49f363b
- https://github.com/sinatra/sinatra/security/advisories/GHSA-2x8x-jmrp-phxw
- [debian-lts-announce] 20230110 [SECURITY] [DLA 3264-1] ruby-sinatra security update https://lists.debian.org/debian-lts-announce/2023/01/msg00005.html
- https://lists.debian.org/debian-lts-announce/2024/09/msg00020.html
- https://www.blackhat.com/docs/eu-14/materials/eu-14-Hafif-Reflected-File-Download-A-New-Web-Attack-Vector.pdf
Provider assertions
3GitHub_M · cna
Sinatra vulnerable to Reflected File Download attack
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 47fd0f5b7db1a73e9818e7a32ff86f5e4228f0b54601128674dedb8b72ebf22f
- Ingested
- 23 Sep 2026, 08:03:27 UTC
- Source record
- Official CVE record