CVE-2022-29970

sinatra does not validate expanded path matches in gem/sinatra

Identifiers

CVE-2022-29970, GHSA-qp49-3pvw-x4m5

Package Slug

gem/sinatra

Vulnerability

sinatra does not validate expanded path matches

Description

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

Affected Versions

All versions before 2.2.0

Solution

Upgrade to version 2.2.0 or above.

Last Modified

2022-05-04

source