p PatchFirst

CVE-2024-51744

CVE-2024-51744 · Bad documentation of error handling in ParseWithClaims can lead to potentially dangerous situations in golang-jwt

CVSS 3.1 · Low · EPSS 0.6% · Fix available

Compare with your installed version

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

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="golang-github-golang-jwt-jwt"'

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. Unclear documentation of the error behavior in `ParseWithClaims` can lead to situation where users are potentially not checking errors in the way they should be. Especially, if a token is both expired and invalid, the errors returned by `ParseWithClaims` return both error codes. If users only check for the `jwt.ErrTokenExpired ` using `error.Is`, they will ignore the embedded `jwt.ErrTokenSignatureInvalid` and thus potentially accept invalid tokens. A fix has been back-ported with the error handling logic from the `v5` branch to the `v4` branch. In this logic, the `ParseWithClaims` function will immediately return in "dangerous" situations (e.g., an invalid signature), limiting the combined errors only to situations where the signature is valid, but further validation failed (e.g., if the signature is valid, but is expired AND has the wrong audience). This fix is part of the 4.5.1 release. We are aware that this changes the behaviour of an established function and is not 100 % backwards compatible, so updating to 4.5.1 might break your code. In case you cannot update to 4.5.0, please make sure that you are properly checking for all errors ("dangerous" ones first), so that you are not running in the case detailed above.

Published
Updated

Fixes in distributions

  • openSUSE-SU-2026:12297-1 · openSUSE Tumbleweed ·
  • openSUSE-SU-2026:12300-1 · openSUSE Tumbleweed ·
  • openSUSE-SU-2026:12270-1 · openSUSE Tumbleweed ·
  • RHSA-2026:2769 · Red Hat ceph storage 7.1 el8, Red Hat ceph storage 7.1 el9 ·
  • openSUSE-SU-2026:20099-1 · openSUSE Leap 16.0 ·
  • SUSE-SU-2025:01985-1 · SUSE Manager Server 4.3 ·
  • openSUSE-SU-2025:0131-1 · openSUSE Leap 15.6, SUSE Package Hub 15 SP6 ·
  • SUSE-SU-2025:1333-1 · openSUSE Leap 15.6, SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS, SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS, SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS, SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS, SUSE Linux Enterprise Module for Basesystem 15 SP6, SUSE Linux Enterprise Server 15 SP4-LTSS, SUSE Linux Enterprise Server 15 SP5-LTSS, SUSE Linux Enterprise Server for SAP Applications 15 SP4, SUSE Linux Enterprise Server for SAP Applications 15 SP5, SUSE Manager Proxy 4.3, SUSE Manager Server 4.3 ·
  • openSUSE-SU-2025:14988-1 · openSUSE Tumbleweed ·
  • openSUSE-SU-2025:14840-1 · openSUSE Tumbleweed ·
  • SUSE-SU-2025:0546-1 · openSUSE Leap 15.6, SUSE Linux Enterprise Module for Package Hub 15 SP6, SUSE Manager Proxy Module 4.3 ·
  • SUSE-SU-2025:0525-1 · openSUSE Leap 15.6, SUSE Enterprise Storage 7.1, SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS, SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS, SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS, SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS, SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS, SUSE Linux Enterprise Module for Basesystem 15 SP6, SUSE Linux Enterprise Module for Package Hub 15 SP6, SUSE Linux Enterprise Server 15 SP3-LTSS, SUSE Linux Enterprise Server 15 SP4-LTSS, SUSE Linux Enterprise Server 15 SP5-LTSS, SUSE Linux Enterprise Server for SAP Applications 15 SP3, SUSE Linux Enterprise Server for SAP Applications 15 SP4, SUSE Linux Enterprise Server for SAP Applications 15 SP5, SUSE Manager Client Tools 15, SUSE Manager Client Tools for SLE Micro 5, SUSE Manager Proxy 4.3, SUSE Manager Server 4.3 ·
  • SUSE-SU-2025:0524-1 · SUSE Manager Client Tools 12 ·
  • openSUSE-SU-2025:14768-1 · openSUSE Tumbleweed ·
  • openSUSE-SU-2025:14663-1 · openSUSE Tumbleweed ·
  • openSUSE-SU-2024:14522-1 · openSUSE Tumbleweed ·
  • SUSE-SU-2024:4042-1 · openSUSE Leap 15.5, openSUSE Leap 15.6, SUSE Linux Enterprise Module for Package Hub 15 SP5, SUSE Linux Enterprise Module for Package Hub 15 SP6 ·
  • openSUSE-SU-2024:14517-1 · openSUSE Tumbleweed ·
  • openSUSE-SU-2024:14495-1 · openSUSE Tumbleweed ·
  • openSUSE-SU-2024:14484-1 · openSUSE Tumbleweed ·
  • openSUSE-SU-2024:14481-1 · openSUSE Tumbleweed ·

Stack: system

Affected products and versions

Original sources

Check your server →