# CVE-2026-40180: Zip Slip Path Traversal in quarkus-openapi-generator ApicurioCodegenWrapper class

- Severity: High 7.7 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-08T19:14:32.000Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-jx2w-vp7f-456q
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- quarkiverse quarkus-openapi-generator: < 2.15.0-lts; < 2.16.0
- io.quarkiverse.openapi.generator:quarkus-openapi-generator (Maven): before 2.16.0
- quarkiverse quarkus_openapi_generator: before 2.15.0; 2.15.0

## Every score

- GitHub_M: CVSS:4.0 7.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/quarkiverse/quarkus-openapi-generator/security/advisories/GHSA-jx2w-vp7f-456q> (exploit, vendor-advisory, web)
- <https://github.com/quarkiverse/quarkus-openapi-generator/commit/08b406414ff30ed192e86c7fa924e57565534ff0> (patch, web)
- <https://github.com/quarkiverse/quarkus-openapi-generator/commit/e2a9c629a3df719abc74569a3795c265fd0e1239> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40180> (advisory)
- <https://github.com/quarkiverse/quarkus-openapi-generator> (package)

## Sources

- CVE List: [CVE-2026-40180](https://www.cve.org/CVERecord?id=CVE-2026-40180), CVE Terms of Use, modified 2026-04-13
- GitHub Advisory Database: [GHSA-jx2w-vp7f-456q](https://github.com/advisories/GHSA-jx2w-vp7f-456q), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-40180](https://nvd.nist.gov/vuln/detail/CVE-2026-40180), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40180 · Whole record: https://cve.day/CVE-2026-40180.json · Rebuilt by cve.day 2026-11-25T22:59:18.546Z
