Güvenlik Danışarlıklarına Dön

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.

High 7.4 CVSS
Ubuntu 20.04 Ubuntu 22.04

SharedLicense lisansı altında bunun anlamı

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.

  1. Ubuntu Security Notices

  2. USN-9148-1


Publication date

17 November 2026

Overview

Mechanize could be made to run programs if it received specially crafted
input.

Releases


20.04 LTS


18.04 LTS


16.04 LTS


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

Sıkça Sorulan Sorular

What does USN-9148-1 fix?
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.
Which Ubuntu releases are affected?
The notice lists Ubuntu 20.04 LTS, Ubuntu 18.04 LTS, Ubuntu 16.04 LTS.
How do I apply USN-9148-1?
In general, a standard system update will make all the necessary changes. In practice: run sudo apt update && sudo apt upgrade on the server.
Which packages are updated?
The update ships new builds of ruby-mechanize - library used for automating interaction with websites.

Sisteminizi güvenlik açıkları açısından kontrol edin

Size uygun tam düzeltme komutlarını görmek için ürününüzü ve işletim sisteminizi seçin.

Sisteminizi Kontrol Edin