Vulnerabilities in pkg:gem/ruby-jss

PACKAGE
Advisory Identifier: GHSA-vmfh-c547-v45h
Advisory Summary

CVE-2021-33575 is a CRITICAL (CVSS 9.8) remote code execution vulnerability (General Security Weakness) affecting Ruby jss libraries in the RubyGems ecosystem. The issue involves remote code execution in ruby-jss. Remediation is available by upgrading affected packages to version 1.6.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:gem/ruby-jss

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:gem/ruby-jss. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-vmfh-c547-v45h CVE-2021-33575 CRITICAL Remote code execution in ruby-jss

CVE-2021-33575 at a Glance

CVE Identifier CVE-2021-33575
GHSA Identifier GHSA-vmfh-c547-v45h
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification General Security Weakness
Affected Product Ruby jss
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2021-33575

To remediate this vulnerability, upgrade all affected Ruby jss dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

ruby-jss fixed: 1.6.0
Upgrade ruby-jss to 1.6.0
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 ruby-jss

How to Check if You Are Affected

To determine whether your application is affected by CVE-2021-33575, inspect your project dependencies for Ruby jss:

inspect dependencies for ruby-jss

Analyze the terminal output to locate any version of Ruby jss in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.6.0), 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 Ruby jss, 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

The Pixar ruby-jss gem before 1.6.0 allows remote attackers to execute arbitrary code because of the Plist gem's documented behavior of using Marshal.load during XML document processing.

CVE-2021-33575 Affected Ruby jss Versions

1 component(s)
Fixed Versions:
1.6.0
Product / Package Ecosystem Affected Versions Fixed Version
ruby-jss
RubyGems
< 1.6.0
1.6.0

References

Frequently Asked Questions

What is CVE-2021-33575?
CVE-2021-33575 is a security vulnerability in Ruby jss involving Remote code execution in ruby-jss under General Security Weakness.
Which Ruby jss versions are affected?
Affected versions include releases prior to 1.6.0 across affected packages: ruby-jss.
What version fixes CVE-2021-33575?
Upgrading to 1.6.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ruby-jss affected?
Yes, ruby-jss is affected in releases prior to 1.6.0. Upgrade your dependency to 1.6.0 or later.
What is the CVSS score of CVE-2021-33575?
CVE-2021-33575 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2021-33575?
CVE-2021-33575 is classified under General Security Weakness.
How can I check RubyGems dependencies for CVE-2021-33575?
Run the dependency tree command: 'inspect dependencies for ruby-jss'. 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-vmfh-c547-v45h",
  "modified" : "2021-10-06T13:46:32Z",
  "published" : "2021-10-06T17:48:27Z",
  "aliases" : [ "CVE-2021-33575" ],
  "summary" : "Remote code execution in ruby-jss",
  "details" : "The Pixar ruby-jss gem before 1.6.0 allows remote attackers to execute arbitrary code because of the Plist gem's documented behavior of using Marshal.load during XML document processing.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "ruby-jss"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.6.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-33575"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/PixarAnimationStudios/ruby-jss"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/PixarAnimationStudios/ruby-jss/blob/e6d48dd8c77f9275c76787d60d3472615fcd9b77/CHANGES.md#160---2021-05-24"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-vmfh-c547-v45h"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/patsplat/plist/tree/ce8f9ae42a114f603ea200c955e420782bffc4ad#label-Security+considerations"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/ruby-jss/CVE-2021-33575.yml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-10-06T13:46:32Z",
    "nvd_published_at" : "2021-05-25T23:15:00Z"
  }
}