Skip to main content
EPSS 0.7%top 50%

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

0
High
Published: 11/28/2022 (11/28/2022, 21:15:00 UTC)
Source: GCVE Database
Product: ruby-sinatra

Description

Sinatra, a Ruby domain-specific language for web applications, has a vulnerability in versions before 2.2.3 and 3.0.4. The flaw allows a reflected file download (RFD) attack when the Content-Disposition header's filename is derived from user input. This vulnerability can impact confidentiality, integrity, and availability of affected systems. Versions 2.2.3 and 3.0.4 include patches that address this issue.

CVSS v3.1

Score 8.8high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected software

Ubuntu:Pro:16.04:LTSmore threats →ghsa
ruby-sinatra
pkg:deb/ubuntu/[email protected]~esm2?arch=source&distro=esm-apps/xenial
Affected versions
<1.4.7-3ubuntu0.1~esm2=1.4.6-2=1.4.7-3
Ubuntu:Pro:18.04:LTSmore threats →ghsa
ruby-sinatra
pkg:deb/ubuntu/[email protected]~esm2?arch=source&distro=esm-apps/bionic
Affected versions
<1.4.8-1ubuntu0.1~esm2=1.4.7-5=1.4.8-1
Ubuntu:22.04:LTSmore threats →ghsa
ruby-sinatra
pkg:deb/ubuntu/[email protected]+deb11u1build0.22.04.1?arch=source&distro=jammy
Affected versions
<2.0.8.1-2+deb11u1build0.22.04.1=2.0.8.1-2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/30/2026, 06:59:02 UTC

Technical Analysis

The Ruby Sinatra framework contains a vulnerability in versions prior to 2.2.3 and 3.0.4 where the Content-Disposition header's filename parameter is derived from user input without sufficient validation. This enables a reflected file download (RFD) attack, potentially allowing attackers to trick users into downloading malicious files. The vulnerability affects confidentiality, integrity, and availability of applications using these versions. Official patches are available in versions 2.2.3 and 3.0.4.

Potential Impact

Successful exploitation of this vulnerability can lead to high impact on confidentiality, integrity, and availability due to the reflected file download attack vector. This may allow attackers to deliver malicious files to users, potentially leading to further compromise or data leakage.

Mitigation Recommendations

Patches addressing this vulnerability are available in Sinatra versions 2.2.3 and 3.0.4. Users should upgrade to these or later versions to remediate the issue. No additional vendor advisory indicates alternative mitigations or that no action is required.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
UBUNTU-CVE-2022-45442
Osv Schema Version
1.7.0
Ecosystems
["Ubuntu:Pro:16.04:LTS","Ubuntu:Pro:18.04:LTS","Ubuntu:22.04:LTS"]
Cvss Version
3.1

Threat ID: 6a61512c9c2644c7f8da707e

Added to database: 07/22/2026, 23:24:28 UTC

Last enriched: 07/30/2026, 06:59:02 UTC

Last updated: 09/10/2026, 19:24:53 UTC

Views: 41

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses