High severity7.5NVD Advisory· Published Feb 26, 2025· Updated Apr 20, 2026
CVE-2025-1634
CVE-2025-1634
Description
A flaw was found in the quarkus-resteasy extension, which causes memory leaks when client requests with low timeouts are made. If a client request times out, a buffer is not released correctly, leading to increased memory usage and eventual application crash due to OutOfMemoryError.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
io.quarkus:quarkus-resteasyMaven | >= 3.16.0.CR1, < 3.19.1 | 3.19.1 |
io.quarkus:quarkus-resteasyMaven | >= 3.9.0.CR1, < 3.15.3.1 | 3.15.3.1 |
io.quarkus:quarkus-resteasyMaven | < 3.8.6.1 | 3.8.6.1 |
Patches
430d949a4c54bMerge pull request #46425 from gsmet/fix-re-os
1 file changed · +11 −1
extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/VertxHttpResponse.java+11 −1 modified@@ -138,8 +138,18 @@ private void transformHeadersList(final String key, final List<Object> valueList public void finish() throws IOException { checkException(); - if (finished || response.ended() || response.closed()) + + if (finished || response.ended() || response.closed()) { + if (os != null) { + try { + os.close(); + os = null; + } catch (Exception ignored) { + + } + } return; + } try { if (os != null) { os.close(); // this will end() vertx response
70ffbd00d71dMerge pull request #46426 from gsmet/fix-re-os-3.15
1 file changed · +11 −1
extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/VertxHttpResponse.java+11 −1 modified@@ -138,8 +138,18 @@ private void transformHeadersList(final String key, final List<Object> valueList public void finish() throws IOException { checkException(); - if (finished || response.ended() || response.closed()) + + if (finished || response.ended() || response.closed()) { + if (os != null) { + try { + os.close(); + os = null; + } catch (Exception ignored) { + + } + } return; + } try { if (os != null) { os.close(); // this will end() vertx response
80b8eb41678cAlways close OutputStream in RESTEasy Classic
1 file changed · +11 −1
extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/VertxHttpResponse.java+11 −1 modified@@ -138,8 +138,18 @@ private void transformHeadersList(final String key, final List<Object> valueList public void finish() throws IOException { checkException(); - if (finished || response.ended() || response.closed()) + + if (finished || response.ended() || response.closed()) { + if (os != null) { + try { + os.close(); + os = null; + } catch (Exception ignored) { + + } + } return; + } try { if (os != null) { os.close(); // this will end() vertx response
291296befabfAlways close OutputStream in RESTEasy Classic
1 file changed · +11 −1
extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/VertxHttpResponse.java+11 −1 modified@@ -138,8 +138,18 @@ private void transformHeadersList(final String key, final List<Object> valueList public void finish() throws IOException { checkException(); - if (finished || response.ended() || response.closed()) + + if (finished || response.ended() || response.closed()) { + if (os != null) { + try { + os.close(); + os = null; + } catch (Exception ignored) { + + } + } return; + } try { if (os != null) { os.close(); // this will end() vertx response
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
18- github.com/advisories/GHSA-4fwr-mh5q-hchhghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-1634ghsaADVISORY
- access.redhat.com/errata/RHSA-2025:12511nvdWEB
- access.redhat.com/errata/RHSA-2025:1884nvdWEB
- access.redhat.com/errata/RHSA-2025:1885nvdWEB
- access.redhat.com/errata/RHSA-2025:2067nvdWEB
- access.redhat.com/errata/RHSA-2025:23417nvdWEB
- access.redhat.com/errata/RHSA-2025:9922nvdWEB
- access.redhat.com/security/cve/CVE-2025-1634nvdWEB
- bugzilla.redhat.com/show_bug.cginvdWEB
- github.com/quarkusio/quarkus/commit/291296befabf659b71acbfc6e03a12bd09a920f8ghsaWEB
- github.com/quarkusio/quarkus/commit/30d949a4c54ba1057738849a804d2329c09e57beghsaWEB
- github.com/quarkusio/quarkus/commit/70ffbd00d71d43afa7eade32d6ed586cf927c237ghsaWEB
- github.com/quarkusio/quarkus/commit/80b8eb41678cdccb46e964dc324d048a5ef00f4bghsaWEB
- github.com/quarkusio/quarkus/issues/46412nvdWEB
- github.com/quarkusio/quarkus/pull/46419nvdWEB
- github.com/quarkusio/quarkus/pull/46425ghsaWEB
- github.com/quarkusio/quarkus/pull/46426ghsaWEB
News mentions
0No linked articles in our index yet.