CVE-2021-21288
JSON

4.3medium

Server-side request forgery in CarrierWave

Severity
4.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
1.19% (higher than 68% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-fwcm-636p-68r5

Description

CarrierWave is an open-source RubyGem which provides a simple and flexible way to upload files from Ruby applications. In CarrierWave before versions 1.3.2 and 2.1.1 the download feature has an SSRF vulnerability, allowing attacks to provide DNS entries or IP addresses that are intended for internal use and gather information about the Intranet infrastructure of the platform. This is fixed in versions 1.3.2 and 2.1.1.

Affected

Product or packageVersionsReported by
carrierwaveuploader carrierwave< 1.3.2, >= 2.0.0, < 2.1.1CVE List
carrierwave (RubyGems)before 1.3.2, from 2.0.0 before 2.1.1GitHub Advisory Database
carrierwave_project carrierwavebefore 1.3.2, from 2.0.1 before 2.1.1NVD

All scores

GitHub_M4.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
GitHub4.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
NVD4.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
NVD4.0medium CVSS:2.0AV:N/AC:L/Au:S/C:P/I:N/A:N

Classification

What each source says

CVE List

CarrierWave is an open-source RubyGem which provides a simple and flexible way to upload files from Ruby applications. In CarrierWave before versions 1.3.2 and 2.1.1 the download feature has an SSRF vulnerability, allowing attacks to provide DNS entries or IP addresses that are intended for internal use and gather information about the Intranet infrastructure of the platform. This is fixed in versions 1.3.2 and 2.1.1.

GitHub Advisory Database
Impact

CarrierWave download feature has an SSRF vulnerability, allowing attacks to provide DNS entries or IP addresses that are intended for internal use and gather information about the Intranet infrastructure of the platform.

Patches

Upgrade to 2.1.1 or 1.3.2.

Workarounds

Using proper network segmentation and applying the principle of least privilege to outbound connections from application servers can reduce the severity of SSRF vulnerabilities. Ideally the vulnerable gem should run on an isolated server without access to any internal network resources or cloud metadata access.

References

Server-Side Request Forgery Prevention Cheat Sheet

For more information

If you have any questions or comments about this advisory:

NVD (es)

CarrierWave es un RubyGem de código abierto que proporciona una forma simple y flexible de cargar archivos desde aplicaciones Ruby.&#xa0;En CarrierWave versiones anteriores a 1.3.2 y 2.1.1, la funcionalidad de descarga tiene una vulnerabilidad SSRF, permitiendo ataques para proporcionar entradas DNS o direcciones IP que están destinadas a uso interno y recopilen información sobre la infraestructura de Intranet de la plataforma.&#xa0;Esto se corrigió en las versiones 1.3.2 y 2.1.1

References

https://github.com/carrierwaveuploader/carrierwave/security/advisories/GHSA-fwcm-636p-68r5third-party-advisory, web
https://rubygems.org/gems/carrierwave/product, third-party-advisory
https://github.com/carrierwaveuploader/carrierwave/commit/012702eb3ba1663452aa025831caa304d1a665c0patch, third-party-advisory, web
https://github.com/carrierwaveuploader/carrierwave/blob/master/CHANGELOG.md#132---2021-02-08release-notes, third-party-advisory, web
https://github.com/carrierwaveuploader/carrierwave/blob/master/CHANGELOG.md#211---2021-02-08release-notes, third-party-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2021-21288advisory
https://github.com/carrierwaveuploader/carrierwavepackage
https://github.com/rubysec/ruby-advisory-db/blob/master/gems/carrierwave/CVE-2021-21288.ymlweb
https://rubygems.org/gems/carrierwaveweb

Sources

SourceRecordLicence
CVE ListCVE-2021-21288 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-fwcm-636p-68r5 changed 2026-09-10CC-BY-4.0
NVDCVE-2021-21288 changed 2026-06-17Public domain