CVE-2026-39828
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedWhen an SSH server authentication callback returned PartialSuccessError with non-nil Permissions, those permissions were silently discarded, potentially dropping certificate restrictions such as force-command after a second factor succeeded. Returning non-nil Permissions with PartialSuccessError now results in a connection error.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · moderate confidenceIn SSH server authentication, when a callback returned PartialSuccessError with non-nil Permissions, those permissions were silently discarded. This could drop certificate restrictions like force-command after a second authentication factor succeeded, potentially allowing attackers to bypass command restrictions. The fix now errors on connection if non-nil Permissions are returned with PartialSuccessError.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data< 0.52.0CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- Low
- Availability
- Low
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify golang.org/x/crypto versionRun 'go list -m golang.org/x/crypto' or inspect the go.mod file to find the version of golang.org/x/crypto being usedAffected if The version is below 0.52.0 (e.g., 0.51.0, 0.50.0, etc.)
-
Locate SSH server authentication callbacksSearch the codebase for custom implementations of ServerAuthCallback or UserAuthCallback handlers, typically passed to ssh.ServerConfigAffected if Custom authentication callback functions are defined and registered with the SSH server configuration
-
Find PartialSuccessError usageSearch for references to 'PartialSuccessError' in the authentication callback code, often imported from golang.org/x/crypto/sshAffected if The code contains PartialSuccessError constructor calls within authentication logic
-
Check Permissions field in PartialSuccessError returnsExamine any PartialSuccessError instantiation to see if a non-nil Permissions struct is passed as the second argument (e.g., PartialSuccessError(permissions)), and review if these permissions contain restrictions like ForceCommand, CriticalOptions, or SourceAddressAffected if PartialSuccessError is returned with a non-nil Permissions argument containing certificate restrictions
You are affected if golang.org/x/crypto version is below 0.52.0 AND your SSH server implements custom authentication callbacks that return PartialSuccessError with non-nil Permissions, as those restrictions would have been silently dropped.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped0.52.0
Upgrade to the patched version of the SSH server library (golang.org/x/crypto/ssh) that validates Permissions are nil when PartialSuccessError is returned. Review authentication callbacks to ensure they comply with the expected behavior.
golang.org/x/crypto v0.52.0
- Identify all uses of golang.org/x/crypto/ssh in your project that handle PartialSuccessError in authentication callbacks
- Review code to check if any PartialSuccessError returns include non-nil Permissions
- If non-nil Permissions are returned with PartialSuccessError, refactor the authentication logic to either return nil Permissions or handle the two-factor flow differently
- Update the dependency to golang.org/x/crypto version v0.52.0 or later using: go get golang.org/x/[email protected]
- Run tests to verify authentication behavior works as expected, especially multi-factor authentication flows
- Redeploy the updated application
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation6.0 h
- Testing6.0 h
- Review / QA3.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,992.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-39828 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sources- pkg.go.dev
- go.dev
- go.dev
- groups.google.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- bugzilla.redhat.com
- security.access.redhat.com
- nvd.nist.gov
Practitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-39828 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data