LiveActive security incident?Get immediate response
CVE Record

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

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.

HighCVSS 8.8Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

A vulnerable Sinatra application could make a victim download a file from a trusted site when response filenames are built from user input. The issue requires user interaction, but the impact is rated high because the downloaded content may be trusted by the user or their environment.

Executive priority

Treat as a high-priority dependency upgrade for externally reachable Sinatra services. Urgency is greatest where the application offers file downloads or reflects user-controlled filenames.

Technical view

Sinatra 2.0 before 2.2.3 and 3.0 before 3.0.4 are affected by a reflected file download weakness involving Content-Disposition filenames derived from user-supplied input. The CVSS 3.1 score is 8.8, with network attack vector, low complexity, no privileges, and user interaction required.

Likely exposure

Exposure is likely in Ruby applications using affected Sinatra versions, especially routes that generate downloads or set Content-Disposition using request parameters or other user-controlled values.

Exploitation context

The bundle does not show CISA KEV listing or cited evidence of active exploitation. Public references describe the RFD attack class, and the CVSS vector indicates remote reachability with required user interaction.

Researcher notes

Focus review on response header generation, attachment helpers, and parameters used as filenames. Evidence supports affected version ranges and patched releases, but the bundle does not provide exploit telemetry.

Mitigation direction

  • Upgrade Sinatra to 2.2.3, 3.0.4, or later supported releases.
  • Apply Debian ruby-sinatra security updates where using Debian packages.
  • Audit download routes that derive filenames from user-controlled input.
  • Follow Sinatra advisory guidance for safe Content-Disposition handling.
  • Check vendor guidance before relying on local workarounds.

Validation and detection

  • Inventory Gemfile.lock and deployed package metadata for Sinatra versions.
  • Search application routes for Content-Disposition or attachment filename generation.
  • Confirm no user input directly controls download filenames.
  • Run dependency scanning against GHSA and CVE identifiers.
  • Verify patched versions are deployed, not only updated in source control.
Prepared
Confidence
high
Sources
8

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-494: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2022-45442 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
8.8 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
7Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
8.8CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H2.85.9Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

8.8High
CVSS 3.1 vector shape for CVE-2022-45442Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
sinatrasinatra>= 3.0, < 3.0.4, >= 2.0, < 2.2.3Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-494 · source CWE mapping

Download of Code Without Integrity Check

Download of Code Without Integrity Check represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.