Gentoo: GLSA-202107-17: Mechanize: Command injection
Summary
Mechanize does not neutralize filename input and could allow arbitrary code execution if an attacker can control filenames used by Mechanize.
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.
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
Impact
===== Please review the referenced CVE identifiers for details.
Workaround
There is no known workaround at this time.