CVSS 3.1
7.5 highCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NHigh (7.5). EPSS 2.1% estimated probability of exploitation activity in the next 30 days. Fixed in sinatra 2.2.0.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:Nsinatra (RubyGems): fixed in 2.2.0Explain CVE-2022-29970 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-29970?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-29970?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-29970 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.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| sinatrarb:sinatra | before 2.2.0 |
| debian:debian_linux | 10.0 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-qp49-3pvw-x4m5 | RubyGems | sinatra | <2.2.0 | 2.2.0 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 10 | ruby-sinatra | 2.0.5-4+deb10u1 | DLA-3166-1 |
| Debian | 11 | ruby-sinatra | 2.0.8.1-2+deb11u1 | DLA-3877-1 |
| Debian | 12, 13, 14 | ruby-sinatra | 2.2.2-1 | DEBIAN-CVE-2022-29970 |
| Ubuntu | 22.04:LTS | ruby-sinatra | 2.0.8.1-2+deb11u1build0.22.04.1 | UBUNTU-CVE-2022-29970 USN-7664-1 |
| Ubuntu | Pro:16.04:LTS | ruby-sinatra | 1.4.7-3ubuntu0.1~esm2 | UBUNTU-CVE-2022-29970 USN-7664-1 |
| Ubuntu | Pro:18.04:LTS | ruby-sinatra | 1.4.8-1ubuntu0.1~esm2 | UBUNTU-CVE-2022-29970 USN-7664-1 |
| Ubuntu | Pro:20.04:LTS | ruby-sinatra | 2.0.8.1-1ubuntu0.1~esm2 | USN-7664-1 |
| Red Hat | enterprise_linux:8::highavailability, enterprise_linux:8::resilientstorage | pcs, pcs-snmp | 0:0.10.12-6.el8_6.1 | RHSA-2022:4661 |
| Red Hat | enterprise_linux:9::highavailability, enterprise_linux:9::resilientstorage | pcs, pcs-snmp | 0:0.11.1-10.el9_0.1 | RHSA-2022:4587 |
| Red Hat | rhel_e4s:8.1::highavailability | pcs, pcs-snmp | 0:0.10.2-4.el8_1.2 | RHSA-2022:2255 |
| Red Hat | rhel_eus:8.2::highavailability, rhel_eus:8.2::resilientstorage | pcs, pcs-snmp | 0:0.10.4-6.el8_2.2 | RHSA-2022:2253 |
| Red Hat | rhel_eus:8.4::highavailability, rhel_eus:8.4::resilientstorage | pcs, pcs-snmp | 0:0.10.8-1.el8_4.1 | RHSA-2022:2256 |
| Red Hat | satellite:6.12::el8 | candlepin, candlepin-selinux | 0:4.1.15-1.el8sat | RHSA-2022:8506 |
| Red Hat | satellite:6.12::el8 | foreman, foreman-cli, foreman-ec2 and 11 more | 0:3.3.0.17-1.el8sat | RHSA-2022:8506 |
| Red Hat | satellite:6.12::el8 | rubygem-git | 0:1.11.0-1.el8sat | RHSA-2022:8506 |
| Red Hat | satellite:6.12::el8 | rubygem-rails-html-sanitizer | 0:1.4.3-2.el8sat | RHSA-2022:8506 |
| Red Hat | satellite:6.12::el8, satellite_capsule:6.12::el8 | python-django, python39-django | 0:3.2.14-2.el8pc | RHSA-2022:8506 |
| Red Hat | satellite:6.12::el8, satellite_capsule:6.12::el8 | rubygem-nokogiri, rubygem-nokogiri-debuginfo, rubygem-nokogiri-debugsource | 0:1.13.8-1.el8sat | RHSA-2022:8506 |
| Red Hat | satellite:6.12::el8, satellite_capsule:6.12::el8 | rubygem-sinatra | 1:2.2.0-1.el8sat | RHSA-2022:8506 |
| 2 more for Red Hat in the JSON and on Red Hat's page. | ||||
| SUSE | OpenStack Cloud 9 | ardana-barbican | 9.0+git.1644879908.8a641c1-3.13.1 | SUSE-SU-2022:1729-1 |
| SUSE | OpenStack Cloud 9 | venv-openstack-barbican | 7.0.1~dev24-3.35.2 | SUSE-SU-2022:1729-1 |
| SUSE | OpenStack Cloud 9 | venv-openstack-cinder | 13.0.10~dev24-3.38.1 | SUSE-SU-2022:1729-1 |
| SUSE | OpenStack Cloud 9 | venv-openstack-designate | 7.0.2~dev2-3.35.1 | SUSE-SU-2022:1729-1 |
| SUSE | OpenStack Cloud 9 | venv-openstack-glance | 17.0.1~dev30-3.33.1 | SUSE-SU-2022:1729-1 |
| SUSE | OpenStack Cloud 9 | venv-openstack-heat | 11.0.4~dev4-3.35.1 | SUSE-SU-2022:1729-1 |
| SUSE | OpenStack Cloud 9 | venv-openstack-horizon | 14.1.1~dev11-4.39.1 | SUSE-SU-2022:1729-1 |
| SUSE | OpenStack Cloud 9 | venv-openstack-ironic | 11.1.5~dev18-4.33.1 | SUSE-SU-2022:1729-1 |
| SUSE | OpenStack Cloud 9 | venv-openstack-keystone | 14.2.1~dev9-3.36.1 | SUSE-SU-2022:1729-1 |
| SUSE | OpenStack Cloud 9 | venv-openstack-magnum | 7.2.1~dev1-4.35.1 | SUSE-SU-2022:1729-1 |
| SUSE | OpenStack Cloud 9 | venv-openstack-manila | 7.4.2~dev60-3.41.1 | SUSE-SU-2022:1729-1 |
| SUSE | OpenStack Cloud 9 | venv-openstack-monasca | 2.7.1~dev10-3.37.1 | SUSE-SU-2022:1729-1 |
| 21 more for SUSE in the JSON and on SUSE's page. | ||||
| AlmaLinux | 8 | pcs, pcs-snmp | 0.10.12-6.el8.alma | ALSA-2022:4661 |
| AlmaLinux | 9 | pcs, pcs-snmp | 0.11.1-10.el9 | ALSA-2022:4587 |
| Rocky Linux | 8 | libdb | 0:5.3.28-42.el8_4 | RLSA-2022:8506 |
| Rocky Linux | 8 | pcs | 0:0.10.12-6.el8_6.1 | RLSA-2022:4661 |
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; SUSE security data, 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 · SUSE.
Red Hat rates this Important.
Disable the static option which will disable the public_dir option. With this configuration, Sinatra will not serve files from the public directory and therefore files outside of it.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | pcs-0:0.10.12-6.el8_6.1 | Fixed 2022-05-18 | RHSA-2022:4661 |
| Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions | pcs-0:0.10.2-4.el8_1.2 | Fixed 2022-05-16 | RHSA-2022:2255 |
| Red Hat Enterprise Linux 8.2 Extended Update Support | pcs-0:0.10.4-6.el8_2.2 | Fixed 2022-05-16 | RHSA-2022:2253 |
| Red Hat Enterprise Linux 8.4 Extended Update Support | pcs-0:0.10.8-1.el8_4.1 | Fixed 2022-05-16 | RHSA-2022:2256 |
| Red Hat Enterprise Linux 9 | pcs-0:0.11.1-10.el9_0.1 | Fixed 2022-05-18 | RHSA-2022:4587 |
| Red Hat Satellite 6.12 for RHEL 8 | rubygem-sinatra-1:2.2.0-1.el8sat | Fixed 2022-11-16 | RHSA-2022:8506 |
| Red Hat Enterprise Linux 7 | pcs | Affected | |
| Red Hat Satellite 6 | tfm-ror51-rubygem-mustermann | Affected | |
| Red Hat Satellite 6 | tfm-ror51-rubygem-rack-protection | Affected | |
| Red Hat Satellite 6 | tfm-ror51-rubygem-sinatra | Affected | |
| Red Hat Satellite 6 | tfm-ror52-rubygem-mustermann | Affected | |
| Red Hat Satellite 6 | tfm-ror52-rubygem-rack-protection | Affected | |
| Red Hat Satellite 6 | tfm-ror52-rubygem-sinatra | Affected | |
| Red Hat Satellite 6 | tfm-rubygem-mustermann | Affected | |
| Red Hat Satellite 6 | tfm-rubygem-rack-protection | Affected | |
| Red Hat Satellite 6 | tfm-rubygem-sinatra | Affected | |
| Red Hat Storage 3 | rubygem-sinatra | Affected |
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-29970.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.