Directory Traversal Affecting ruby-sinatra package, versions <1.4.8-1ubuntu0.1~esm2


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
2.18% (81st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU1804-RUBYSINATRA-2806670
  • published2 May 2022
  • disclosed2 May 2022

Introduced: 2 May 2022

CVE-2022-29970  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade Ubuntu:18.04 ruby-sinatra to version 1.4.8-1ubuntu0.1~esm2 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ruby-sinatra package and not the ruby-sinatra package as distributed by Ubuntu. See How to fix? for Ubuntu:18.04 relevant fixed versions and status.

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

CVSS Base Scores

version 3.1