# CVE-2013-0162: ruby_parser allows local users to overwrite arbitrary files via symlink attack on temporary file with predictable name

- Severity: Low 2.1 (CVSS:2.0, scored by NVD) `AV:L/AC:L/Au:N/C:N/I:P/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 33% of CVEs (2026-12-01)
- Published: 2013-03-01T02:00:00.000Z
- Modified: 2026-06-16T23:48:52.773Z
- Also known as: GHSA-8mvw-22r7-w6fq
- Weaknesses: CWE-264, CWE-377
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- ruby_parser (RubyGems): from 2.0.2 before 3.1.2
- ryan_davis ruby_parser: up to 3.1.1; 1.0.0; 2.0.0; 2.0.1; 2.0.2; 2.0.3; 2.0.4; 2.0.5; 2.0.6; 2.1.0; 2.2.0; 2.3.0; and 17 more

## Every score

- GitHub: rating Low
- NVD: CVSS:2.0 2.1 Low `AV:L/AC:L/Au:N/C:N/I:P/A:N`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=892806> (patch, web)
- <http://rhn.redhat.com/errata/RHSA-2013-0548.html> (vendor-advisory, web)
- <http://rhn.redhat.com/errata/RHSA-2013-0544.html> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2013-0162> (advisory)
- <https://github.com/seattlerb/ruby_parser/commit/506c7e13cff6f8715385fa8488b621028b4ad280> (web)
- <https://github.com/seattlerb/ruby_parser/commit/c35acd878d50a8e4ea35933e3fbdc493421d422c> (web)
- <https://access.redhat.com/errata/RHSA-2013:0544> (web)
- <https://access.redhat.com/errata/RHSA-2013:0582> (web)
- <https://access.redhat.com/security/cve/CVE-2013-0162> (web)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/ruby_parser/CVE-2013-0162.yml> (web)
- <https://github.com/seattlerb/ruby_parser> (package)

## Sources

- CVE List: [CVE-2013-0162](https://www.cve.org/CVERecord?id=CVE-2013-0162), CVE Terms of Use, modified 2024-08-06
- GitHub Advisory Database: [GHSA-8mvw-22r7-w6fq](https://github.com/advisories/GHSA-8mvw-22r7-w6fq), CC-BY-4.0, modified 2024-11-29
- NVD: [CVE-2013-0162](https://nvd.nist.gov/vuln/detail/CVE-2013-0162), Public domain, modified 2026-06-16

---

Page: https://cve.day/CVE-2013-0162 · Whole record: https://cve.day/CVE-2013-0162.json · Rebuilt by cve.day 2026-11-25T22:57:15.501Z
