GHSA-phmw-pv3f-vvx7: Paperclip Moderate Severity Vulnerability That Affects Vulnerability
MODERATEGHSA-phmw-pv3f-vvx7 is a MODERATE moderate severity vulnerability that affects vulnerability (General Security Weakness) affecting Paperclip libraries in the RubyGems ecosystem. The issue involves moderate severity vulnerability that affects paperclip. Remediation is available by upgrading affected packages to version 4.2.2.
GHSA-phmw-pv3f-vvx7 at a Glance
How to Fix GHSA-phmw-pv3f-vvx7
To remediate this vulnerability, upgrade all affected Paperclip dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade paperclip to 4.2.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for paperclip
How to Check if You Are Affected
To determine whether your application is affected by GHSA-phmw-pv3f-vvx7, inspect your project dependencies for Paperclip:
inspect dependencies for paperclip
Analyze the terminal output to locate any version of Paperclip in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.2.2), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In Paperclip, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-phmw-pv3f-vvx7 Affected Paperclip Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
paperclip
|
RubyGems |
< 4.2.2
|
4.2.2
|
References
Frequently Asked Questions
What is GHSA-phmw-pv3f-vvx7?
Which Paperclip versions are affected?
What version fixes GHSA-phmw-pv3f-vvx7?
Is paperclip affected?
What CWE is associated with GHSA-phmw-pv3f-vvx7?
How can I check RubyGems dependencies for GHSA-phmw-pv3f-vvx7?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-phmw-pv3f-vvx7",
"modified" : "2021-12-02T23:09:12Z",
"published" : "2018-08-13T20:47:44Z",
"withdrawn" : "2020-06-17T15:14:58Z",
"aliases" : [ ],
"summary" : "Moderate severity vulnerability that affects paperclip",
"details" : "Withdrawn, accidental duplicate publish.\n\nThe 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.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "paperclip"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.2.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-2963"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-phmw-pv3f-vvx7"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/thoughtbot/paperclip"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-17T15:14:58Z",
"nvd_published_at" : null
}
}