CVE Catalog
EnglishPolski(English translation not available - showing Polish)

CVE-2025-59936

Critical
Published: Translated: NVD NIST

Summary

W wersjach wcześniejszych niż 11.0.2, w get-jwks występuje podatność, która może prowadzić do zanieczyszczenia pamięci podręcznej w mechanizmie pobierania kluczy JWKS. Problem polega na tym, że walidacja roszczenia iss (issuer) odbywa się dopiero po pobraniu kluczy z pamięci podręcznej, co pozwala na ponowne wykorzystanie kluczy z nieoczekiwanego źródła.

Risk Assessment

Ta podatność umożliwia atakującemu stworzenie pary JWT, co może prowadzić do ominięcia walidacji issuer. W przypadku wykorzystania tej luki, złośliwy aktor może uzyskać dostęp do systemu, co stwarza poważne zagrożenie dla bezpieczeństwa organizacji.

Recommendation

Zaleca się aktualizację do wersji 11.0.2 lub nowszej, aby usunąć tę podatność. Dodatkowo, warto przeprowadzić audyt mechanizmów walidacji kluczy i roszczeń w aplikacji.

Original NVD description (English source)

get-jwks contains fetch utils for JWKS keys. In versions prior to 11.0.2, a vulnerability in get-jwks can lead to cache poisoning in the JWKS key-fetching mechanism. When the iss (issuer) claim is validated only after keys are retrieved from the cache, it is possible for cached keys from an unexpected issuer to be reused, resulting in a bypass of issuer validation. This design flaw enables a potential attack where a malicious actor crafts a pair of JWTs, the first one ensuring that a chosen public key is fetched and stored in the shared JWKS cache, and the second one leveraging that cached key to pass signature validation for a targeted iss value. The vulnerability will work only if the iss validation is done after the use of get-jwks for keys retrieval. This issue has been patched in version 11.0.2.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS