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 package | Versions | Reported by |
|---|---|---|
| carrierwaveuploader carrierwave | < 1.3.2, >= 2.0.0, < 2.1.1 | CVE List |
| carrierwave (RubyGems) | before 1.3.2, from 2.0.0 before 2.1.1 | GitHub Advisory Database |
| carrierwave_project carrierwave | before 1.3.2, from 2.0.1 before 2.1.1 | NVD |
All scores
| GitHub_M | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| GitHub | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| NVD | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| NVD | 4.0medium CVSS:2.0 | AV: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
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:
- Open an issue in CarrierWave repo
- Email me at mit.shibuya@gmail.com
NVD (es)
CarrierWave es un RubyGem de código abierto que proporciona una forma simple y flexible de cargar archivos desde aplicaciones Ruby. 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. Esto se corrigió en las versiones 1.3.2 y 2.1.1
References
| https://github.com/carrierwaveuploader/carrierwave/security/advisories/GHSA-fwcm-636p-68r5 | third-party-advisory, web | |
| https://rubygems.org/gems/carrierwave/ | product, third-party-advisory | |
| https://github.com/carrierwaveuploader/carrierwave/commit/012702eb3ba1663452aa025831caa304d1a665c0 | patch, third-party-advisory, web | |
| https://github.com/carrierwaveuploader/carrierwave/blob/master/CHANGELOG.md#132---2021-02-08 | release-notes, third-party-advisory, web | |
| https://github.com/carrierwaveuploader/carrierwave/blob/master/CHANGELOG.md#211---2021-02-08 | release-notes, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-21288 | advisory | |
| https://github.com/carrierwaveuploader/carrierwave | package | |
| https://github.com/rubysec/ruby-advisory-db/blob/master/gems/carrierwave/CVE-2021-21288.yml | web | |
| https://rubygems.org/gems/carrierwave | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-21288 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-fwcm-636p-68r5 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2021-21288 changed 2026-06-17 | Public domain |