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 · Niedrig · EPSS 0,6% · Korrektur verfügbar

Vergleichen Sie mit Ihrer installierten Version

Betroffene Produkte und bekannte korrigierte Versionen sind öffentlich. Vergleichen Sie diese mit Ihrer installierten Version.

Installierte Version prüfen:

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

Bewerten Sie die Risiken Ihres Servers

Die kostenlose Prüfung liefert ohne Registrierung eine Bewertung und eine Risikoübersicht nach Technologie-Stacks. Sie beantwortet nicht, ob diese einzelne Schwachstelle Sie betrifft.

Die Überwachung gleicht öffentliche Informationen mit der Software Ihrer Server ab. Sie erhalten detaillierte Funde und eine Reihenfolge für Updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Server kostenlos prüfen →

Kanäle bieten allgemeine Nachrichten zu Technologien; neue Funde auf Ihren Servern meldet die Überwachung im Dashboard, per Browser-Benachrichtigung, in Telegram oder über einen Webhook.

Diese Seite enthält Fakten aus öffentlichen Sicherheitsquellen. Lesen Sie vor dem Aktualisieren die Originalmeldung.

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.

Veröffentlicht
Aktualisiert

Korrekturen in Distributionen

  • 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 ·

Technologie-Stack: system

Betroffene Produkte und Versionen

  • jwt

    Softwareversionen
    • < 4.5.1: Betroffen

    Keine Korrektur veröffentlicht

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

    Softwareversionen
    • 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
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

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

    Betroffene Versionsbereiche
    • ECOSYSTEM: < 5.0.0+really4.5.2-1

    Auf 5.0.0+really4.5.2-1 aktualisieren

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

    Betroffene Versionsbereiche
    • ECOSYSTEM: < 5.0.0+really4.5.2-1

    Auf 5.0.0+really4.5.2-1 aktualisieren

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

    Softwareversionen
    • 4.1.0-1
    • 4.1.0-2
    • 4.2.0-1
    • 4.2.0-1ubuntu0.1
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

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

    Softwareversionen
    • 4.4.3-1build1
    • 5.0.0+really4.5.0-1
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

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

    Softwareversionen
    • 5.2.0-2
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

  • golang-github-golang-jwt-jwt Ubuntu 25.10

    Softwareversionen
    • 5.0.0+really4.5.2-1
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

  • golang-github-golang-jwt-jwt-v5 Ubuntu 25.10

    Softwareversionen
    • 5.2.2-1
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

  • golang-github-golang-jwt-jwt Ubuntu 26.10

    Softwareversionen
    • 5.0.0+really4.5.2-1build1
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

  • golang-github-golang-jwt-jwt-v5 Ubuntu 26.10

    Softwareversionen
    • 5.3.0-1
    • 5.3.1-1
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

  • golang-github-golang-jwt-jwt Ubuntu 26.04 LTS

    Softwareversionen
    • 5.0.0+really4.5.2-1
    • 5.0.0+really4.5.2-1build1
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

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

    Softwareversionen
    • 5.2.2-1
    • 5.3.0-1
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

Originalquellen

Prüfen Sie Ihren Server →