ADVISORIES

Red Hat VEX

RHVEX-CVE-2025-22868

golang.org/x/oauth2/jws: Unexpected memory consumption during token parsing in golang.org/x/oauth2/jws

Important No fix available CVE-2025-22868

Details

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.

Affected packages

EcosystemPackageAffected versions
Red Hat:enterprise_linux:8osbuild-composer
All versions, no fix yet
Red Hat:enterprise_linux:8osbuild-composer-core
All versions, no fix yet
Red Hat:enterprise_linux:8osbuild-composer-dnf-json
All versions, no fix yet
Red Hat:enterprise_linux:8osbuild-composer-worker
All versions, no fix yet
Red Hat:enterprise_linux:9ignition
All versions, will not be fixed
Red Hat:enterprise_linux:9ignition-edge
All versions, will not be fixed
Red Hat:enterprise_linux:9ignition-grub
All versions, will not be fixed
Red Hat:enterprise_linux:9ignition-validate
All versions, will not be fixed

References