Spring GrpcFramework / library · VMware

CVE-2026-40968

HIGH · 8.8 CVSS v3.1 Published 2026-04-28
Fix available
A fix is available. Upgrade to 1.0.3 or later.
See remediation →
94/100
Remediation priority · Urgent
Remotely reachable Zero-click

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 · unedited
When an authenticated user is denied access to a gRPC method, their authenticated identity remains bound to the gRPC worker thread and can be inherited by a subsequent unauthenticated request on the same thread. This may allow the subsequent user to gain escalated permissions. Affected versions: Spring gRPC: 1.0.0 - 1.0.2 (fixed in 1.0.3). Older, unsupported versions are also affected.

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 · high confidence

This is a thread-local identity leakage vulnerability in Spring gRPC where an authenticated user's identity persists on a worker thread after a denied gRPC method call. When a subsequent unauthenticated request is processed by the same thread, it inherits the previous user's authenticated identity, resulting in privilege escalation.

MitigationUpgrade Spring gRPC to version 1.0.3 or later, which includes the fix to properly clear thread-local identity state after request completion. Verify authentication/authorization behavior after the upgrade.

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
Spring GrpcFramework / library
Affected:< 1.0.3

CVSS 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
High
Integrity
High
Availability
High

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

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 checks

Work through these to decide whether this CVE applies to you.

  1. Identify Spring gRPC dependency
    Search project dependencies (pom.xml, build.gradle, or lib folder) for spring-grpc, grpc-spring-boot-starter, or similar Spring gRPC libraries
    Affected if Spring gRPC library is present in the project dependencies
  2. Determine Spring gRPC version
    Check the version of the Spring gRPC dependency in your build configuration or compiled library JAR (e.g., spring-grpc-1.x.jar). Compare against the affected range: versions before 1.0.3
    Affected if The installed Spring gRPC version is lower than 1.0.3
  3. Verify gRPC authentication is enabled
    Inspect application configuration files (application.yml, application.properties) or Java configuration classes for gRPC server settings. Look for security, authentication, or authorization configuration blocks under grpc.server or similar namespace
    Affected if gRPC server has authentication or authorization mechanisms configured and enabled
  4. Check for thread pool usage in gRPC service
    Review gRPC server thread pool configuration. Look for custom Executor or thread pool bean definitions used by gRPC servers. Inspect whether requests can be processed by reused worker threads
    Affected if gRPC service uses a shared thread pool where worker threads can handle multiple sequential requests (standard gRPC configuration)
  5. Confirm thread-local identity storage
    Search codebase for ThreadLocal or WrappedThreadLocal usage related to authentication, security context, or user identity within gRPC request handling code. Inspect authentication filter or interceptor implementations
    Affected if Application uses thread-local storage to maintain authenticated user identity during gRPC request processing

User is affected if Spring gRPC version is below 1.0.3 AND the application uses gRPC with authentication enabled and processes requests on shared worker threads, allowing stale thread-local identity to persist across requests.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

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 · scoped
Upgrade available Upgrade to 1.0.3 or later
Fixed in 1.0.3
Interim mitigation

Upgrade Spring gRPC to version 1.0.3 or later, which includes the fix to properly clear thread-local identity state after request completion. Verify authentication/authorization behavior after the upgrade.

Recommended fix High confidence

1.0.3

  1. Update the Spring Grpc dependency in your build configuration (Maven pom.xml or Gradle build.gradle) to version 1.0.3 or later
  2. For Maven, change the version in the dependency management section to: <groupId>org.springframework.grpc</groupId><artifactId>spring-grpc</artifactId><version>1.0.3</version>
  3. For Gradle, update to: implementation 'org.springframework.grpc:spring-grpc:1.0.3'
  4. Rebuild and redeploy your application to apply the updated dependency
  5. Verify that gRPC authorization checks properly clear authentication context after denied requests

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Spring Grpc Scoped from the published advisory
  • Consultation3.0 h
  • Implementation2.0 h
  • Testing6.0 h
  • Review / QA3.0 h
14.0 hours of engineering $2,400
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,840.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-40968 — 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

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-40968 in production — separate from our analysis above.

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.

What this is

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.

What belongs here
  • 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