{"id":"CVE-2025-49574","aliases":["CVE-2025-49574","GHSA-9623-mj7j-p9v4"],"related":[],"kind":"vulnerability","state":"published","title":"Quarkus potential data leak when duplicating a duplicated context","summary":"Quarkus is a Cloud Native, (Linux) Container First framework for writing Java applications. In versions prior to 3.24.1, 3.20.2, and 3.15.6, there is a potential data leak when duplicating a duplicated context. 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. This issue has been patched in version 3.24.1, 3.20.2, and 3.15.6.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Quarkus is a Cloud Native, (Linux) Container First framework for writing Java applications. In versions prior to 3.24.1, 3.20.2, and 3.15.6, there is a potential data leak when duplicating a duplicated context. 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. This issue has been patched in version 3.24.1, 3.20.2, and 3.15.6.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nVert.x 4.5.12 has changed the semantics of the duplication of duplicated context.\n\nDuplicated 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.\n\nInitially, 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.\n\nIn 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. \n\nThis 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. \n\nA 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:\n\n- Quarkus REST Client when using OTel (but it's the same transaction, so no leak)\n- Quarkus Messaging connectors\n- Quarkus SmallRye Health (same transaction, so no leak)\n\n\n\n### Patches\n\nAfter 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.\n\n### Workarounds\n\nWhen duplicating a duplicated context, the following code can be done to avoid the potential leak:\n\n```java\n((ContextInternal) VertxContext.getRootContext(ctx)).duplicate()\n```\n\nThis workaround would not be required once the Vert.x version containing the fix will be included. Note that the workaround would still work. \n\n\n### References\n\nThis issue have been reported in https://github.com/quarkusio/quarkus/issues/48227.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Quarkus es un framework nativo de la nube (Linux) basado en contenedores para la escritura de aplicaciones Java. En versiones anteriores a la 3.24.0, existía una posible fuga de datos al duplicar un contexto duplicado. Quarkus utiliza ampliamente el contexto duplicado de Vert.x para implementar la propagación del contexto. Con la nueva semántica, los datos de una transacción pueden filtrarse a los de otra. Desde la perspectiva de Vert.x, esta nueva semántica clarifica el comportamiento. Una cantidad significativa de datos se almacena en el contexto duplicado, incluyendo el alcance de la solicitud, los detalles de seguridad y los metadatos. Duplicar un contexto duplicado es bastante inusual y solo ocurre en algunos lugares. Este problema se ha corregido en la versión 3.24.0.","source":"nvd"}],"published":"2025-06-23T18:53:22.000Z","modified":"2026-09-10T03:50:25.320Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","score":6.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","score":6.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","score":6.4,"rating":"MEDIUM"}],"cwes":["CWE-668"],"affected":[{"ranges":[{"version":">= 3.21.0.CR1, < 3.24.1","status":"affected"},{"version":">= 3.16.0.CR1, < 3.20.2","status":"affected"},{"version":"< 3.15.6","status":"affected"}],"vendor":"quarkusio","product":"quarkus","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.15.6"}],"ecosystem":"Maven","package":"io.quarkus:quarkus-vertx","purl":"pkg:maven/io.quarkus/quarkus-vertx","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.16.0.CR1","status":"affected","fixed":"3.20.2"}],"ecosystem":"Maven","package":"io.quarkus:quarkus-vertx","purl":"pkg:maven/io.quarkus/quarkus-vertx","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.21.0.CR1","status":"affected","fixed":"3.24.1"}],"ecosystem":"Maven","package":"io.quarkus:quarkus-vertx","purl":"pkg:maven/io.quarkus/quarkus-vertx","source":"ghsa"}],"references":[{"url":"https://github.com/quarkusio/quarkus/security/advisories/GHSA-9623-mj7j-p9v4","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/quarkusio/quarkus/issues/48227","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/quarkusio/quarkus/pull/48486","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/quarkusio/quarkus/commit/2b58f59f4bf0bae7d35b1abb585b65f2a66787d1","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/quarkusio/quarkus/commit/31e8a3bfcf4e223788615d5ce25eb929ca251275","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/quarkusio/quarkus/commit/d1ee57e7b826872b6355cfec0ae13465840e232c","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/quarkusio/quarkus/releases/tag/3.24.1","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-49574","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/quarkusio/quarkus","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-06-24T13:32:59.683Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-49574","url":"https://www.cve.org/CVERecord?id=CVE-2025-49574","licence":"CVE Terms of Use","modified":"2025-12-22T18:40:19.531Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9623-mj7j-p9v4","url":"https://github.com/advisories/GHSA-9623-mj7j-p9v4","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:25.320Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-49574","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-49574","licence":"Public domain","modified":"2026-06-17T09:31:30.923Z"}],"updatedAt":"2026-11-25T22:58:59.536Z","epss":{"score":0.00293,"percentile":0.23587,"date":"2026-12-01T12:00:22.000Z"}}