# CVE-2021-21288: Server-side request forgery in CarrierWave

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.19%, higher than 68% of CVEs (2026-12-01)
- Published: 2021-02-08T19:15:16.000Z
- Modified: 2026-09-10T03:49:14.221Z
- Also known as: GHSA-fwcm-636p-68r5
- Weaknesses: CWE-918
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- carrierwaveuploader carrierwave: < 1.3.2; >= 2.0.0, < 2.1.1
- carrierwave (RubyGems): before 1.3.2; from 2.0.0 before 2.1.1
- carrierwave_project carrierwave: before 1.3.2; from 2.0.1 before 2.1.1

## Every score

- GitHub_M: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:P/I:N/A:N`

## 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

- CVE List: [CVE-2021-21288](https://www.cve.org/CVERecord?id=CVE-2021-21288), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-fwcm-636p-68r5](https://github.com/advisories/GHSA-fwcm-636p-68r5), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2021-21288](https://nvd.nist.gov/vuln/detail/CVE-2021-21288), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-21288 · Whole record: https://cve.day/CVE-2021-21288.json · Rebuilt by cve.day 2026-11-25T22:57:59.844Z
