Advisory

UBUNTU-CVE-2021-31810

Also known as: CVE-2021-31810

Summary

The record has no summary.

Details

An issue was discovered in Ruby through 2.6.7, 2.7.x through 2.7.3, and 3.x through 3.0.1. A malicious FTP server can use the PASV response to trick Net::FTP into connecting back to a given IP address and port. This potentially makes curl extract information about services that are otherwise private and not disclosed (e.g., the attacker can conduct port scans and service banner extractions).

Severity

Medium Basis: CVSS v3 score 5.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N

Dates

Published
2021-07-13 13:15 UTC
Modified
2026-04-22 12:52 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