CVE-2014-5003: Ciborg Ciborg Gem For Ruby Allows Vulnerability

MODERATE
Advisory Identifier: GHSA-g982-9r8g-6qxw
CVSS 5.5
CWE-20
Published
Advisory Summary

CVE-2014-5003 is a MODERATE (CVSS 5.5) ciborg gem for ruby allows vulnerability (CWE-20: Improper Input Validation) affecting Ciborg libraries in the RubyGems ecosystem. The issue involves ciborg gem for ruby allows local users to write files and gain privileges via symlink. Remediation is available in the latest vendor maintenance releases.

CVE-2014-5003 at a Glance

CVE Identifier CVE-2014-5003
GHSA Identifier GHSA-g982-9r8g-6qxw
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-20: Improper Input Validation
Affected Product Ciborg
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 5.5

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

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

How to Fix CVE-2014-5003

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

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

How to Check if You Are Affected

To determine whether your application is affected by CVE-2014-5003, inspect your project dependencies for Ciborg:

inspect dependencies for ciborg

Analyze the terminal output to locate any version of Ciborg 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-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 Ciborg, 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

There is a /tmp file race condition in `chef/travis-cookbooks/ci_environment/perlbrew/recipes/default.rb` in the ciborg gem 3.0.0 when creating `/tmp/perlbrew-installer`. If a malicious local user creates the file first they can overwrite the contents with their own code executing it as the ciborg process owner.

CVE-2014-5003 Affected Ciborg Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
ciborg
RubyGems
3.0.0
All 1 versions
3.0.0
None specified

References

Frequently Asked Questions

What is CVE-2014-5003?
CVE-2014-5003 is a security vulnerability in Ciborg involving Ciborg gem for Ruby allows local users to write files and gain privileges via Symlink under CWE-20: Improper Input Validation.
Which Ciborg versions are affected?
Affected versions include releases prior to current release patches across affected packages: ciborg.
What version fixes CVE-2014-5003?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is ciborg affected?
Yes, ciborg 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-2014-5003?
CVE-2014-5003 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2014-5003?
CVE-2014-5003 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-2014-5003?
Run the dependency tree command: 'inspect dependencies for ciborg'. 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-g982-9r8g-6qxw",
  "modified" : "2023-07-05T17:57:47Z",
  "published" : "2018-07-23T19:50:15Z",
  "aliases" : [ "CVE-2014-5003" ],
  "summary" : "Ciborg gem for Ruby allows local users to write files and gain privileges via Symlink",
  "details" : "There is a /tmp file race condition in `chef/travis-cookbooks/ci_environment/perlbrew/recipes/default.rb` in the ciborg gem 3.0.0 when creating `/tmp/perlbrew-installer`. If a malicious local user creates the file first they can overwrite the contents with their own code executing it as the ciborg process owner.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "ciborg"
    },
    "versions" : [ "3.0.0" ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-5003"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-g982-9r8g-6qxw"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/ciborg/CVE-2014-5003.yml"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2014/07/07/24"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2014/07/17/5"
  }, {
    "type" : "WEB",
    "url" : "http://www.vapid.dhs.org/advisories/ciborg-3.0.0.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:36:44Z",
    "nvd_published_at" : "2018-01-10T18:29:00Z"
  }
}