~ / search / GHSA-47m2-wp7j-p9vc

GHSA-47m2-wp7j-p9vc

rubyzip path traversal vulnerability

Source: GitHub Advisory Database (reviewed) High CVE-2026-85396

Packages

EcosystemPackageAffectedFixed in
RubyGems rubyzip < 3.4.0 3.4.0

Details

As written in the advisory (Markdown source, shown as plain text).

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.

References

External links from the advisory. They lead to third-party sites.