Security mailing lists by PureSourceCode

CVE-2023-49090

MEDIUM 6.1CVSS 3.1

CarrierWave Content-Type allowlist bypass vulnerability, possibly leading to XSS

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.

Published
29 Nov 2023
Last modified
17 Jun 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-79
Also known as
GHSA-gxhx-g4fq-49hj
Sources
NVDJSONOSV GHSA-gxhx-g4fq-49hjJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 6.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N
OSV GitHub CVSS 3.1 MEDIUM 6.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD carrierwave_project carrierwave
cpe:2.3:a:carrierwave_project:carrierwave:*:*:*:*:*:ruby:*:*
< 2.2.5 2.2.5
NVD carrierwave_project carrierwave
cpe:2.3:a:carrierwave_project:carrierwave:*:*:*:*:*:ruby:*:*
>= 3.0.0, < 3.0.5 3.0.5
OSV RubyGems carrierwave >= 3.0.0, < 3.0.5 3.0.5
OSV RubyGems carrierwave < 2.2.5 2.2.5

References

History

  • 25 Nov 2026 20:37 UTC · NVD: first stored (published 29 Nov 2023)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 29 Nov 2023)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.