Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. features
  4. ›
  5. CVE-2013-4318

CVE-2013-4318: /tmp file injection vulnerability

September 9, 2013

A malicious user creating /tmp/out.html first and repeatedly writing to it can inject malicious html into the file right before it is opened. PoC: nobody () sp0rk:/$ while (true); do echo “ alert(‘Hello’); ” » /tmp/out.html; done Will pop up a javascript alert in other gem users browser.

References

  • seclists.org/oss-sec/2013/q3/571

Code Behaviors & Features

Detect and mitigate CVE-2013-4318 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 0.3.0

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Source file

gem/features/CVE-2013-4318.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:59 +0000.