DescriptionSinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
ruby-sinatra (PTS)stretch1.4.7-5vulnerable
bookworm, sid, bullseye2.0.8.1-2vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs

Notes (v2.2.0)
check where issue is introduced

Search for package or bug name: Reporting problems