RubySec

Providing security resources for the Ruby community

CVE-2022-29970 (sinatra): sinatra does not validate expanded path matches

ADVISORIES

GEM

sinatra

SEVERITY

CVSS v3.x: 7.5 (High)

CVSS v2.0: 5.0 (Medium)

PATCHED VERSIONS

  • >= 2.2.0

DESCRIPTION

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