Skip to content
Heist/ feed
Back to feed
Medium

golang-github-go-jose-go-jose — security advisory

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

Go JOSE provides an implementation of the Javascript Object Signing and Encryption set of standards in Go, including support for JSON Web Encryption (JWE), JSON Web Signature (JWS), and JSON Web Token (JWT) standards. In versions on the 4.x branch prior to version 4.0.5, when parsing compact JWS or JWE input, Go JOSE could use excessive memory. The code used strings.Split(token, ".") to split JWT tokens, which is vulnerable to excessive memory consumption when processing maliciously crafted tokens with a large number of `.` characters. An attacker could exploit this by sending numerous malformed tokens, leading to memory exhaustion and a Denial of Service. Version 4.0.5 fixes this issue. As a workaround, applications could pre-validate that payloads passed to Go JOSE do not contain an excessive number of `.` characters.

Products
golang-github-go-jose-go-jose
Affected versions
3.0.1-1, 3.0.1-2, 4.0.1-4, 4.0.1-4ubuntu0.1, 4.0.1-4ubuntu0.2, 4.0.1-4ubuntu0.3, 4.0.5-1, 4.0.5-1build1, 4.0.5-1ubuntu0.26.04.1~esm1, 4.1.4-1, 4.1.4-2
Fixed versions
Not specified
CVEs
CVE-2025-27144
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:26 UTC · Revision 1

Source evidence

UBUNTU-CVE-2025-27144

core-osv · Original source

Published 24 Feb 2025, 23:15 UTC

Go JOSE provides an implementation of the Javascript Object Signing and Encryption set of standards in Go, including support for JSON Web Encryption (JWE), JSON Web Signature (JWS), and JSON Web Token (JWT) standards. In versions on the 4.x branch prior to version 4.0.5, when parsing compact JWS or JWE input, Go JOSE could use excessive memory. The code used strings.Split(token, ".") to split JWT tokens, which is vulnerable to excessive memory consumption when processing maliciously crafted tokens with a large number of `.` characters. An attacker could exploit this by sending numerous malformed tokens, leading to memory exhaustion and a Denial of Service. Version 4.0.5 fixes this issue. As a workaround, applications could pre-validate that payloads passed to Go JOSE do not contain an excessive number of `.` characters.

osv:UBUNTU-CVE-2025-27144

golang-github-go-jose-go-jose

Fixed versions: Not specified

golang-github-go-jose-go-jose

Fixed versions: Not specified

golang-github-go-jose-go-jose

Fixed versions: Not specified

golang-github-go-jose-go-jose

Fixed versions: Not specified

Complete source record
{
  "id": "1a136682034576daf85af7d4fadfef4d0df2397495bdb9b846ac3db6dfed0589",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2025-27144",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2025-27144",
    "summary": "Go JOSE provides an implementation of the Javascript Object Signing and Encryption set of standards in Go, including support for JSON Web Encryption (JWE), JSON Web Signature (JWS), and JSON Web Token (JWT) standards. In versions on the 4.x branch prior to version 4.0.5, when parsing compact JWS or JWE input, Go JOSE could use excessive memory. The code used strings.Split(token, \".\") to split JWT tokens, which is vulnerable to excessive memory consumption when processing maliciously crafted tokens with a large number of `.` characters. An attacker could exploit this by sending numerous malformed tokens, leading to memory exhaustion and a Denial of Service. Version 4.0.5 fixes this issue. As a workaround, applications could pre-validate that payloads passed to Go JOSE do not contain an excessive number of `.` characters.",
    "evidence": "osv:UBUNTU-CVE-2025-27144",
    "products": [
      {
        "name": {
          "value": "golang-github-go-jose-go-jose",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.0.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.0.1-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.0.1-4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.0.1-4ubuntu0.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.0.1-4ubuntu0.2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.0.1-4ubuntu0.3",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-github-go-jose-go-jose",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.0.5-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-github-go-jose-go-jose",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.0.5-1build1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.1.4-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.1.4-2",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-github-go-jose-go-jose",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.0.5-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "4.0.5-1build1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "4.0.5-1ubuntu0.26.04.1~esm1",
            "evidence": "/affected/3/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2025-27144",
      "aliases": [
        "UBUNTU-CVE-2025-27144"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-go-jose-go-jose",
            "purl": "pkg:deb/ubuntu/golang-github-go-jose-go-jose?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "3.0.1-1",
            "3.0.1-2",
            "4.0.1-4",
            "4.0.1-4ubuntu0.1",
            "4.0.1-4ubuntu0.2",
            "4.0.1-4ubuntu0.3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-27144.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-github-go-jose-go-jose-dev",
                "binary_version": "4.0.1-4ubuntu0.3"
              },
              {
                "binary_name": "jose-util",
                "binary_version": "4.0.1-4ubuntu0.3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-go-jose-go-jose",
            "purl": "pkg:deb/ubuntu/golang-github-go-jose-go-jose?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "4.0.5-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-27144.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-github-go-jose-go-jose-dev",
                "binary_version": "4.0.5-1"
              },
              {
                "binary_name": "jose-util",
                "binary_version": "4.0.5-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-go-jose-go-jose",
            "purl": "pkg:deb/ubuntu/golang-github-go-jose-go-jose?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "4.0.5-1build1",
            "4.1.4-1",
            "4.1.4-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-27144.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-github-go-jose-go-jose-dev",
                "binary_version": "4.1.4-2"
              },
              {
                "binary_name": "jose-util",
                "binary_version": "4.1.4-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-go-jose-go-jose",
            "purl": "pkg:deb/ubuntu/golang-github-go-jose-go-jose?arch=source&distro=esm-apps%2Fresolute",
            "ecosystem": "Ubuntu:Pro:26.04:LTS"
          },
          "versions": [
            "4.0.5-1",
            "4.0.5-1build1",
            "4.0.5-1ubuntu0.26.04.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-27144.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-github-go-jose-go-jose-dev",
                "binary_version": "4.0.5-1ubuntu0.26.04.1~esm1"
              },
              {
                "binary_name": "jose-util",
                "binary_version": "4.0.5-1ubuntu0.26.04.1~esm1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:50.000078866Z",
      "provider": "osv",
      "upstream": [
        "CVE-2025-27144"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2025-27144",
        "https://www.cve.org/CVERecord?id=CVE-2025-27144",
        "https://github.com/go-jose/go-jose/commit/99b346cec4e86d102284642c5dcbe9bb0cacfc22",
        "https://github.com/go-jose/go-jose/releases/tag/v4.0.5",
        "https://github.com/go-jose/go-jose/security/advisories/GHSA-c6gw-w398-hv78"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2025-27144",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 356423,
  "published_at": "2025-02-24T23:15:00+00:00"
}