{"id":"USN-7664-1","summary":"ruby-sinatra vulnerabilities","details":"It was discovered that Sinatra incorrectly handled serving static files.\nAn attacker could possibly use this issue to perform local file inclusion,\nobtaining sensitive information.\n(CVE-2022-29970)\n\nIt was discovered that Sinatra incorrectly handled special characters in\nthe Content-Disposition HTTP header. An attacker could possibly use this\nissue to perform a reflected file download attack, achieving remote code\nexecution. (CVE-2022-45442)","modified":"2026-06-25T13:32:30.656145132Z","published":"2025-07-22T12:17:53Z","related":["UBUNTU-CVE-2022-29970","UBUNTU-CVE-2022-45442"],"upstream":["CVE-2022-29970","CVE-2022-45442","UBUNTU-CVE-2022-29970","UBUNTU-CVE-2022-45442"],"references":[{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7664-1"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-29970"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-45442"}],"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":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"ruby-sinatra","binary_version":"1.4.7-3ubuntu0.1~esm2"}]},"database_specific":{"cves_map":{"ecosystem":"Ubuntu:Pro:16.04:LTS","cves":[{"severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","type":"CVSS_V3"},{"type":"Ubuntu","score":"medium"}],"id":"CVE-2022-29970"},{"id":"CVE-2022-45442","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"score":"medium","type":"Ubuntu"}]}]},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-7664-1.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_name":"ruby-sinatra","binary_version":"1.4.8-1ubuntu0.1~esm2"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-7664-1.json","cves_map":{"ecosystem":"Ubuntu:Pro:18.04:LTS","cves":[{"severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","type":"CVSS_V3"},{"type":"Ubuntu","score":"medium"}],"id":"CVE-2022-29970"},{"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"score":"medium","type":"Ubuntu"}],"id":"CVE-2022-45442"}]}}},{"package":{"name":"ruby-sinatra","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/ruby-sinatra?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.8.1-1ubuntu0.1~esm2"}]}],"versions":["2.0.5-4ubuntu1","2.0.8.1-1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"ruby-rack-protection","binary_version":"2.0.8.1-1ubuntu0.1~esm2"},{"binary_version":"2.0.8.1-1ubuntu0.1~esm2","binary_name":"ruby-sinatra"},{"binary_name":"ruby-sinatra-contrib","binary_version":"2.0.8.1-1ubuntu0.1~esm2"}]},"database_specific":{"cves_map":{"ecosystem":"Ubuntu:Pro:20.04:LTS","cves":[{"id":"CVE-2022-29970","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"}]},{"id":"CVE-2022-45442","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}]},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-7664-1.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_name":"ruby-sinatra","binary_version":"2.0.8.1-2+deb11u1build0.22.04.1"},{"binary_name":"ruby-sinatra-contrib","binary_version":"2.0.8.1-2+deb11u1build0.22.04.1"}],"availability":"No subscription required"},"database_specific":{"cves_map":{"ecosystem":"Ubuntu:22.04:LTS","cves":[{"id":"CVE-2022-29970","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"},{"score":"medium","type":"Ubuntu"}]},{"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}],"id":"CVE-2022-45442"}]},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-7664-1.json"}}],"schema_version":"1.7.5"}