CVE-2022-29970

sinatra: path traversal possible outside of public_dir when serving static files

Published May 2, 2022 CVSS 3.1 · 7.5 High EPSS 2.1% KEV · Not listed
Description
Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3166-1 ruby-sinatra security update
Debian DLA Debian DLA DLA-3877-1 ruby-sinatra security update
EUVD EUVD EUVD-2022-5007 Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.
Github GHSA Github GHSA GHSA-qp49-3pvw-x4m5 sinatra does not validate expanded path matches
Ubuntu USN Ubuntu USN USN-7664-1 Sinatra vulnerabilities
Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Nov 4, 2025, 4:09 PM
Reserved
May 2, 2022, 12:00 AM
Status
Modified
Published
May 2, 2022, 5:15 AM
Modified
Jun 17, 2026, 4:41 AM
Severity
Important
Public date
May 2, 2022, 12:00 AM