Skip to content
Heist/ feed
Back to feed
MediumFix available

jruby — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2021-31810

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).

Products
jruby
Affected versions
Not specified
Fixed versions
9.3.9.0+ds-1
CVEs
CVE-2021-31810
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 00:34 UTC · Revision 1

Source evidence

DEBIAN-CVE-2021-31810

core-osv · Original source

Published 13 Jul 2021, 13:15 UTC

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).

osv:DEBIAN-CVE-2021-31810

jruby

Fixed versions: 9.3.9.0+ds-1

jruby

Fixed versions: 9.3.9.0+ds-1

jruby

Fixed versions: 9.3.9.0+ds-1

Complete source record
{
  "id": "f14a22089ca5d64c36e7cd17fa27fbec8ddacef481243d04fef01c3e853e07f0",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-31810",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2021-31810",
    "summary": "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).",
    "evidence": "osv:DEBIAN-CVE-2021-31810",
    "products": [
      {
        "name": {
          "value": "jruby",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "9.3.9.0+ds-1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "jruby",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "9.3.9.0+ds-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "jruby",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "9.3.9.0+ds-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2021-31810",
      "aliases": [
        "DEBIAN-CVE-2021-31810"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "9.3.9.0+ds-1"
                }
              ]
            }
          ],
          "package": {
            "name": "jruby",
            "purl": "pkg:deb/debian/jruby?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-31810.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "9.3.9.0+ds-1"
                }
              ]
            }
          ],
          "package": {
            "name": "jruby",
            "purl": "pkg:deb/debian/jruby?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-31810.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "9.3.9.0+ds-1"
                }
              ]
            }
          ],
          "package": {
            "name": "jruby",
            "purl": "pkg:deb/debian/jruby?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-31810.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-23T18:03:26.424805476Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-31810"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2021-31810"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-31810",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 421515,
  "published_at": "2021-07-13T13:15:09.243+00:00"
}