CVE-2022-29970

HIGH
Published May 2, 20224y ago · Modified Jun 17, 20262w ago
7.5 CVSS 3.1
High
Find Similar
Published May 2, 2022 4y ago
Last Modified Jun 17, 2026 2w ago

Description

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

CVSS Details

Base Score
7.5
Exploitability
3.9
Impact
3.6
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction None
Scope Unchanged
Confidentiality High
Integrity None
Availability None

Threat Intelligence

No active exploitation signals — not in CISA KEV and no EPSS score yet.

Exploit & Patch Status
No Known Exploit
Patch Available

Weaknesses 1

CWE-22 Path Traversal Resource Mgmt

Affected Products 2

VendorProductVersionRange
sinatrarbsinatra* <2.2.0
debiandebian_linux10.0any

References 3

  • github.com https://github.com/sinatra/sinatra/pull/1683/commits/462c3ca1db53ed3cfc394cf5948e9c948ad1c10e
    PatchThird Party Advisory
  • lists.debian.org https://lists.debian.org/debian-lts-announce/2022/10/msg00034.html
    Mailing ListThird Party Advisory
  • lists.debian.org https://lists.debian.org/debian-lts-announce/2024/09/msg00020.html

Remediation

  • github.com https://github.com/sinatra/sinatra/pull/1683/commits/462c3ca1db53ed3cfc394cf5948e9c948ad1c10e
    PatchThird Party Advisory