GHSA-8474-rc7c-wrhp: Safemode High Severity Vulnerability That Affects Vulnerability

HIGH
Published
Advisory Summary

GHSA-8474-rc7c-wrhp is a HIGH high severity vulnerability that affects vulnerability (General Security Weakness) affecting Safemode libraries in the RubyGems ecosystem. The issue involves high severity vulnerability that affects safemode. Remediation is available by upgrading affected packages to version 1.3.3.

GHSA-8474-rc7c-wrhp at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-8474-rc7c-wrhp
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Safemode
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix GHSA-8474-rc7c-wrhp

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

safemode fixed: 1.3.3
Upgrade safemode to 1.3.3
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 safemode

How to Check if You Are Affected

To determine whether your application is affected by GHSA-8474-rc7c-wrhp, inspect your project dependencies for Safemode:

inspect dependencies for safemode

Analyze the terminal output to locate any version of Safemode in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.3), 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 Safemode, 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 safemode rubygem, as used in Foreman, versions 1.3.2 and earlier are vulnerable to bypassing safe mode limitations via special Ruby syntax. This can lead to deletion of objects for which the user does not have delete permissions or possibly to privilege escalation.

GHSA-8474-rc7c-wrhp Affected Safemode Versions

1 component(s)
Fixed Versions:
1.3.3
Product / Package Ecosystem Affected Versions Fixed Version
safemode
RubyGems
< 1.3.3
1.3.3

References

Frequently Asked Questions

What is GHSA-8474-rc7c-wrhp?
GHSA-8474-rc7c-wrhp is a security vulnerability in Safemode involving High severity vulnerability that affects safemode under General Security Weakness.
Which Safemode versions are affected?
Affected versions include releases prior to 1.3.3 across affected packages: safemode.
What version fixes GHSA-8474-rc7c-wrhp?
Upgrading to 1.3.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is safemode affected?
Yes, safemode is affected in releases prior to 1.3.3. Upgrade your dependency to 1.3.3 or later.
What CWE is associated with GHSA-8474-rc7c-wrhp?
GHSA-8474-rc7c-wrhp is classified under General Security Weakness.
How can I check RubyGems dependencies for GHSA-8474-rc7c-wrhp?
Run the dependency tree command: 'inspect dependencies for safemode'. 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-8474-rc7c-wrhp",
  "modified" : "2020-06-17T15:14:40Z",
  "published" : "2018-08-08T22:29:10Z",
  "withdrawn" : "2020-06-17T15:14:40Z",
  "aliases" : [ ],
  "summary" : "High severity vulnerability that affects safemode",
  "details" : "Withdrawn, accidental duplicate publish.\n\nThe safemode rubygem, as used in Foreman, versions 1.3.2 and earlier are vulnerable to bypassing safe mode limitations via special Ruby syntax. This can lead to deletion of objects for which the user does not have delete permissions or possibly to privilege escalation.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "safemode"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.3.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-7540"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-8474-rc7c-wrhp"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-17T15:14:40Z",
    "nvd_published_at" : null
  }
}