GHSA-47m2-wp7j-p9vc

    Dashboard / Vulnerabilities / GHSA-47m2-wp7j-p9vc

    GHSA-47m2-wp7j-p9vc

    Published: 3 Sept 2026Last Modified: 25 Sept 2026

    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.

    Affected packages

    Package

    Name: rubyzip

    Purl: pkg:gem/rubyzip

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -3.4.0

    Affected versions

    0.5.11
    0.5.12
    0.5.7
    0.5.8
    0.5.9

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-47m2-wp7j-p9vc | CVE-DB