Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 611384 (CVE-2017-5946) - <dev-ruby/rubyzip-1.2.1: Directory traversal in the Zip::File component
Summary: <dev-ruby/rubyzip-1.2.1: Directory traversal in the Zip::File component
Status: RESOLVED FIXED
Alias: CVE-2017-5946
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Security
URL: https://bugzilla.redhat.com/show_bug....
Whiteboard: B3 [noglsa cve]
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-02 08:59 UTC by Agostino Sarubbo
Modified: 2017-07-09 23:47 UTC (History)
2 users (show)

See Also:
Package list:
dev-ruby/rubyzip-1.2.1
Runtime testing required: ---
stable-bot: sanity-check+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2017-03-02 08:59:12 UTC
From ${URL} :

The Zip::File component in the rubyzip gem 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.

Upstream bug:

https://github.com/rubyzip/rubyzip/issues/315

Upstream patch:

https://github.com/rubyzip/rubyzip/commit/ce4208fdecc2ad079b05d3c49d70fe6ed1d07016


@maintainer(s): since the fixed package is already in the tree, please let us know if it is ready for the stabilization or not.
Comment 1 Hans de Graaff gentoo-dev Security 2017-03-05 08:55:28 UTC
dev-ruby/rubyzip-0.9.9-r2 is also vulnerable.

In any case we need dev-ruby/rubyzip-1.2.1 stable first.
Comment 2 Tobias Klausmann (RETIRED) gentoo-dev 2017-03-06 15:51:49 UTC
Stable on alpha.
Comment 3 Michael Weber (RETIRED) gentoo-dev 2017-03-07 10:05:23 UTC
arm ppc ppc64 stable.
Comment 4 Agostino Sarubbo gentoo-dev 2017-03-10 09:10:40 UTC
amd64 stable
Comment 5 Agostino Sarubbo gentoo-dev 2017-03-10 11:01:04 UTC
x86 stable
Comment 6 Agostino Sarubbo gentoo-dev 2017-03-10 12:53:57 UTC
sparc stable
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2017-03-11 08:31:24 UTC
Stable for HPPA.
Comment 8 Agostino Sarubbo gentoo-dev 2017-03-11 18:53:57 UTC
Ia64 won't stabilize the package.
Comment 9 Yury German Gentoo Infrastructure gentoo-dev 2017-03-24 05:17:20 UTC
With 1.2.1 stabilized 
What do we do with slot 0 - 0.9.9-r2??
Comment 10 Hans de Graaff gentoo-dev Security 2017-04-02 05:48:16 UTC
(In reply to Yury German from comment #9)
> With 1.2.1 stabilized 
> What do we do with slot 0 - 0.9.9-r2??

rubyzip:0 is only used by dev-util/cucumber. We can either stable a new major verions (but many arches have not even keyworded this) or see whether cucumber will also work with rubyzip:1.
Comment 11 Hans de Graaff gentoo-dev Security 2017-04-02 06:24:10 UTC
It turns out that, as far as I can tell, cucumber no longer needs rubyzip;0 for tests. I have removed the test dependency accordingly.

rubyzip:0 has now been masked for removal.
rubyzip:1 vulnerable versions have been removed.
Comment 12 Yury German Gentoo Infrastructure gentoo-dev 2017-04-11 03:08:46 UTC
Maintainer(s), Thank you for your work.
GLSA Vote: No
Comment 13 Aaron Bauman (RETIRED) gentoo-dev 2017-07-09 23:47:38 UTC
Tree is clean.