Mechanize: Command injection — GLSA 202107-17

A file named by an attacker being utilized by Mechanize could result in arbitrary code execution.

Affected packages

dev-ruby/mechanize on all architectures
Affected versions < 2.7.7
Unaffected versions >= 2.7.7

Background

Mechanize is a Ruby library used for automating interaction with websites.

Description

Mechanize does not neutralize filename input and could allow arbitrary code execution if an attacker can control filenames used by Mechanize.

Impact

Please review the referenced CVE identifiers for details.

Workaround

There is no known workaround at this time.

Resolution

All Mechanize users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=dev-ruby/mechanize-2.7.7"
 

References

Release date
July 08, 2021

Latest revision
July 08, 2021: 1

Severity
high

Exploitable
local, remote

Bugzilla entries