Zip Slip Path Traversal in quarkus-openapi-generator ApicurioCodegenWrapper class
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| quarkiverse | quarkus-openapi-generator | before 2.15.0-lts; before 2.16.0 | 2.15.0-lts, 2.16.0 | Patch available | CNA |
| — | io.quarkiverse.openapi.generator:quarkus-openapi-generator (Maven) | before 2.16.0 | 2.16.0 | Patch available | GHSA-jx2w-vp7f-456q |
- quarkus-openapi-generator Vendorquarkiverse Affected before 2.15.0-lts; before 2.16.0 Fixed in 2.15.0-lts, 2.16.0 Patch available CNA
- io.quarkiverse.openapi.generator:quarkus-openapi-generator (Maven) Vendor— Affected before 2.16.0 Fixed in 2.16.0 Patch available GHSA-jx2w-vp7f-456q
CPE configurations NVD · 2
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:quarkiverse:quarkus_openapi_generator:*:*:*:*:*:*:*:* | before 2.15.0 | Vulnerable | quarkiverse |
| cpe:2.3:a:quarkiverse:quarkus_openapi_generator:2.15.0:*:*:*:-:*:*:* | 2.15.0 | Vulnerable | quarkiverse |
- cpe:2.3:a:quarkiverse:quarkus_openapi_generator:*:*:*:*:*:*:*:* Versions before 2.15.0 Vulnerable ·quarkiverse
- cpe:2.3:a:quarkiverse:quarkus_openapi_generator:2.15.0:*:*:*:-:*:*:* Versions 2.15.0 Vulnerable ·quarkiverse
Remediation
- Fix · CNA quarkus-openapi-generator (quarkiverse) Fixed in 2.15.0-lts, 2.16.0
- Fix · GHSA-jx2w-vp7f-456q io.quarkiverse.openapi.generator:quarkus-openapi-generator (Maven) Fixed in 2.16.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-40180
- 2026-10-03 Alias added: GHSA-jx2w-vp7f-456q
References
Exploit 1
Patch 2
Sources
- CVE-2026-40180 · CVE Program
- CVE-2026-40180 · NVD
- FIRST EPSS
- GHSA-jx2w-vp7f-456q · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences