Описание
An attacker can pass a malicious malformed token which causes unexpected memory to be consumed during parsing.
A flaw was found in the golang.org/x/oauth2/jws package in the token parsing component. This vulnerability is made possible because of the use of strings.Split(token, ".") to split JWT tokens, which can lead to excessive memory consumption when processing maliciously crafted tokens with a large number of . characters. An attacker could exploit this functionality by sending numerous malformed tokens and can trigger memory exhaustion and a Denial of Service.
Отчет
IMPORTANT impact: CVE-2025-22868 affects Red Hat product components that use golang.org/x/oauth2/jws, including components across Red Hat Enterprise Linux, OpenShift, cloud, management, Ansible, Ceph, and other Red Hat products. An unauthenticated remote attacker can submit a maliciously crafted token containing a large number of '.' characters; parsing with strings.Split(token, ".") can consume excessive memory, causing memory exhaustion and denial of service. The current record contains 659 affected component entries, with component-level delegated outcomes including AFFECTED, NOTAFFECTED, WONTFIX, and OOSS; entries classified as NOTAFFECTED are therefore component-specific, and this record provides no more specific product-level justification for those classifications. The CVSS 3.1 score of 7.5 (IMPORTANT) reflects network reachability and a high availability impact, with no confidentiality or integrity impact.
Меры по смягчению последствий
To mitigate this vulnerability, it is recommended to pre-validate any payloads passed to go-jose to check that they do not contain an excessive amount of . characters.
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| cert-manager Operator for Red Hat OpenShift | cert-manager/jetstack-cert-manager-acmesolver-rhel9 | Affected | ||
| cert-manager Operator for Red Hat OpenShift | cert-manager/jetstack-cert-manager-rhel9 | Will not fix | ||
| cert-manager Operator for Red Hat OpenShift | cert-manager-operator-rhel9 | Not affected | ||
| cert-manager Operator for Red Hat OpenShift | jetstack-cert-manager-acmesolver-rhel9 | Will not fix | ||
| cert-manager Operator for Red Hat OpenShift | jetstack-cert-manager-rhel9 | Affected | ||
| Cryostat 3 | cryostat-tech-preview/cryostat-storage-rhel8 | Affected | ||
| Custom Metric Autoscaler operator for Red Hat Openshift | custom-metrics-autoscaler/custom-metrics-autoscaler-adapter-rhel8 | Affected | ||
| Custom Metric Autoscaler operator for Red Hat Openshift | custom-metrics-autoscaler/custom-metrics-autoscaler-admission-webhooks-rhel8 | Affected | ||
| Custom Metric Autoscaler operator for Red Hat Openshift | custom-metrics-autoscaler/custom-metrics-autoscaler-rhel8 | Affected | ||
| Logging Subsystem for Red Hat OpenShift | openshift-logging/logging-loki-rhel9 | Not affected |
Показывать по
Дополнительная информация
Статус:
EPSS
7.5 High
CVSS3
Связанные уязвимости
An attacker can pass a malicious malformed token which causes unexpected memory to be consumed during parsing.
An attacker can pass a malicious malformed token which causes unexpected memory to be consumed during parsing.
Unexpected memory consumption during token parsing in golang.org/x/oauth2
An attacker can pass a malicious malformed token which causes unexpect ...
EPSS
7.5 High
CVSS3