CVEfocus › CVE database › CVE-2022-29970

CVE-2022-29970

EPSS 1.8% (higher than 78% of CVEs)Published 2022-05-02Updated 2025-11-04Assigner: mitre

Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, RubyGems, Ubuntu: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

15Fixed
5Fix pending
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04ruby-sinatraNot affected
vulnerable_code_not_present
Ubuntu 22.04ruby-sinatraFixed2.0.8.1-2+deb11u1build0.22.04.1UBUNTU-CVE-2022-29970
Ubuntu 18.04ruby-sinatraFix pending1.4.8-1ubuntu0.1~esm2 (Ubuntu Pro)UBUNTU-CVE-2022-29970
Ubuntu 16.04ruby-sinatraFix pending1.4.7-3ubuntu0.1~esm2 (Ubuntu Pro)UBUNTU-CVE-2022-29970
Debian 14ruby-sinatraFixed2.2.2-1DEBIAN-CVE-2022-29970
Debian 13ruby-sinatraFixed2.2.2-1DEBIAN-CVE-2022-29970
Debian 12ruby-sinatraFixed2.2.2-1DEBIAN-CVE-2022-29970
Red Hat Enterprise Linux 9pcsFixed0:0.11.1-10.el9_0.1RHSA-2022:4587
Red Hat Enterprise Linux 9pcs-snmpFixed0:0.11.1-10.el9_0.1RHSA-2022:4587
Red Hat Enterprise Linux 8pcsFixed0:0.10.12-6.el8_6.1RHSA-2022:4661
Red Hat Enterprise Linux 8pcs-snmpFixed0:0.10.12-6.el8_6.1RHSA-2022:4661
Red Hat Enterprise Linux 7pcsFix pending
Affected
Red Hat Enterprise Linux 7pcs-snmpFix pending
Affected
Red Hat Enterprise Linux 7python-clufterFix pending
Affected
AlmaLinux 9pcsFixed0.11.1-10.el9ALSA-2022:4587
AlmaLinux 9pcs-snmpFixed0.11.1-10.el9ALSA-2022:4587
AlmaLinux 8pcsFixed0.10.12-6.el8.almaALSA-2022:4661
AlmaLinux 8pcs-snmpFixed0.10.12-6.el8.almaALSA-2022:4661
Rocky Linux 8libdbFixed0:5.3.28-42.el8_4RLSA-2022:8506
Rocky Linux 8pcsFixed0:0.10.12-6.el8_6.1RLSA-2022:4661
RubyGems librarysinatraFixed2.2.0GHSA-qp49-3pvw-x4m5

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.