CVE-2013-4318: Features Features File Injection Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-42gq-h7xj-33r4
CVSS 5.4
CWE-74
Published
Advisory Summary

CVE-2013-4318 is a MODERATE (CVSS 5.4) features file injection vulnerability vulnerability (CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')) affecting Features libraries in the RubyGems ecosystem. The issue involves features file injection vulnerability. Remediation is available in the latest vendor maintenance releases.

CVE-2013-4318 at a Glance

CVE Identifier CVE-2013-4318
GHSA Identifier GHSA-42gq-h7xj-33r4
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Affected Product Features
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 5.4

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

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

How to Fix CVE-2013-4318

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

features fixed: Latest secure release
Upgrade features to Latest secure release
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 features

How to Check if You Are Affected

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

inspect dependencies for features

Analyze the terminal output to locate any version of Features in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'), where the product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component. In Features, 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

File injection vulnerability in Ruby gem Features 0.3.0 allows remote attackers to inject malicious html in the `/tmp` directory.

CVE-2013-4318 Affected Features Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
features
RubyGems
≤ 0.3.0

References

Frequently Asked Questions

What is CVE-2013-4318?
CVE-2013-4318 is a security vulnerability in Features involving Features file injection vulnerability under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection').
Which Features versions are affected?
Affected versions include releases prior to current release patches across affected packages: features.
What version fixes CVE-2013-4318?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is features affected?
Yes, features is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2013-4318?
CVE-2013-4318 has a CVSS v3.1 base score of 5.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2013-4318?
CVE-2013-4318 is classified under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.).
How can I check RubyGems dependencies for CVE-2013-4318?
Run the dependency tree command: 'inspect dependencies for features'. 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-42gq-h7xj-33r4",
  "modified" : "2023-04-03T22:30:48Z",
  "published" : "2022-05-05T00:29:11Z",
  "aliases" : [ "CVE-2013-4318" ],
  "summary" : "Features file injection vulnerability",
  "details" : "File injection vulnerability in Ruby gem Features 0.3.0 allows remote attackers to inject malicious html in the `/tmp` directory.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "features"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.3.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-4318"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mhennemeyer/features"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/features/CVE-2013-4318.yml"
  }, {
    "type" : "WEB",
    "url" : "https://security-tracker.debian.org/tracker/CVE-2013-4318"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2013/09/09/10"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-74" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-01-27T00:23:53Z",
    "nvd_published_at" : "2019-12-26T21:15:00Z"
  }
}