Mechanize Vulnerability — Ubuntu Security Update (USN-9148-1)
USN-9148-1 fixes CVE-2021-21289 in Mechanize on Ubuntu 20.04 LTS, 18.04 LTS and 16.04 LTS: Mechanize could be made to run programs if it received specially crafted input. A standard system update installs the fix.
Что это значит по лицензии SharedLicense
If an application passed untrusted input as a local file name to one of these methods, an attacker could possibly use this issue to execute arbitrary commands.
-
USN-9148-1
Publication date
17 November 2026
Overview
Mechanize could be made to run programs if it received specially crafted
input.
Releases
Packages
- ruby-mechanize – library used for automating interaction with websites
Details
It was discovered that Mechanize used Kernel#open to open local files in
several methods. If an application passed untrusted input as a local file
name to one of these methods, an attacker could possibly use this issue to
execute arbitrary commands.
It was discovered that Mechanize used Kernel#open to open local files in
several methods. If an application passed untrusted input as a local file
name to one of these methods, an attacker could possibly use this issue to
execute arbitrary commands.
Update instructions
In general, a standard system update will make all the necessary changes.
Learn more about how to get the fixes.
The problem can be corrected by updating your system to the following package versions:
| Ubuntu Release | Package Version | ||
|---|---|---|---|
| 20.04 LTS focal | ruby-mechanize – 2.7.6-1ubuntu0.1~esm1 Ubuntu Pro Fix available with Ubuntu Pro via ESM Apps. A community fix might become publicly available in the future. | ||
| 18.04 LTS bionic | ruby-mechanize – 2.7.5-2ubuntu0.1~esm1 Ubuntu Pro Fix available with Ubuntu Pro via ESM Apps. A community fix might become publicly available in the future. | ||
| 16.04 LTS xenial | ruby-mechanize – 2.7.3-1ubuntu0.1~esm1 | ||
References
Часто задаваемые вопросы
What does USN-9148-1 fix?
Which Ubuntu releases are affected?
How do I apply USN-9148-1?
Which packages are updated?
Проверьте систему на уязвимости
Выберите продукт и операционную систему, чтобы увидеть точные команды исправления.
Проверьте свою систему