synced 6 MIN AGO
01 Record

CVE-2022-29970

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

UnratedPUBLISHEDCNA: mitre
CNA base scoreUnratedNo CNA CVSS vector

02 Description

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

03 Exploitation and scoring

Exploitation
Not assessed. CISA has not published an exploitation assessment for this record, and it is not in the KEV catalog. That is an absence of assessment, not a finding of no risk.
SSVC decision
Not assessed by CISA
EPSS probability
2.13% probability of exploitation activity in the next 30 days.
EPSS percentile
Equal to or higher than the score of 81.8% of scored records. A rank, not a probability.
NVD base score
7.5 (CVSS v3.x), scored by the NVD independently of the CNA.
NVD CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD analysis status
Modified. NVD last modified this record on 2026-06-17.
Red Hat severity
Important. Red Hat's rating for its own products, not a CVSS rating.

Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.

04 Metadata

Published
2022-05-02 00:00Z4 YR AGO
Last updated
2025-11-04 16:09Z11 MO AGO
Reserved
2022-05-02
Assigning CNA
mitre
Record state
PUBLISHED
Severity
Not rated by the issuing CNA
CNA CVSS vector
Not published by the issuing CNA
Weaknesses
  • CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')Base
Data version
5.2
Document digest
20b57c1461ccc1fe991f0784b6ae92ccd72e898b7e9d7465655c07af03e1bbcf

05 Affected products

VendorProductVersionsPlatforms
debiandebian_linuxNot specified—
redhatenterprise_linuxNot specified—
redhatrhel_e4sNot specified—
redhatrhel_eusNot specified—
redhatsatelliteNot specified—
redhatsatellite_capsuleNot specified—
redhatstorageNot specified—
sinatrarbsinatraNot specified—

06 References

07 Fixed in

AlmaLinux 8

  • pcs
    Fixed in 0.10.12-6.el8.alma
  • pcs-snmp
    Fixed in 0.10.12-6.el8.alma

Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

AlmaLinux 9

  • pcs
    Fixed in 0.11.1-10.el9
  • pcs-snmp
    Fixed in 0.11.1-10.el9

Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

CloudLinux 8

  • pcs
    Fixed in 0.10.12-6.el8.alma
  • pcs-snmp
    Fixed in 0.10.12-6.el8.alma

Derived from AlmaLinux 8. Partial coverage: only packages taken from AlmaLinux 8 are listed.

Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

CloudLinux 9

  • pcs
    Fixed in 0.11.1-10.el9
  • pcs-snmp
    Fixed in 0.11.1-10.el9

Derived from AlmaLinux 9. Partial coverage: only packages taken from AlmaLinux 9 are listed.

Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

Debian 12

  • ruby-sinatra
    Fixed in 2.2.2-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 13

  • ruby-sinatra
    Fixed in 2.2.2-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 14

  • ruby-sinatra
    Fixed in 2.2.2-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 22.04 LTS

  • ruby-sinatra
    Fixed in 2.0.8.1-2+deb11u1build0.22.04.1

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 16.04 LTS

  • ruby-sinatra
    Fixed in 1.4.7-3ubuntu0.1~esm2
    Available with Ubuntu Pro: https://ubuntu.com/pro

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 18.04 LTS

  • ruby-sinatra
    Fixed in 1.4.8-1ubuntu0.1~esm2
    Available with Ubuntu Pro: https://ubuntu.com/pro

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.