Live threats

All CVEs / Sinatrarb

CVE-2022-29970Sinatrarb Sinatra

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
1.8%
probability of exploitation in 30 days · percentile 78
Auth required
No
Published
May 2, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Sinatra.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
RubyGems sinatra < 2.2.0 2.2.0 gem "sinatra", ">= 2.2.0"

Per OSV / GitHub Advisories (GHSA-qp49-3pvw-x4m5). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
sinatrarbsinatra< 2.2.0
debiandebian_linux10.0

Official sources

References

Links published by the sources. Open them with care.