ruby-sinatra — security advisory
Sinatra is a domain-specific language for creating web applications in Ruby. An issue was discovered in Sinatra 2.0 before 2.2.3 and 3.0 before 3.0.4. An application is vulnerable to a reflected file download (RFD) attack that sets the Content-Disposition header of a response when the filename is derived from user-supplied input. Version 2.2.3 and 3.0.4 contain patches for this issue.
- Products
- ruby-sinatra
- Affected versions
- Not specified
- Fixed versions
- 3.0.5-2
- CVEs
- CVE-2022-45442
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 15:32 UTC · Revision 1
Source evidence
Sinatra is a domain-specific language for creating web applications in Ruby. An issue was discovered in Sinatra 2.0 before 2.2.3 and 3.0 before 3.0.4. An application is vulnerable to a reflected file download (RFD) attack that sets the Content-Disposition header of a response when the filename is derived from user-supplied input. Version 2.2.3 and 3.0.4 contain patches for this issue.
osv:DEBIAN-CVE-2022-45442
ruby-sinatra
Fixed versions: 3.0.5-2
ruby-sinatra
Fixed versions: 3.0.5-2
ruby-sinatra
Fixed versions: 3.0.5-2
Complete source record
{
"id": "e57c9b4d26a55a9944c7d5a01baecc35810a971000e1b5185ea129e1e6e75435",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2022-45442",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2022-45442",
"summary": "Sinatra is a domain-specific language for creating web applications in Ruby. An issue was discovered in Sinatra 2.0 before 2.2.3 and 3.0 before 3.0.4. An application is vulnerable to a reflected file download (RFD) attack that sets the Content-Disposition header of a response when the filename is derived from user-supplied input. Version 2.2.3 and 3.0.4 contain patches for this issue.",
"evidence": "osv:DEBIAN-CVE-2022-45442",
"products": [
{
"name": {
"value": "ruby-sinatra",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "3.0.5-2",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "ruby-sinatra",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "3.0.5-2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "ruby-sinatra",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "3.0.5-2",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "DEBIAN-CVE-2022-45442",
"aliases": [
"DEBIAN-CVE-2022-45442"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "3.0.5-2"
}
]
}
],
"package": {
"name": "ruby-sinatra",
"purl": "pkg:deb/debian/ruby-sinatra?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-45442.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "3.0.5-2"
}
]
}
],
"package": {
"name": "ruby-sinatra",
"purl": "pkg:deb/debian/ruby-sinatra?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-45442.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "3.0.5-2"
}
]
}
],
"package": {
"name": "ruby-sinatra",
"purl": "pkg:deb/debian/ruby-sinatra?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-45442.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-15T08:03:06.134257150Z",
"provider": "osv",
"upstream": [
"CVE-2022-45442"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2022-45442"
]
},
"related_cves": [
{
"value": "CVE-2022-45442",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 325152,
"published_at": "2022-11-28T21:15:10.67+00:00"
}