Vulnerabilities in pkg:gem/nori

PACKAGE
Advisory Identifier: GHSA-4936-rj25-6wm6
Advisory Summary

CVE-2013-0285 is a HIGH nori contains improper input validation vulnerability (CWE-20: Improper Input Validation) affecting Nori libraries in the RubyGems ecosystem. The issue involves nori contains improper input validation. Remediation is available by upgrading affected packages to version 2.0.2, 1.1.4, 1.0.3.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:gem/nori

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-4936-rj25-6wm6 CVE-2013-0285 HIGH nori contains Improper Input Validation

CVE-2013-0285 at a Glance

CVE Identifier CVE-2013-0285
GHSA Identifier GHSA-4936-rj25-6wm6
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-20: Improper Input Validation
Affected Product Nori
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix CVE-2013-0285

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

nori fixed: 2.0.2
Upgrade nori to 2.0.2
nori fixed: 1.1.4
Upgrade nori to 1.1.4
nori fixed: 1.0.3
Upgrade nori to 1.0.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 nori

How to Check if You Are Affected

To determine whether your application is affected by CVE-2013-0285, inspect your project dependencies for Nori:

inspect dependencies for nori

Analyze the terminal output to locate any version of Nori in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.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 CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Nori, 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 nori gem 2.0.x before 2.0.2, 1.1.x before 1.1.4, and 1.0.x before 1.0.3 for Ruby does not properly restrict casts of string values, which allows remote attackers to conduct object-injection attacks and execute arbitrary code, or cause a denial of service (memory and CPU consumption) involving nested XML entity references, by leveraging Action Pack support for (1) YAML type conversion or (2) Symbol type conversion, a similar vulnerability to CVE-2013-0156.

CVE-2013-0285 Affected Nori Versions

3 component(s)
Fixed Versions:
2.0.21.1.41.0.3
Product / Package Ecosystem Affected Versions Fixed Version
nori
RubyGems
≥ 2.0.0
< 2.0.2
2.0.2
nori
RubyGems
≥ 1.1.0
< 1.1.4
1.1.4
nori
RubyGems
≥ 1.0.0
< 1.0.3
1.0.3

References

Frequently Asked Questions

What is CVE-2013-0285?
CVE-2013-0285 is a security vulnerability in Nori involving nori contains Improper Input Validation under CWE-20: Improper Input Validation.
Which Nori versions are affected?
Affected versions include releases prior to 2.0.2, 1.1.4, 1.0.3 across affected packages: nori.
What version fixes CVE-2013-0285?
Upgrading to 2.0.2, 1.1.4, 1.0.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is nori affected?
Yes, nori is affected in releases prior to 2.0.2, 1.1.4, 1.0.3. Upgrade your dependency to 2.0.2, 1.1.4, 1.0.3 or later.
What CWE is associated with CVE-2013-0285?
CVE-2013-0285 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check RubyGems dependencies for CVE-2013-0285?
Run the dependency tree command: 'inspect dependencies for nori'. 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-4936-rj25-6wm6",
  "modified" : "2023-01-20T22:08:42Z",
  "published" : "2017-10-24T18:33:37Z",
  "aliases" : [ "CVE-2013-0285" ],
  "summary" : "nori contains Improper Input Validation",
  "details" : "The nori gem 2.0.x before 2.0.2, 1.1.x before 1.1.4, and 1.0.x before 1.0.3 for Ruby does not properly restrict casts of string values, which allows remote attackers to conduct object-injection attacks and execute arbitrary code, or cause a denial of service (memory and CPU consumption) involving nested XML entity references, by leveraging Action Pack support for (1) YAML type conversion or (2) Symbol type conversion, a similar vulnerability to CVE-2013-0156.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "nori"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.0.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "nori"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.1.0"
      }, {
        "fixed" : "1.1.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "nori"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "1.0.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-0285"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/savonrb/nori/commit/2ca6f8603e406f884a8fcea6bc26f8f6bf168f40"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/savonrb/nori/commit/4bcf59abdcec6bcd1153241b122eda61a494e4fb"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/savonrb/nori/commit/818f5263b1d597b603d46cbe1702cd2717259e32"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/savonrb/nori/commit/c3fdce7a2d2670b44f1cda35da0ae73cc1372084"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/savonrb/nori/commit/c5e07f5c32e615f0a4a7ee2782d37f7a33261be4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/savonrb/nori/commit/d9b68667249b98776fb23ba9e9c548dc4b524709"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-4936-rj25-6wm6"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/nori/CVE-2013-0285.yml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/savonrb/nori"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20130203232028/https://support.cloud.engineyard.com/entries/22915701-january-14-2013-security-vulnerabilities-httparty-extlib-crack-nori-update-these-gems-immediately"
  }, {
    "type" : "WEB",
    "url" : "http://seclists.org/oss-sec/2013/q1/304"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T20:57:55Z",
    "nvd_published_at" : null
  }
}