GitHub Advisoryadvisory · RubyGems

GHSA-qp49-3pvw-x4m5 sinatra does not validate expanded path matches

HIGH Published 2022-05-03 Modified 2025-11-04 Official page ↗
Aliases
CVE-2022-29970
Ecosystem
RubyGems
Packages
sinatra
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weaknesses
CWE-22, CWE-426
Reviewed
2022-05-03

Affected packages

• RubyGems sinatra: < 2.2.0 → fixed in 2.2.0

Description

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

Related

Alias · CVE (1)

  • CVE-2022-29970 Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files. vulnerability

Weakness · CWE (2)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
  • CWE-426 Untrusted Search Path weakness

References