p PatchFirst

CVE-2025-30204

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

CVSS 7.5 · High · EPSS 0.8% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

  • jwtNo fix published
  • rclone Alpine 3.22Update to 1.69.3-r0
  • rclone Alpine 3.23Update to 1.69.3-r0
  • rclone Alpine 3.24Update to 1.69.3-r0
  • and 8 more

Check the installed version:

apk list -I -o rclone

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

Stack: system

Affected products and versions

  • jwt

    Versions
    • >= 3.2.0, < 4.5.2: Affected
    • >= 5.0.0-rc.1, < 5.2.2: Affected

    No fix published

  • rclone Alpine 3.22

    Affected ranges
    • ECOSYSTEM: < 1.69.3-r0

    Update to 1.69.3-r0

  • rclone Alpine 3.23

    Affected ranges
    • ECOSYSTEM: < 1.69.3-r0

    Update to 1.69.3-r0

  • rclone Alpine 3.24

    Affected ranges
    • ECOSYSTEM: < 1.69.3-r0

    Update to 1.69.3-r0

  • golang-github-golang-jwt-jwt Debian 12

    Versions
    • 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
    • 5.0.0+really4.5.2-1
    • 5.0.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • golang-github-golang-jwt-jwt Debian 13

    Affected ranges
    • ECOSYSTEM: < 5.0.0+really4.5.2-1

    Update to 5.0.0+really4.5.2-1

  • golang-github-golang-jwt-jwt Debian 14

    Affected ranges
    • ECOSYSTEM: < 5.0.0+really4.5.2-1

    Update to 5.0.0+really4.5.2-1

  • golang-github-golang-jwt-jwt-v5 Debian 13

    Affected ranges
    • ECOSYSTEM: < 5.2.2-1

    Update to 5.2.2-1

  • golang-github-golang-jwt-jwt-v5 Debian 14

    Affected ranges
    • ECOSYSTEM: < 5.2.2-1

    Update to 5.2.2-1

  • golang-github-golang-jwt-jwt Ubuntu 22.04 LTS

    Versions
    • 4.1.0-1
    • 4.1.0-2
    • 4.2.0-1
    • 4.2.0-1ubuntu0.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • golang-github-golang-jwt-jwt Ubuntu 24.04 LTS

    Versions
    • 4.4.3-1build1
    • 5.0.0+really4.5.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • golang-github-golang-jwt-jwt-v5 Ubuntu 24.04 LTS

    Versions
    • 5.2.0-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →