GHSA-phmw-pv3f-vvx7: Paperclip Moderate Severity Vulnerability That Affects Vulnerability

MODERATE
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-phmw-pv3f-vvx7
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Paperclip
Package Ecosystem RubyGems
Published Date
Last Updated

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.

paperclip fixed: 4.2.2
Upgrade paperclip to 4.2.2
Verify Direct and Transitive Dependencies

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

Withdrawn, accidental duplicate publish. 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.

GHSA-phmw-pv3f-vvx7 Affected Paperclip Versions

1 component(s)
Fixed Versions:
4.2.2
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?
GHSA-phmw-pv3f-vvx7 is a security vulnerability in Paperclip involving Moderate severity vulnerability that affects paperclip under General Security Weakness.
Which Paperclip versions are affected?
Affected versions include releases prior to 4.2.2 across affected packages: paperclip.
What version fixes GHSA-phmw-pv3f-vvx7?
Upgrading to 4.2.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is paperclip affected?
Yes, paperclip is affected in releases prior to 4.2.2. Upgrade your dependency to 4.2.2 or later.
What CWE is associated with GHSA-phmw-pv3f-vvx7?
GHSA-phmw-pv3f-vvx7 is classified under General Security Weakness.
How can I check RubyGems dependencies for GHSA-phmw-pv3f-vvx7?
Run the dependency tree command: 'inspect dependencies for paperclip'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}