İçeriğe atla
Noroxi
CVE-2024-51744· NVD / CVE Programı· CNA GitHub_M

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

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.

DüşükCVSS 3.1 · v3.1—İstismar yok Düzeltme var
Yayın
4 Kas 2024
Güncelleme
17 Haz 2026
EPSS
%0,5 · 42. yüzdelik
Bu CVE’yi takip et

Takip etmek için giriş yap · Takip ettiğin kayıt KEV’e girer, istismarı çıkar ya da güncellenirse bildirim alırsın.

Rapor araçları

JSON

Aksiyon skoru

12

İzleyin

Şimdilik düşük öncelik.

CVSS
12 / 40 · 3.1 / 10
CISA KEV
0 / 30 · Listede değil
EPSS
0 / 30 · %0,5

CISA SSVC kararı

Sömürü
yok
Otomatikleştirilebilir
hayır
Teknik etki
kısmi

Vulnrichment: CISA'nın karar ağacı girdileri.

CNA ile NVD puanı

NVD
—
CNA · GitHub_M
3,1
NVD henüz kendi puanını vermedi; gösterilen puan CNA’nın.

Kaydı açan otoritenin puanı ile NVD’nin bağımsız puanı. İki puan arasındaki fark ciddiyetin tartışmalı olduğunu gösterir.

Noroxi analizi

Bu kayıt için henüz Noroxi analizi yok

Veritabanındaki yüz binlerce zafiyetin tamamına elle analiz yazmıyoruz; bu dürüst olmazdı. Öne çıkan ve sahada etkisi olan zafiyetler için mekanizma, tespit ve kapatma adımlarını ekibimiz yazıyor.

Bu ürünü kullanıyoruz, yardım isteyin

Etkilenen sistemler

—

Üreticinin bildirdiği sürümler

Kaydı açan otorite (GitHub_M) tarafından bildirilen etkilenen sürüm aralıkları. NVD'nin CPE analizinden bağımsızdır ve genellikle ondan önce gelir.

  • golang-jwt jwt

    • < 4.5.1etkilenir

Paket düzeyi etkilenme

OSV ve GitHub Advisory verisi: ekosistem, paket ve aralık. SBOM eşleşmesi bu tabloyu kullanır.

EkosistemPaketEtkilenen aralıkDüzeltme
Debian:12golang-github-golang-jwt-jwttüm sürümler—
Debian:13golang-github-golang-jwt-jwt5.0.0+really4.5.2-1 öncesi5.0.0+really4.5.2-1
Gogithub.com/golang-jwt/jwt/v44.5.1 öncesi4.5.1
openSUSE:Leap 16.0coredns1.14.0-bp160.1.1 öncesi1.14.0-bp160.1.1
openSUSE:Leap 16.0trivy0.66.0-bp160.1.1 öncesi0.66.0-bp160.1.1
openSUSE:Tumbleweedcoredns1.11.3+git129.387f34d-1.1 öncesi1.11.3+git129.387f34d-1.1
openSUSE:Tumbleweedcosign2.5.0-1.1 öncesi2.5.0-1.1
openSUSE:Tumbleweedgovulncheck-vulndb0.0.20241112T145010-1.1 öncesi0.0.20241112T145010-1.1
openSUSE:Tumbleweedgrafana11.5.1-1.1 öncesi11.5.1-1.1
openSUSE:Tumbleweedrclone1.68.1-2.1 öncesi1.68.1-2.1
openSUSE:Tumbleweedtraefik3.2.1-1.1 öncesi3.2.1-1.1
openSUSE:Tumbleweedtraefik22.11.14-1.1 öncesi2.11.14-1.1
openSUSE:Tumbleweedtrivy0.59.1-1.1 öncesi0.59.1-1.1
Red Hat:ceph_storage:7.1::el8ceph2:18.2.1-381.el8cp öncesi2:18.2.1-381.el8cp
Red Hat:ceph_storage:7.1::el8ceph-base2:18.2.1-381.el8cp öncesi2:18.2.1-381.el8cp
Red Hat:ceph_storage:7.1::el8ceph-base-debuginfo2:18.2.1-381.el8cp öncesi2:18.2.1-381.el8cp
Red Hat:ceph_storage:7.1::el8ceph-common2:18.2.1-381.el8cp öncesi2:18.2.1-381.el8cp
Red Hat:ceph_storage:7.1::el8ceph-common-debuginfo2:18.2.1-381.el8cp öncesi2:18.2.1-381.el8cp
Red Hat:ceph_storage:7.1::el8ceph-debuginfo2:18.2.1-381.el8cp öncesi2:18.2.1-381.el8cp
Red Hat:ceph_storage:7.1::el8ceph-debugsource2:18.2.1-381.el8cp öncesi2:18.2.1-381.el8cp
Red Hat:ceph_storage:7.1::el8ceph-exporter-debuginfo2:18.2.1-381.el8cp öncesi2:18.2.1-381.el8cp
Red Hat:ceph_storage:7.1::el8ceph-fuse2:18.2.1-381.el8cp öncesi2:18.2.1-381.el8cp
Red Hat:ceph_storage:7.1::el8ceph-fuse-debuginfo2:18.2.1-381.el8cp öncesi2:18.2.1-381.el8cp
Red Hat:ceph_storage:7.1::el8ceph-immutable-object-cache2:18.2.1-381.el8cp öncesi2:18.2.1-381.el8cp

+96

Aynı birincil ürünün en yüksek skorlu diğer kayıtları.

  • CVE-2025-30204jwt-go allows excessive memory allocation during header parsing
    30İzleyin

Düzeltme

Hangi sürüme geçmeli

Üretici, paket deposu ve Microsoft kayıtlarından derlenen düzeltme sürümleri. Yükseltmeden önce üreticinin notunu doğrulayın.

Ürün / paketDüzeltilmiş sürümKaynak
debian:golang-github-golang-jwt-jwt5.0.0+really4.5.2-1 · Debian:13Paket deposu (OSV)
Go:github.com/golang-jwt/jwt/v44.5.1Paket deposu (OSV)
opensuse:dracut-saltboot0.1.1728559936.c16d4fb-150000.1.56.1 · openSUSE:Leap 15.6Paket deposu (OSV)
opensuse:golang-github-prometheus-promu0.17.0-150000.3.24.1 · openSUSE:Leap 15.6Paket deposu (OSV)
opensuse:govulncheck-vulndb0.0.20241112T145010-150000.1.17.1 · openSUSE:Leap 15.5Paket deposu (OSV)
red hat:ceph2:18.2.1-381.el8cp · Red Hat:ceph_storage:7.1::el8Paket deposu (OSV)
red hat:ceph-base2:18.2.1-381.el8cp · Red Hat:ceph_storage:7.1::el8Paket deposu (OSV)
red hat:ceph-base-debuginfo2:18.2.1-381.el8cp · Red Hat:ceph_storage:7.1::el8Paket deposu (OSV)
red hat:ceph-common2:18.2.1-381.el8cp · Red Hat:ceph_storage:7.1::el8Paket deposu (OSV)
red hat:ceph-common-debuginfo2:18.2.1-381.el8cp · Red Hat:ceph_storage:7.1::el8Paket deposu (OSV)
red hat:ceph-debuginfo2:18.2.1-381.el8cp · Red Hat:ceph_storage:7.1::el8Paket deposu (OSV)
red hat:ceph-debugsource2:18.2.1-381.el8cp · Red Hat:ceph_storage:7.1::el8Paket deposu (OSV)
red hat:ceph-exporter-debuginfo2:18.2.1-381.el8cp · Red Hat:ceph_storage:7.1::el8Paket deposu (OSV)
red hat:ceph-fuse2:18.2.1-381.el8cp · Red Hat:ceph_storage:7.1::el8Paket deposu (OSV)
red hat:ceph-fuse-debuginfo2:18.2.1-381.el8cp · Red Hat:ceph_storage:7.1::el8Paket deposu (OSV)
red hat:ceph-immutable-object-cache2:18.2.1-381.el8cp · Red Hat:ceph_storage:7.1::el8Paket deposu (OSV)
red hat:ceph-immutable-object-cache-debuginfo2:18.2.1-381.el8cp · Red Hat:ceph_storage:7.1::el8Paket deposu (OSV)
suse:dracut-saltboot0.1.1728559936.c16d4fb-150000.1.56.1 · SUSE:Manager Client Tools 15Paket deposu (OSV)
suse:golang-github-prometheus-prometheus2.53.3-1.56.1 · SUSE:Manager Client Tools 12Paket deposu (OSV)
suse:golang-github-prometheus-prometheus2.53.3-150000.3.59.1 · SUSE:Manager Client Tools 15Paket deposu (OSV)
suse:golang-github-prometheus-promu0.17.0-1.24.1 · SUSE:Manager Client Tools 12Paket deposu (OSV)
suse:golang-github-prometheus-promu0.17.0-150000.3.24.1 · SUSE:Linux Enterprise Module for Package Hub 15 SP6Paket deposu (OSV)
suse:govulncheck-vulndb0.0.20241112T145010-150000.1.17.1 · SUSE:Linux Enterprise Module for Package Hub 15 SP5Paket deposu (OSV)
suse:grafana10.4.13-1.66.2 · SUSE:Manager Client Tools 12Paket deposu (OSV)
suse:grafana10.4.13-150000.1.66.1 · SUSE:Manager Client Tools 15Paket deposu (OSV)
suse:release-notes-susemanager4.3.15.2-150400.3.133.1 · SUSE:Manager Server 4.3Paket deposu (OSV)
suse:spacecmd5.0.11-150000.3.130.1 · SUSE:Manager Client Tools 15Paket deposu (OSV)
suse:spacecmd5.0.11-38.153.1 · SUSE:Manager Client Tools 12Paket deposu (OSV)
suse:supportutils-plugin-salt1.2.3-150000.3.16.1 · SUSE:Manager Client Tools 15Paket deposu (OSV)
suse:supportutils-plugin-salt1.2.3-6.25.1 · SUSE:Manager Client Tools 12Paket deposu (OSV)

+4

İstismar durumu

Bilinen kamuya açık istismar yok

Şu an kamuya açık bir istismar görülmedi. Bu, güvende olduğunuz anlamına gelmez; yalnızca eşiğin biraz daha yüksek olduğunu gösterir.

Araştırma bağlamı

Pentester ve araştırmacı için: saldırı profili, puan anlaşmazlığı, zaman çizelgesi, yama commit’leri, kredi, varyant ve zincir adayları, bug bounty kapsamı. Hepsi mevcut veriden türetilir; istismar kodu içermez.

Zaman çizelgesi

Yayından bugüne: kavram kanıtı, Metasploit modülü, CISA KEV ve düzeltme kaydı. Tarihler kaynakların bildirdiği tarihlerdir.

Yayın dışında tarihli olay yok.

EPSS son 120 gün

FIRST EPSS günlük puanı; yalnızca 0,01 ve üstü değişimler kaydedilir (adım grafiği).

Yama ve commit bağlantıları

Referanslardaki commit, PR ve diff adresleri. Patch-diff ve varyant avı için başlangıç noktası; istismar değil, düzeltmedir.

CNA kaydında adı geçen bulan, bildiren ve analistler. Ada tıkla, aynı araştırmacının diğer kayıtlarını gör.

CNA kaydında kredi yok.

Varyant adayları

Aynı üründe aynı zafiyet sınıfı, 18 ay içinde. Yama kök nedeni kapatmadıysa kardeş hata burada olur.

Gece hesaplanan ilişki yok.

Zincir adayları

Aynı üründe kimlik doğrulama atlatma ile yetki isteyen bir açık kısa aralıkla yayımlanmış: birlikte kimlik doğrulamasız bir yola dönüşebilir.

—

Bug bounty kapsamı

Bilinen herkese açık program yok.

Kaynak: bounty-targets-data (HackerOne, Bugcrowd, Intigriti, YesWeHack herkese açık listeleri).

Teknik detay

Saldırı koşulları

  • İnternetten erişebilen herkes tetikleyebilir.
  • Hesap ya da parola gerekmez.
  • Bir kullanıcının bağlantıyı açması ya da sayfayı ziyaret etmesi gerekir.
  • Zamanlama ya da yapılandırma gibi özel koşullar gerekir.

Başarılı olursa

Gizlilik
düşük · veriler okunabilir
Bütünlük
yok
Erişilebilirlik
yok
Saldırı vektörü
Ağ
Karmaşıklık
Yüksek
Gereken yetki
Yok
Kullanıcı etkileşimi
Gerekir
Kapsam
Değişmez
Gizlilik etkisi
Düşük
Bütünlük etkisi
Yok
Erişilebilirlik etkisi
Yok

CVSS vektörü

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N

nvd-secondary

Saldırı bağlamı

Bu zafiyet sınıfının (CWE) MITRE CAPEC saldırı desenleri ve ATT&CK teknikleri. Tespit kuralı ve tehdit avı için başlangıç noktası.

Bu CWE için MITRE'de CAPEC/ATT&CK eşlemesi yok.

Değişiklik günlüğü

  1. Düzeltme✗ → ✓

Takip ettiğiniz kayıtlarda bu değişiklikler bildirim olarak da gelir. →

Referanslar

Üretici bildirimleri ve resmî kayıtlar. İstismar/PoC bağlantıları bilinçli olarak dışarıda bırakıldı.

Tüm kayıtlar