{"id":"CVE-2021-21288","aliases":["CVE-2021-21288","GHSA-fwcm-636p-68r5"],"related":[],"kind":"vulnerability","state":"published","title":"Server-side request forgery in CarrierWave","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n[CarrierWave download feature](https://github.com/carrierwaveuploader/carrierwave#uploading-files-from-a-remote-location) 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.\n\n### Patches\nUpgrade to [2.1.1](https://rubygems.org/gems/carrierwave/versions/2.1.1) or [1.3.2](https://rubygems.org/gems/carrierwave/versions/1.3.2).\n\n### Workarounds\nUsing 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.\n\n### References\n[Server-Side Request Forgery Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [CarrierWave repo](https://github.com/carrierwaveuploader/carrierwave)\n* Email me at [mit.shibuya@gmail.com](mailto:mit.shibuya@gmail.com)","format":"markdown","source":"ghsa"},{"lang":"es","text":"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","source":"nvd"}],"published":"2021-02-08T19:15:16.000Z","modified":"2026-09-10T03:49:14.221Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:N/A:N","score":4,"rating":"MEDIUM"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"version":"< 1.3.2","status":"affected"},{"version":">= 2.0.0, < 2.1.1","status":"affected"}],"vendor":"carrierwaveuploader","product":"carrierwave","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.3.2"}],"ecosystem":"RubyGems","package":"carrierwave","purl":"pkg:gem/carrierwave","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.1.1"}],"ecosystem":"RubyGems","package":"carrierwave","purl":"pkg:gem/carrierwave","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.3.2"},{"status":"affected","introduced":"2.0.1","fixed":"2.1.1"}],"vendor":"carrierwave_project","product":"carrierwave","cpe":"cpe:2.3:a:carrierwave_project:carrierwave:*:*:*:*:*:ruby:*:*","source":"nvd"}],"references":[{"url":"https://github.com/carrierwaveuploader/carrierwave/security/advisories/GHSA-fwcm-636p-68r5","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://rubygems.org/gems/carrierwave/","tags":["product","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/carrierwaveuploader/carrierwave/commit/012702eb3ba1663452aa025831caa304d1a665c0","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/carrierwaveuploader/carrierwave/blob/master/CHANGELOG.md#132---2021-02-08","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/carrierwaveuploader/carrierwave/blob/master/CHANGELOG.md#211---2021-02-08","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21288","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/carrierwaveuploader/carrierwave","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/carrierwave/CVE-2021-21288.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://rubygems.org/gems/carrierwave","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-21288","url":"https://www.cve.org/CVERecord?id=CVE-2021-21288","licence":"CVE Terms of Use","modified":"2024-08-03T18:09:15.747Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fwcm-636p-68r5","url":"https://github.com/advisories/GHSA-fwcm-636p-68r5","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:14.221Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-21288","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21288","licence":"Public domain","modified":"2026-06-17T03:35:12.133Z"}],"updatedAt":"2026-11-25T22:57:59.844Z","epss":{"score":0.01187,"percentile":0.68751,"date":"2026-12-01T12:00:22.000Z"}}