KeygraphLabs · CVE MCP

CVE-2017-5946 · mitre

CVE-2017-5946

The Zip::File component in the rubyzip gem before 1.2.1 for Ruby has a directory traversal vulnerability. If a site allows uploading of .zip files, an attacker can upload a malicious file that uses "../" pathname substrings to write arbitrary files to the filesystem.

Published 2017-02-27, last changed 2026-06-17. Weakness: CWE-22.

CVSS
9.8
critical, from NVD
EPSS
3.40%
percentile 89.2%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

How to fix

Upgrade to a fixed version: rubyzip 1.2.1 (RubyGems). For the version that clears every advisory for your installed version, ask an agent for get_remediation.

Where the flaw is in the code

Fixed in rubyzip/rubyzip by ce4208fdec, 98f4f2ed9b. Functions changed by the fix: extract. Confidence: inferred (code changed near the fix, but no record names this exact commit as the fix).

Timeline

2017-02-27Published
2017-10-24Package advisory GHSA-gcqq-w6gr-h9j9
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 3.44%
2026-12-02Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-gcqq-w6gr-h9j9rubyzip (RubyGems)1.2.1

Also known as: GHSA-gcqq-w6gr-h9j9

Related

CVEPublishedCVSSSummary
CVE-2026-853962026-09-037.5rubyzip before 3.4.0 Path Traversal in Zip::Entry#extract via Sibling-Directory Prefix
CVE-2019-168922019-09-255.5same package: rubyzip (RubyGems)
CVE-2018-10005442018-06-269.8same package: rubyzip (RubyGems)
CVE-2026-1383402026-11-296.5same weakness (CWE-22) from the same CNA (mitre)
CVE-2026-1173732026-11-116.5same weakness (CWE-22) from the same CNA (mitre)
CVE-2026-386002026-11-039.8same weakness (CWE-22) from the same CNA (mitre)
CVE-2026-385952026-11-039.8same weakness (CWE-22) from the same CNA (mitre)
CVE-2026-1171272026-11-027.5same weakness (CWE-22) from the same CNA (mitre)

Add it to your agent

One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.

claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp

Then ask for triage_cve CVE-2017-5946, or call /api/v1/vulnerabilities/CVE-2017-5946. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.

NVD · CVE.org