CVE-2025-49574
Quarkus potentially leaks data when duplicating a duplicated context
Description
Impact
Vert.x 4.5.12 has changed the semantics of the duplication of duplicated context.
Duplicated context is an object used to propagate data through a processing (synchronous or asynchronous). Each "transaction" or "processing" runs on its own isolated duplicated context.
Initially, duplicating a duplicated context was creating a fresh (empty) new context, meaning that the new duplicated context can be used to managed a separated transaction.
In Vert.x 4.5.12, this semantics has changed, and since the content of the parent duplicated context is copied into the new one, potentially leaking data.
This CVE is especially for Quarkus as Quarkus extensively uses the Vert.x duplicated context to implement context propagation. With the new semantic data from one transaction can leak to the data from another transaction. From a Vert.x point of view, this new semantic clarifies the behavior.
A significant amount of data is stored in the duplicated context, including request scope, security details, and metadata. Duplicating a duplicated context is rather rare and is only done in a few places:
- Quarkus REST Client when using OTel (but it's the same transaction, so no leak)
- Quarkus Messaging connectors
- Quarkus SmallRye Health (same transaction, so no leak)
Patches
After discussion with the Vert.x team, the change will be rolled back in Vert.x 4.x. A new API will be added to Vert.x 5 do distinguish the 2 cases.
Workarounds
When duplicating a duplicated context, the following code can be done to avoid the potential leak:
((ContextInternal) VertxContext.getRootContext(ctx)).duplicate()
This workaround would not be required once the Vert.x version containing the fix will be included. Note that the workaround would still work.
References
This issue have been reported in https://github.com/quarkusio/quarkus/issues/48227.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| io.quarkus » quarkus-vertx | < 3.15.6>= 3.16.0.CR1, < 3.20.2>= 3.21.0.CR1, < 3.24.1 | 3.15.6, 3.20.2, 3.24.1 |
Blast radius
50% of the dependent artifacts (1,362) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 12,809 |
| 2 hops | 35,050 |
| 3 hops | 40,123 |
| 4 hops | 18,903 |
| 5 hops | 2,024 |
| 6 hops | 94 |
Most used dependents
- io.quarkus » quarkus-resteasy1,252 usages
- io.quarkus » quarkus-resteasy-jackson544 usages
- io.quarkus » quarkus-smallrye-health475 usages
- io.quarkus » quarkus-smallrye-openapi423 usages
- io.quarkus » quarkus-rest-jackson386 usages
- io.quarkus » quarkus-rest373 usages
- io.quarkus » quarkus-grpc357 usages
- io.github.open-accelerators » mercury-common242 usages
- io.quarkus » quarkus-resteasy-jsonb231 usages
- org.keycloak » keycloak-services223 usages
- io.quarkus » quarkus-rest-client212 usages
- io.quarkus » quarkus-vertx-http209 usages
- io.quarkus » quarkus-rest-client-jackson199 usages
- io.quarkus » quarkus-vertx-http-deployment193 usages
- io.quarkus » quarkus-vertx-deployment163 usages
Computed from the dependency graph of build 20261126.1706 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2025-49574 | nvd.nist.gov |
| Package | quarkusio/quarkus | github.com |
| Web | quarkusio/quarkus advisory GHSA-9623-mj7j-p9v4 | github.com |
| Web | quarkusio/quarkus issue #48227 | github.com |
| Web | quarkusio/quarkus pull request #48486 | github.com |
| Web | quarkusio/quarkus commit 2b58f59 | github.com |
| Web | quarkusio/quarkus commit 31e8a3b | github.com |
| Web | quarkusio/quarkus commit d1ee57e | github.com |
| Web | quarkusio/quarkus release 3.24.1 | github.com |
