CVE-2015-2963Thoughtbot Paperclip
Medium 4.3 No auth needed
Follow: this CVE · Thoughtbot · Thoughtbot Paperclip We alert you by email or Slack (account required).
- Priority
- 41
- CVSS 2.0
- 4.3
- EPSS
- 2.1% probability of exploitation in 30 days · percentile 82
- Auth required
- No
- Published
- Jul 10, 2015
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
AV:N/AC:M/Au:N/C:N/I:P/A:N
What happens
The thoughtbot paperclip gem before 4.2.2 for Ruby does not consider the content-type value during media-type validation, which allows remote attackers to upload HTML documents and conduct cross-site scripting (XSS) attacks via a spoofed value, as demonstrated by image/jpeg.
What to do
- Apply the vendor's security update for Paperclip.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | paperclip |
< 4.2.2 |
4.2.2 |
gem "paperclip", ">= 4.2.2" |
Per OSV / GitHub Advisories (GHSA-6jvm-3j5h-79f6). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| thoughtbot | paperclip | ≤ 4.2.1 |
Official sources
References
Links published by the sources. Open them with care.
- jvn.jp Vendor Advisory
- jvndb.jvn.jp Vendor Advisory
- openwall.com Vendor Advisory
- www.securityfocus.com
- github.com Exploit Vendor Advisory
- robots.thoughtbot.com Vendor Advisory