cve.bz

CVE-2022-45442 Download of Code Without Integrity Check

8.8 highExploit referenceEPSS 0.7%Fix available

High (8.8). EPSS 0.7% estimated probability of exploitation activity in the next 30 days. Fixed in sinatra 2.2.3, 3.0.4.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 54th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2025-04-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-494 Download of Code Without Integrity Check
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-45442 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-45442?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-45442?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-45442 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
sinatrarb:sinatrafrom 2.0.0 before 2.2.3
sinatrarb:sinatrafrom 3.0.0 before 3.0.4
debian:debian_linux10.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-2x8x-jmrp-phxwRubyGemssinatra>=3.0 <3.0.43.0.4
GHSA-2x8x-jmrp-phxwRubyGemssinatra>=2.0.0 <2.2.32.2.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10ruby-sinatra2.0.5-4+deb10u2DLA-3264-1
Debian11ruby-sinatra2.0.8.1-2+deb11u1DLA-3877-1
Debian12, 13, 14ruby-sinatra3.0.5-2DEBIAN-CVE-2022-45442
Ubuntu22.04:LTSruby-sinatra2.0.8.1-2+deb11u1build0.22.04.1UBUNTU-CVE-2022-45442 USN-7664-1
UbuntuPro:16.04:LTSruby-sinatra1.4.7-3ubuntu0.1~esm2UBUNTU-CVE-2022-45442 USN-7664-1
UbuntuPro:18.04:LTSruby-sinatra1.4.8-1ubuntu0.1~esm2UBUNTU-CVE-2022-45442 USN-7664-1
UbuntuPro:20.04:LTSruby-sinatra2.0.8.1-1ubuntu0.1~esm2USN-7664-1
Red Hatenterprise_linux:8::highavailability, enterprise_linux:8::resilientstoragepcs, pcs-snmp0:0.10.14-5.el8_7.2RHSA-2023:0855
Red Hatenterprise_linux:9::highavailability, enterprise_linux:9::resilientstoragepcs, pcs-snmp0:0.11.3-4.el9_1.2RHSA-2023:0974
Red Hatrhel_e4s:8.1::highavailabilitypcs, pcs-snmp0:0.10.2-4.el8_1.3RHSA-2023:0857
Red Hatrhel_e4s:8.2::highavailability, rhel_tus:8.2::highavailabilitypcs, pcs-snmp0:0.10.4-6.el8_2.4RHSA-2023:0393
Red Hatrhel_eus:8.4::highavailability, rhel_eus:8.4::resilientstoragepcs, pcs-snmp0:0.10.8-1.el8_4.3RHSA-2023:0506
Red Hatrhel_eus:8.6::highavailability, rhel_eus:8.6::resilientstoragepcs, pcs-snmp0:0.10.12-6.el8_6.3RHSA-2023:0427
Red Hatrhel_eus:9.0::highavailability, rhel_eus:9.0::resilientstoragepcs, pcs-snmp0:0.11.1-10.el9_0.3RHSA-2023:0527
AlmaLinux8pcs, pcs-snmp0.10.14-5.el8_7.2.almaALSA-2023:0855
AlmaLinux9pcs, pcs-snmp0.11.3-4.el9_1.2ALSA-2023:0974
Rocky Linux8pcs0:0.10.14-5.el8_7.2RLSA-2023:0855

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8pcs-0:0.10.14-5.el8_7.2Fixed 2023-02-21RHSA-2023:0855
Red Hat Enterprise Linux 8.1 Update Services for SAP Solutionspcs-0:0.10.2-4.el8_1.3Fixed 2023-02-21RHSA-2023:0857
Red Hat Enterprise Linux 8.2 Telecommunications Update Servicepcs-0:0.10.4-6.el8_2.4Fixed 2023-01-24RHSA-2023:0393
Red Hat Enterprise Linux 8.2 Update Services for SAP Solutionspcs-0:0.10.4-6.el8_2.4Fixed 2023-01-24RHSA-2023:0393
Red Hat Enterprise Linux 8.4 Extended Update Supportpcs-0:0.10.8-1.el8_4.3Fixed 2023-01-30RHSA-2023:0506
Red Hat Enterprise Linux 8.6 Extended Update Supportpcs-0:0.10.12-6.el8_6.3Fixed 2023-01-24RHSA-2023:0427
Red Hat Enterprise Linux 9pcs-0:0.11.3-4.el9_1.2Fixed 2023-02-28RHSA-2023:0974
Red Hat Enterprise Linux 9.0 Extended Update Supportpcs-0:0.11.1-10.el9_0.3Fixed 2023-01-30RHSA-2023:0527
Red Hat 3scale API Management Platform 23scale-amp2/backend-rhel8Affected
Red Hat 3scale API Management Platform 23scale-amp2/zync-rhel8Will not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-45442.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-494 (12).

References

Check your stackJSON