CRITICAL🇵🇱 Wersja polska

CVE-2026-39833

CVSS 9.1pub. 2026-05-22upd. 2026-08-11

The in-memory keyring returned by NewKeyring() silently accepted keys with the ConfirmBeforeUse constraint but never enforced it. The key would sign without any confirmation prompt, with no indication to the caller that the constraint was not in effect. NewKeyring() now returns an error when unsupported constraints are requested.

🤖 AI Analysis
How it works

The NewKeyring() function creates an in-memory keyring that should enforce the ConfirmBeforeUse restriction — requiring explicit confirmation before using a key for signing. In the vulnerable version, this restriction was silently ignored: the keyring would accept keys with this restriction without reporting an error, and then perform signing operations without any prompt. The calling code had no way to detect this lack of enforcement because no error or warning was returned. After the patch is applied, NewKeyring() returns an error when unsupported restrictions are passed.

Impact

An attacker or malicious code that gains access to the keyring can cause it to sign data or perform operations without the required user confirmation, bypassing the access control provided by the ConfirmBeforeUse restriction. This can lead to unauthorized use of cryptographic keys and violation of integrity and confidentiality of protected resources.

Mitigation & patch

Apply patches available from the vendor according to references (including https://go.dev/cl/778640 and https://go.dev/cl/778641). It is recommended to update the golang.org/x/crypto library to a version containing the fix described in GO-2026-5005.

Who is affected

Golang Crypto library — versions indicated in vendor references (golang.org/x/crypto); the vulnerability affects applications using NewKeyring() with the ConfirmBeforeUse restriction.

Analysis generated by Claude AI (Anthropic) based on NVD data. Always verify with vendor.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
  • Golang Crypto

    APP
    Golang
    < 0.52.0
🔵
CHECK WITH VENDOR
No clear patch data available. Check vendor references.
CWE
References

Related vulnerabilities

CVE-2026-39832CRITICAL9.1PL ✓same product

Golang Crypto: pominięcie ograniczeń przy przekazywaniu kluczy do zdalnego agenta SSH

CVE-2026-39834CRITICAL9.1PL ✓same product

Integer overflow w Golang Crypto SSH — nieskończona pętla przy zapisie >4GB

CVE-2026-39831CRITICAL9.1PL ✓same product

Brak weryfikacji flagi User Presence w FIDO/U2F w Golang Crypto

CVE-2026-39830CRITICAL9.1PL ✓same product

Golang Crypto: resource leak przez niezamawiane odpowiedzi SSH global request

CVE-2026-42508CRITICAL9.1PL ✓same product

Nieprawidłowa weryfikacja unieważnionych kluczy CA w Golang Crypto