GLSA 202107-17: Mechanize: Command injection

Severity:high
Title:Mechanize: Command injection
Date:07/08/2021
Bugs: #768609
ID:202107-17

Synopsis

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

Background

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

Affected packages

Package Vulnerable Unaffected Architecture(s)
dev-ruby/mechanize < 2.7.7 >= 2.7.7 All supported architectures

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

Availability

This GLSA and any updates to it are available for viewing at the Gentoo Security Website: http://security.gentoo.org/glsa/glsa-202107-17.xml

Concerns?

Security is a primary focus of Gentoo Linux and ensuring the confidentiality and security of our users machines is of utmost importance to us. Any security concerns should be addressed to security@gentoo.org or alternatively, you may file a bug at https://bugs.gentoo.org.

License

Copyright 2010 Gentoo Foundation, Inc; referenced text belongs to its owner(s). The contents of this document are licensed under the Creative Commons - Attribution / Share Alike license.

Thank you!