{"id":"USN-9148-1","summary":"ruby-mechanize vulnerability","details":"It was discovered that Mechanize used Kernel#open to open local files in\nseveral methods. If an application passed untrusted input as a local file\nname to one of these methods, an attacker could possibly use this issue to\nexecute arbitrary commands.","modified":"2026-11-18T14:28:22.717039329Z","published":"2026-11-17T17:17:28Z","related":["UBUNTU-CVE-2021-21289"],"upstream":["CVE-2021-21289","UBUNTU-CVE-2021-21289"],"references":[{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-9148-1"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-21289"}],"affected":[{"package":{"name":"ruby-mechanize","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/ruby-mechanize?arch=source&distro=esm-apps-legacy%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.3-1ubuntu0.1~esm1"}]}],"versions":["2.7.3-1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro","binaries":[{"binary_name":"ruby-mechanize","binary_version":"2.7.3-1ubuntu0.1~esm1"}]},"database_specific":{"cves_map":{"ecosystem":"Ubuntu:Pro:16.04:LTS","cves":[{"id":"CVE-2021-21289","severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N","type":"CVSS_V3"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}]},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9148-1.json"}},{"package":{"name":"ruby-mechanize","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/ruby-mechanize?arch=source&distro=esm-apps%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.5-2ubuntu0.1~esm1"}]}],"versions":["2.7.5-1","2.7.5-2"],"ecosystem_specific":{"binaries":[{"binary_version":"2.7.5-2ubuntu0.1~esm1","binary_name":"ruby-mechanize"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9148-1.json","cves_map":{"cves":[{"id":"CVE-2021-21289","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}],"ecosystem":"Ubuntu:Pro:18.04:LTS"}}},{"package":{"name":"ruby-mechanize","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/ruby-mechanize?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.6-1ubuntu0.1~esm1"}]}],"versions":["2.7.6-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.7.6-1ubuntu0.1~esm1","binary_name":"ruby-mechanize"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"cves_map":{"cves":[{"id":"CVE-2021-21289","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N"},{"score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","type":"CVSS_V3"},{"type":"Ubuntu","score":"medium"}]}],"ecosystem":"Ubuntu:Pro:20.04:LTS"},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9148-1.json"}}],"schema_version":"1.9.2"}