Advisory

USN-5020-1

Also known as: CVE-2021-31799, CVE-2021-31810, CVE-2021-32066

Summary

ruby2.3, ruby2.5, ruby2.7 vulnerabilities

Details

It was discovered that Ruby incorrectly handled certain inputs.
An attacker could possibly use this issue to execute arbitrary code.
(CVE-2021-31799)

It was discovered that Ruby incorrectly handled certain inputs.
An attacker could possibly use this issue to conduct
port scans and service banner extractions. This issue only affected
Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, Ubuntu 20.10, and Ubuntu 21.04. (CVE-2021-31810)

It was discovered that Ruby incorrectly handled certain inputs.
An attacker could possibly use this issue to perform
machine-in-the-middle attackers to bypass the TLS protection.
(CVE-2021-32066)

Severity

Not rated by the source.

Dates

Published
2021-07-21 14:20 UTC
Modified
2026-06-25 13:30 UTC

Affected packages and fixes

ruby2.5

Debian packages (deb) · Ubuntu 18.04

Affected

  • introduced 0, fixed 2.5.1-1ubuntu1.10 (ecosystem)

Fixed versions

2.5.1-1ubuntu1.10

Fix

  • Fixed version 2.5.1-1ubuntu1.10
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

ruby2.7

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 2.7.0-5ubuntu1.5 (ecosystem)

Fixed versions

2.7.0-5ubuntu1.5

Fix

  • Fixed version 2.7.0-5ubuntu1.5
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences