CVE-2022-45442: Ruby sinatra · An issue was discovered in Sinatra 2.0 before 2.2.3 and 3.0 before 3.0.4
Affects ruby-sinatraSource GCVE Database
Not known to be exploited · CVSS 8.8 High · fixed in 1.4.7-3ubuntu0.1~esm2 : patch ruby-sinatra soon.
Data as of 26 Oct 2026, 17:16 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 52% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.4.7-3ubuntu0.1~esm2, 1.4.8-1ubuntu0.1~esm2, 2.0.8.1-2+deb11u1build0.22.04.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 28 Nov 2022
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade the Ubuntu ruby-sinatra to 1.4.7-3ubuntu0.1~esm2 (package) or 1.4.8-1ubuntu0.1~esm2 (package) or 2.0.8.1-2+deb11u1build0.22.04.1 (package).
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 22.04 LTSruby-sinatrapkg:deb/ubuntu/ruby-sinatra?arch=source&distro=jammyOther threats | Affected
| Fixed in
|
Ubuntu Pro 18.04 LTSruby-sinatrapkg:deb/ubuntu/ruby-sinatra?arch=source&distro=esm-apps/bionicOther threats | Affected
| Fixed in
|
Ubuntu Pro 16.04 LTSruby-sinatrapkg:deb/ubuntu/ruby-sinatra?arch=source&distro=esm-apps/xenialOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2022-45442 (opens in a new tab)
- github.com/sinatra/sinatra/security/advisories/GHSA-2x8x-jmrp-phxw (opens in a new tab)
- github.com/advisories/GHSA-8x94-hmjh-97hq (opens in a new tab)
- github.com/sinatra/sinatra/commit/ea8fc9495a350f7551b39e3025bfcd06f49f363b (opens in a new tab)
- blackhat.com/docs/eu-14/materials/eu-14-Hafif-Reflected-File-Download-A-New-Web-Attack-Vector.pdf (opens in a new tab)
- cve.org/CVERecord?id=CVE-2022-45442 (opens in a new tab)
- ubuntu.com/security/notices/USN-7664-1 (opens in a new tab)