Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. golang.org/x/crypto/ssh/agent
  4. ›
  5. CVE-2026-39833

CVE-2026-39833: golang.org/x/crypto/ssh/agent doesn't enforce invoking key constraints

June 25, 2026

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.

References

  • github.com/advisories/GHSA-jppx-rxg9-jmrx
  • go.dev/cl/778640
  • go.dev/cl/778641
  • go.dev/issue/79436
  • groups.google.com/g/golang-announce/c/a082jnz-LvI
  • nvd.nist.gov/vuln/detail/CVE-2026-39833
  • pkg.go.dev/vuln/GO-2026-5005

Code Behaviors & Features

Detect and mitigate CVE-2026-39833 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.52.0

Fixed versions

  • 0.52.0

Solution

Upgrade to version 0.52.0 or above.

Impact 9.1 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-862: Missing Authorization

Source file

go/golang.org/x/crypto/ssh/agent/CVE-2026-39833.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 13 Jul 2026 12:19:45 +0000.