Skip to content
Heist/ feed
Back to feed
Critical

ruby-jwt — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2025-45765

ruby-jwt v3.0.0.beta1 was discovered to contain weak encryption. NOTE: the Supplier's perspective is "keysize is not something that is enforced by this library. Currently more recent versions of OpenSSL are enforcing some key sizes and those restrictions apply to the users of this gem also."

Products
ruby-jwt
Affected versions
1.0.0-3, 1.5.6-1, 2.1.0-2, 2.2.2-1, 2.7.0-2, 2.7.1-1, 3.2.0-1
Fixed versions
Not specified
CVEs
CVE-2025-45765
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:28 UTC · Revision 1

Source evidence

UBUNTU-CVE-2025-45765

core-osv · Original source

Published 7 Aug 2025, 21:15 UTC

ruby-jwt v3.0.0.beta1 was discovered to contain weak encryption. NOTE: the Supplier's perspective is "keysize is not something that is enforced by this library. Currently more recent versions of OpenSSL are enforcing some key sizes and those restrictions apply to the users of this gem also."

osv:UBUNTU-CVE-2025-45765

ruby-jwt

Fixed versions: Not specified

ruby-jwt

Fixed versions: Not specified

ruby-jwt

Fixed versions: Not specified

ruby-jwt

Fixed versions: Not specified

ruby-jwt

Fixed versions: Not specified

ruby-jwt

Fixed versions: Not specified

ruby-jwt

Fixed versions: Not specified

ruby-jwt

Fixed versions: Not specified

Complete source record
{
  "id": "9b6dd3750485075b77bf95f8567961aeb3573888190285cd902d334e1142374f",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2025-45765",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2025-45765",
    "summary": "ruby-jwt v3.0.0.beta1 was discovered to contain weak encryption. NOTE: the Supplier's perspective is \"keysize is not something that is enforced by this library. Currently more recent versions of OpenSSL are enforcing some key sizes and those restrictions apply to the users of this gem also.\"",
    "evidence": "osv:UBUNTU-CVE-2025-45765",
    "products": [
      {
        "name": {
          "value": "ruby-jwt",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.0.0-3",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-jwt",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.5.6-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-jwt",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.5.6-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.1.0-2",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-jwt",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.2.2-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-jwt",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.7.0-2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.7.1-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-jwt",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.7.1-1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-jwt",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.7.1-1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "3.2.0-1",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-jwt",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.7.1-1",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "UBUNTU-CVE-2025-45765",
      "aliases": [
        "UBUNTU-CVE-2025-45765"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-jwt",
            "purl": "pkg:deb/ubuntu/ruby-jwt?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "1.0.0-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-45765.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-jwt",
                "binary_version": "1.0.0-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-jwt",
            "purl": "pkg:deb/ubuntu/ruby-jwt?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "1.5.6-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-45765.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-jwt",
                "binary_version": "1.5.6-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-jwt",
            "purl": "pkg:deb/ubuntu/ruby-jwt?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "1.5.6-1",
            "2.1.0-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-45765.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-jwt",
                "binary_version": "2.1.0-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-jwt",
            "purl": "pkg:deb/ubuntu/ruby-jwt?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "2.2.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-45765.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-jwt",
                "binary_version": "2.2.2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-jwt",
            "purl": "pkg:deb/ubuntu/ruby-jwt?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "2.7.0-2",
            "2.7.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-45765.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-jwt",
                "binary_version": "2.7.1-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-jwt",
            "purl": "pkg:deb/ubuntu/ruby-jwt?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "2.7.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-45765.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-jwt",
                "binary_version": "2.7.1-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-jwt",
            "purl": "pkg:deb/ubuntu/ruby-jwt?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "2.7.1-1",
            "3.2.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-45765.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-jwt",
                "binary_version": "3.2.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-jwt",
            "purl": "pkg:deb/ubuntu/ruby-jwt?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "2.7.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-45765.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-jwt",
                "binary_version": "2.7.1-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:51.799435297Z",
      "provider": "osv",
      "upstream": [
        "CVE-2025-45765"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2025-45765",
        "https://www.cve.org/CVERecord?id=CVE-2025-45765",
        "https://gist.github.com/ZupeiNie/c621253068ce5b64911629534879e8f9",
        "https://github.com/jwt/ruby-jwt/issues/668"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2025-45765",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 356476,
  "published_at": "2025-08-07T21:15:00+00:00"
}