VDB
Sign up
MEDIUM4.3

GHSA-fwcm-636p-68r5

Server-side request forgery in CarrierWave

Quick fix

GHSA-fwcm-636p-68r5 — carrierwave: upgrade to the fixed version with the command below.

bundle update carrierwave

Details

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

### Patches Upgrade 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).

### 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](https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html)

### For more information If you have any questions or comments about this advisory: * Open an issue in [CarrierWave repo](https://github.com/carrierwaveuploader/carrierwave) * Email me at [mit.shibuya@gmail.com](mailto:mit.shibuya@gmail.com)

Are you affected?

Enter the version of the package you're using.

Affected packages

RubyGems/carrierwave
Introduced in: 0Fixed in: 1.3.2
Fixbundle update carrierwave
RubyGems/carrierwave
Introduced in: 2.0.0Fixed in: 2.1.1
Fixbundle update carrierwave

References