Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2022-45442: Reflected File Download in Sinatra

Published Nov 28, 2022 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS8.8High · v3.1
EPSS0.69%54th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendors
Debian ProjectSinatrarb
IdentifiersCVE-2022-45442CWE-20

Sinatra before 2.2.3 in the 2.x branch and before 3.0.4 in the 3.x branch is vulnerable to a reflected file download (RFD) attack when an application derives a response Content-Disposition filename from user-supplied input. An attacker can influence the filename presented for a downloaded response.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

An attacker can conduct a reflected file download attack against a vulnerable Sinatra application and potentially cause users to download malicious files under attacker-influenced filenames.

Mitigation

If you can’t patch tonight, do this now.

If immediate upgrade is not possible, avoid using user-supplied data directly in Content-Disposition filenames. Restrict filenames to a server-side allowlist or generate them entirely on the server, strip or reject unsafe characters, and ensure header values are safely encoded before inclusion in responses. Where feasible, disable download behavior for endpoints that reflect untrusted input into attachment filenames.

Remediation

Patch, then assume compromise.

Upgrade Sinatra to version 2.2.3 or later in the 2.x branch, or version 3.0.4 or later in the 3.x branch.

Public exploits

Exploits

No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.

View more in app →
Every candidate exploit was rejected by Mallory's analysis.
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Debian ProjectDebian Linuxoperating_system
SinatrarbSinatraapplication
FAQ

Frequently asked questions

Is CVE-2022-45442 exploited in the wild?
As of Oct 16, 2026, Mallory has no reports of CVE-2022-45442 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2022-45442?
Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2022-45442.
Is there a patch for CVE-2022-45442?
Upgrade Sinatra to version 2.2.3 or later in the 2.x branch, or version 3.0.4 or later in the 3.x branch.
What products are affected by CVE-2022-45442?
Sinatrarb Sinatra and Debian Project Debian Linux.
How severe is CVE-2022-45442?
CVE-2022-45442 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 0.69% (54th percentile) as of Oct 16, 2026.
Activity feed

Recent activity

1 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.