Gentoo 2509 Published by

A Mechanize security update has been released for Gentoo Linux.



GLSA 202107-17 : Mechanize: Command injection


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory GLSA 202107-17
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  https://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Severity: High
Title: Mechanize: Command injection
Date: July 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
-------------------------------------------------------------------
1 dev-ruby/mechanize < 2.7.7 >= 2.7.7

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
==========

[ 1 ] CVE-2021-21289
  https://nvd.nist.gov/vuln/detail/CVE-2021-21289

Availability
============

This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:

  https://security.gentoo.org/glsa/202107-17

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 2021 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.

  https://creativecommons.org/licenses/by-sa/2.5