Advisory

GHSA-47m2-wp7j-p9vc

Also known as: CVE-2026-85396

Summary

rubyzip path traversal vulnerability

Details

rubyzip versions before 3.4.0 contain a path traversal vulnerability in Zip::Entry#extract that fails to properly validate extraction paths using prefix comparison without trailing separators. Attackers can craft archive entries with names like ../upload_backup/owned.sh to write files outside the intended extraction directory into sibling paths sharing the destination prefix.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-09-03 21:31 UTC
Modified
2026-09-25 19:45 UTC

Affected packages and fixes

rubyzip

RubyGems · All systems

Affected

  • introduced 0, fixed 3.4.0 (ecosystem)

Fixed versions

3.4.0

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences