Path Traversal in Quarkiverse Quarkus-Openapi-Generator
CVE-2026-40180
- CVSS v3
- 7.5 High
- Public exploits
- None known
- EPSS
- 0.004 · 35.3th percentile
- Published
- 2026-04-10
What to do
- Fixed in
2.15.0-lts,2.16.0- Affected
- 2 affected products
Quarkus OpenAPI Generator is Quarkus' extensions for generation of Rest Clients and server stubs generation. Prior to 2.16.0 and 2.15.0-lts, the unzip() method in ApicurioCodegenWrapper.java extracts ZIP entries without validating that the resolved file path stays within the intended output directory. At line 101, the destination is constructed as new File(toOutputDir, entry.getName()) and the content is written immediately. A malicious ZIP archive containing entries with path traversal sequences (e.g., ../../malicious.java) would write files outside the target directory. This vulnerability is fixed in 2.16.0 and 2.15.0-lts.
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
- Attack Vector
- Network
AV:N - Attack Complexity
- Low
AC:L - Privileges Required
- None
PR:N - User Interaction
- None
UI:N - Scope
- Unchanged
S:U - Confidentiality
- None
C:N - Integrity
- High
I:H - Availability
- None
A:N
EPSS exploit prediction
EPSS 0.004, 35.3th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Quarkiverse Quarkus-Openapi-Generator — versions < 2.15.0-lts, < 2.16.0
- Quarkiverse Quarkus Openapi Generator — versions 2.15.0
Weakness classification (CWE)
References
- https://github.com/quarkiverse/quarkus-openapi-generator/security/advisories/GHSA-jx2w-vp7f-456q (Exploit, Vendor Advisory)
- https://github.com/quarkiverse/quarkus-openapi-generator/commit/08b406414ff30ed192e86c7fa924e57565534ff0 (Patch)
- https://github.com/quarkiverse/quarkus-openapi-generator/commit/e2a9c629a3df719abc74569a3795c265fd0e1239 (Patch)