Skip to content

CVE-2025-30204 jwt-go allows excessive memory allocation during header parsing

HighCVSS 7.5 EPSS 0.81%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
KubernetesUbuntuDebian

Description

golang-jwt is a Go implementation of JSON Web Tokens. Starting in version 3.2.0 and prior to versions 5.2.2 and 4.5.2, the function parse.ParseUnverified splits (via a call to strings.Split) its argument (which is untrusted data) on periods. As a result, in the face of a malicious request whose Authorization header consists of Bearer followed by many period characters, a call to that function incurs allocations to the tune of O(n) bytes (where n stands for the length of the function's argument), with a constant factor of about 16. This issue is fixed in 5.2.2 and 4.5.2.

Upgrade path

37 packages: 30 fixed, 1 partially fixed, 5 with no fix yet.

PackageAffectedFixed inStatus
cbl-mariner blobfuse2(CBL-Mariner 2.0) All versions No fix listed No fix yet
debian/golang-github-golang-jwt-jwt(Debian 12) = 4.4.3-1; = 5.0.0+really4.5.0-1; = 5.0.0+really4.5.0-1~exp1; = 5.0.0+really4.5.0-2 +3 more No fix listed No fix yet
ubuntu/golang-github-golang-jwt-jwt(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/golang-github-golang-jwt-jwt(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/golang-github-golang-jwt-jwt-v5(Ubuntu 24.04) All versions No fix listed No fix yet
golang-jwt github.com/golang-jwt/jwt/v4(Go) < 4.5.2; >= 3.2.0, <= 3.2.2; >= 5.0.0-rc.1, < 5.2.2; All versions 4.5.2, 5.2.2 Partially fixed
alpine/rclone(Alpine v3.22) < 1.69.3-r0 1.69.3-r0 Fixed
alpine/rclone(Alpine v3.23) < 1.69.3-r0 1.69.3-r0 Fixed
alpine/rclone(Alpine v3.24) < 1.69.3-r0 1.69.3-r0 Fixed
azure linux application-gateway-kubernetes-ingress(Azure Linux 3.0) < 1.7.7-2 1.7.7-2 Fixed
azure linux azcopy(Azure Linux 3.0) < 10.25.1-3 10.25.1-3 Fixed
azure linux blobfuse2(Azure Linux 3.0) < 2.3.2-2 2.3.2-2 Fixed
azure linux cert-manager(Azure Linux 3.0) < 1.12.15-3 1.12.15-3 Fixed
azure linux coredns(Azure Linux 3.0) < 1.11.4-5 1.11.4-5 Fixed
azure linux etcd(Azure Linux 3.0) < 3.5.21-1 3.5.21-1 Fixed
azure linux flannel(Azure Linux 3.0) < 0.24.2-12 0.24.2-12 Fixed
azure linux keda(Azure Linux 3.0) < 2.14.1-5 2.14.1-5 Fixed
azure linux moby-engine(Azure Linux 3.0) < 25.0.3-12 25.0.3-12 Fixed
azure linux packer(Azure Linux 3.0) < 1.9.5-7 1.9.5-7 Fixed
azure linux prometheus(Azure Linux 3.0) < 2.45.4-9 2.45.4-9 Fixed
azure linux telegraf(Azure Linux 3.0) < 1.31.0-7 1.31.0-7 Fixed
cbl-mariner azcopy(CBL-Mariner 2.0) < 10.25.1-5 10.25.1-5 Fixed
cbl-mariner cert-manager(CBL-Mariner 2.0) < 1.11.2-21 1.11.2-21 Fixed
cbl-mariner coredns(CBL-Mariner 2.0) < 1.11.1-16 1.11.1-16 Fixed
cbl-mariner etcd(CBL-Mariner 2.0) < 3.5.21-1 3.5.21-1 Fixed
cbl-mariner moby-engine(CBL-Mariner 2.0) < 24.0.9-16 24.0.9-16 Fixed
cbl-mariner packer(CBL-Mariner 2.0) < 1.9.5-12 1.9.5-12 Fixed
cbl-mariner prometheus(CBL-Mariner 2.0) < 2.37.9-3 2.37.9-3 Fixed
cbl-mariner telegraf(CBL-Mariner 2.0) < 1.29.4-13 1.29.4-13 Fixed
cbl-mariner terraform(CBL-Mariner 2.0) < 1.3.2-24 1.3.2-24 Fixed

… and 7 more packages.

Affected products

ProductAffected versionsFixed in
golang-jwt github.com/golang-jwt/jwt/v4(Go) >= 5.0.0-rc.1, < 5.2.2 5.2.2
golang-jwt github.com/golang-jwt/jwt/v4(Go) < 4.5.2 4.5.2
golang-jwt github.com/golang-jwt/jwt/v4(Go) >= 3.2.0, <= 3.2.2 No fix listed
azure linux flannel(Azure Linux:3.0) < 0.24.2-12 0.24.2-12
azure linux etcd(Azure Linux:3.0) < 3.5.21-1 3.5.21-1
azure linux coredns(Azure Linux:3.0) < 1.11.4-5 1.11.4-5
azure linux telegraf(Azure Linux:3.0) < 1.31.0-7 1.31.0-7
azure linux packer(Azure Linux:3.0) < 1.9.5-7 1.9.5-7
Kubernetes(Azure Linux:3.0) < 1.30.10-4 1.30.10-4
cbl-mariner azcopy(CBL-Mariner:2.0) < 10.25.1-5 10.25.1-5
cbl-mariner etcd(CBL-Mariner:2.0) < 3.5.21-1 3.5.21-1
cbl-mariner cert-manager(CBL-Mariner:2.0) < 1.11.2-21 1.11.2-21
cbl-mariner telegraf(CBL-Mariner:2.0) < 1.29.4-13 1.29.4-13
cbl-mariner packer(CBL-Mariner:2.0) < 1.9.5-12 1.9.5-12
Kubernetes(CBL-Mariner:2.0) < 1.28.4-16 1.28.4-16
cbl-mariner prometheus(CBL-Mariner:2.0) < 2.37.9-3 2.37.9-3
cbl-mariner coredns(CBL-Mariner:2.0) < 1.11.1-16 1.11.1-16
cbl-mariner terraform(CBL-Mariner:2.0) < 1.3.2-24 1.3.2-24
cbl-mariner moby-engine(CBL-Mariner:2.0) < 24.0.9-16 24.0.9-16
azure linux application-gateway-kubernetes-ingress(Azure Linux:3.0) < 1.7.7-2 1.7.7-2
azure linux keda(Azure Linux:3.0) < 2.14.1-5 2.14.1-5
azure linux moby-engine(Azure Linux:3.0) < 25.0.3-12 25.0.3-12
azure linux blobfuse2(Azure Linux:3.0) < 2.3.2-2 2.3.2-2
azure linux azcopy(Azure Linux:3.0) < 10.25.1-3 10.25.1-3
azure linux cert-manager(Azure Linux:3.0) < 1.12.15-3 1.12.15-3
Show 22 more
ProductAffected versionsFixed in
azure linux prometheus(Azure Linux:3.0) < 2.45.4-9 2.45.4-9
cbl-mariner blobfuse2(CBL-Mariner:2.0) All versions No fix listed
debian/golang-github-golang-jwt-jwt(Debian:12) All versions No fix listed
debian/golang-github-golang-jwt-jwt(Debian:12) = 4.4.3-1 No fix listed
debian/golang-github-golang-jwt-jwt(Debian:12) = 5.0.0+really4.5.0-1 No fix listed
debian/golang-github-golang-jwt-jwt(Debian:12) = 5.0.0+really4.5.0-1~exp1 No fix listed
debian/golang-github-golang-jwt-jwt(Debian:12) = 5.0.0+really4.5.0-2 No fix listed
debian/golang-github-golang-jwt-jwt(Debian:12) = 5.0.0+really4.5.2-1 No fix listed
debian/golang-github-golang-jwt-jwt(Debian:12) = 5.0.0-1 No fix listed
debian/golang-github-golang-jwt-jwt(Debian:13) < 5.0.0+really4.5.2-1 5.0.0+really4.5.2-1
debian/golang-github-golang-jwt-jwt(Debian:14) < 5.0.0+really4.5.2-1 5.0.0+really4.5.2-1
debian/golang-github-golang-jwt-jwt-v5(Debian:13) < 5.2.2-1 5.2.2-1
debian/golang-github-golang-jwt-jwt-v5(Debian:14) < 5.2.2-1 5.2.2-1
golang-jwt github.com/golang-jwt/jwt/v4 = >= 3.2.0, < 4.5.2 No fix listed
golang-jwt github.com/golang-jwt/jwt/v4 = >= 5.0.0-rc.1, < 5.2.2 No fix listed
ubuntu/golang-github-golang-jwt-jwt(Ubuntu:22.04) All versions No fix listed
alpine/rclone(Alpine:v3.22) < 1.69.3-r0 1.69.3-r0
alpine/rclone(Alpine:v3.23) < 1.69.3-r0 1.69.3-r0
alpine/rclone(Alpine:v3.24) < 1.69.3-r0 1.69.3-r0
ubuntu/golang-github-golang-jwt-jwt(Ubuntu:24.04) All versions No fix listed
ubuntu/golang-github-golang-jwt-jwt-v5(Ubuntu:24.04) All versions No fix listed
golang-jwt github.com/golang-jwt/jwt/v4(Go) All versions No fix listed

References