p PatchFirst

CVE-2017-5946

CVE-2017-5946

CVSS 9.8 · Critical · EPSS 3.4% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="ruby-zip"'
gem list --exact rubyzip

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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
Updated

Fixes in distributions

Stack: system · ruby

Affected products and versions

  • n/a

    Versions
    • n/a: Affected

    No fix published

  • ruby-zip Debian 12

    Affected ranges
    • ECOSYSTEM: < 1.2.0-1.1

    Update to 1.2.0-1.1

  • ruby-zip Debian 13

    Affected ranges
    • ECOSYSTEM: < 1.2.0-1.1

    Update to 1.2.0-1.1

  • ruby-zip Debian 14

    Affected ranges
    • ECOSYSTEM: < 1.2.0-1.1

    Update to 1.2.0-1.1

  • rubyzip RubyGems

    Versions
    • 0.5.11
    • 0.5.12
    • 0.5.7
    • 0.5.8
    • 0.5.9
    • 0.9.1
    All versions (23)
    • 0.9.4
    • 0.9.5
    • 0.9.6.1
    • 0.9.7
    • 0.9.8
    • 0.9.9
    • 1.0.0
    • 1.0.0.beta1
    • 1.1.0
    • 1.1.1
    • 1.1.2
    • 1.1.3
    • 1.1.4
    • 1.1.5
    • 1.1.6
    • 1.1.7
    • 1.2.0
    Affected ranges
    • ECOSYSTEM: < 1.2.1

    Update to 1.2.1

  • ruby-zip Ubuntu 16.04 LTS

    Versions
    • 1.1.7-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →