Home / mailingsPDF  

[USN-9148-1] Mechanize vulnerability

Posted on 18 November 2026
Ubuntu Security

==========================================================================Ubuntu Security Notice USN-9148-1
November 17, 2026

ruby-mechanize vulnerability
==========================================================================
A security issue affects these releases of Ubuntu and its derivatives:

- Ubuntu 20.04 LTS
- Ubuntu 18.04 LTS
- Ubuntu 16.04 LTS

Summary:

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

Software Description:
- 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.

Update instructions:

The problem can be corrected by updating your system to the following
package versions:

Ubuntu 20.04 LTS
ruby-mechanize 2.7.6-1ubuntu0.1~esm1
Available with Ubuntu Pro

Ubuntu 18.04 LTS
ruby-mechanize 2.7.5-2ubuntu0.1~esm1
Available with Ubuntu Pro

Ubuntu 16.04 LTS
ruby-mechanize 2.7.3-1ubuntu0.1~esm1
Available with Ubuntu Pro

In general, a standard system update will make all the necessary changes.

References:
https://ubuntu.com/security/notices/USN-9148-1
CVE-2021-21289

--===============7331993712232959764==Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature

 

TOP