{"id":"UBUNTU-CVE-2022-29970","details":"Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.","modified":"2026-07-22T20:46:35.408385513Z","published":"2022-05-02T05:15:00Z","related":["USN-7664-1"],"upstream":["CVE-2022-29970"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-29970"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-29970"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7664-1"}],"affected":[{"package":{"name":"ruby-sinatra","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/ruby-sinatra?arch=source&distro=esm-apps%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.7-3ubuntu0.1~esm2"}]}],"versions":["1.4.6-2","1.4.7-3"],"ecosystem_specific":{"binaries":[{"binary_version":"1.4.7-3ubuntu0.1~esm2","binary_name":"ruby-sinatra"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-29970.json"}},{"package":{"name":"ruby-sinatra","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/ruby-sinatra?arch=source&distro=esm-apps%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.8-1ubuntu0.1~esm2"}]}],"versions":["1.4.7-5","1.4.8-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.4.8-1ubuntu0.1~esm2","binary_name":"ruby-sinatra"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-29970.json"}},{"package":{"name":"ruby-sinatra","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/ruby-sinatra?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.8.1-2+deb11u1build0.22.04.1"}]}],"versions":["2.0.8.1-2"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-rack-protection","binary_version":"2.0.8.1-2+deb11u1build0.22.04.1"},{"binary_version":"2.0.8.1-2+deb11u1build0.22.04.1","binary_name":"ruby-sinatra"},{"binary_name":"ruby-sinatra-contrib","binary_version":"2.0.8.1-2+deb11u1build0.22.04.1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-29970.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"},{"type":"Ubuntu","score":"medium"}]}