CVE-2007-0469: Rubygems update RubyGems File Overwrite Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-95vx-q4c2-64gr
Published
Advisory Summary

CVE-2007-0469 is a MODERATE rubygems file overwrite vulnerability vulnerability (General Security Weakness) affecting Rubygems update libraries in the RubyGems ecosystem. The issue involves rubygems file overwrite vulnerability. Remediation is available by upgrading affected packages to version 0.9.1.

CVE-2007-0469 at a Glance

CVE Identifier CVE-2007-0469
GHSA Identifier GHSA-95vx-q4c2-64gr
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Rubygems update
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix CVE-2007-0469

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

rubygems-update fixed: 0.9.1
Upgrade rubygems-update to 0.9.1
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 rubygems-update

How to Check if You Are Affected

To determine whether your application is affected by CVE-2007-0469, inspect your project dependencies for Rubygems update:

inspect dependencies for rubygems-update

Analyze the terminal output to locate any version of Rubygems update in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.9.1), 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 Rubygems update, 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 `extract_files` function in `installer.rb` in RubyGems before 0.9.1 does not check whether files exist before overwriting them, which allows user-assisted remote attackers to overwrite arbitrary files, cause a denial of service, or execute arbitrary code via crafted GEM packages.

CVE-2007-0469 Affected Rubygems update Versions

1 component(s)
Fixed Versions:
0.9.1
Product / Package Ecosystem Affected Versions Fixed Version
rubygems-update
RubyGems
< 0.9.1
0.9.1

References

Frequently Asked Questions

What is CVE-2007-0469?
CVE-2007-0469 is a security vulnerability in Rubygems update involving RubyGems file overwrite vulnerability under General Security Weakness.
Which Rubygems update versions are affected?
Affected versions include releases prior to 0.9.1 across affected packages: rubygems-update.
What version fixes CVE-2007-0469?
Upgrading to 0.9.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is rubygems-update affected?
Yes, rubygems-update is affected in releases prior to 0.9.1. Upgrade your dependency to 0.9.1 or later.
What CWE is associated with CVE-2007-0469?
CVE-2007-0469 is classified under General Security Weakness.
How can I check RubyGems dependencies for CVE-2007-0469?
Run the dependency tree command: 'inspect dependencies for rubygems-update'. 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-95vx-q4c2-64gr",
  "modified" : "2025-04-09T14:35:20Z",
  "published" : "2022-05-01T17:44:34Z",
  "aliases" : [ "CVE-2007-0469" ],
  "summary" : "RubyGems file overwrite vulnerability",
  "details" : "The `extract_files` function in `installer.rb` in RubyGems before 0.9.1 does not check whether files exist before overwriting them, which allows user-assisted remote attackers to overwrite arbitrary files, cause a denial of service, or execute arbitrary code via crafted GEM packages.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "rubygems-update"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.9.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2007-0469"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/31688"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/rubygems/rubygems"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20070210090150/http://rubyforge.org/frs/shownotes.php?group_id=126&release_id=9074"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20201207172116/http://www.securityfocus.com/archive/1/458128/100/0/threaded"
  }, {
    "type" : "WEB",
    "url" : "http://marc.info/?l=full-disclosure&m=116939816621060&w=2"
  }, {
    "type" : "WEB",
    "url" : "http://www.novell.com/linux/security/advisories/2007_4_sr.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-03-08T20:03:32Z",
    "nvd_published_at" : "2007-01-24T01:28:00Z"
  }
}