Paperclip Gem for Ruby vulnerable to content type spoofing

Metadata

medium
4.3
paperclip
CVE-2015-2963
robots.thoughtbot.com
2015-06-05
2017-06-16 19:14
2017-04-01 19:11
2017-01-05 20:15

Description

There is an issue where if an HTML file is uploaded with a .html
extension, but the content type is listed as being `image/jpeg`, this
will bypass a validation checking for images. But it will also pass the
spoof check, because a file named .html and containing actual HTML
passes the spoof check.

Am I vulnerable?

The constraints below list the versions that this vulnerability is patched in, and versions that are unaffected. If a patch is ready but unrealeased, then it is pending.

Or, you can just let us figure it out for you! Appcanary continously monitor your installed packages, and tell you if any of them are vulnerable.

Sign up for monitoring

Affected package information

Package Patched in Unaffected in
paperclip >= 4.2.2 None