CVE-2023-49090
published medium CVSS 3.1 · 6.8CarrierWave has a content-type allowlist bypass vulnerability, possibly leading to XSS
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| carrierwaveuploader | — | carrierwave>= 2.2.0, < 2.2.5 · >= 3.0.0, < 3.0.5 | Affected | Not stated | GitHub_M |
| Ubuntu | bionic | ruby-carrierwave | Advisory build | 1.2.2-1ubuntu0.1~esm1 | USN-7497-1 |
| Ubuntu | focal | ruby-carrierwave | Advisory build | 1.3.1-2ubuntu0.1~esm1 | USN-7497-1 |
| Ubuntu | jammy | ruby-carrierwave | Advisory build | 1.3.2-2ubuntu0.22.04.1~esm1 | USN-7497-1 |
| Ubuntu | noble | ruby-carrierwave | Advisory build | 1.3.2-2ubuntu0.24.04.1~esm1 | USN-7497-1 |
Description
CarrierWave is a solution for file uploads for Rails, Sinatra and other Ruby web frameworks. CarrierWave has a Content-Type allowlist bypass vulnerability, possibly leading to XSS. The validation in `allowlisted_content_type?` determines Content-Type permissions by performing a partial match. If the `content_type` argument of `allowlisted_content_type?` is passed a value crafted by the attacker, Content-Types not included in the `content_type_allowlist` will be allowed. This issue has been patched in versions 2.2.5 and 3.0.5.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.8 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| carrierwaveuploader | carrierwave | >= 2.2.0, < 2.2.5 (affected)>= 3.0.0, < 3.0.5 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
3Provider assertions
3GitHub_M · cna
CarrierWave has a content-type allowlist bypass vulnerability, possibly leading to XSS
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 3e4228c0414981892aef5683f1c275a547ce616e8244034e784c5c20f1a1000f
- Ingested
- 23 Sep 2026, 08:13:25 UTC
- Source record
- Official CVE record