Junglewise Threat Intelligence

CVE-2026-40180: Quarkiverse Quarkus OpenAPI Generator path traversal in ApicurioCodegenWrapper

CVE-2026-40180 · Severity: high · CVSS 7.5 · Published 2026-04-10

Vendors: Maven.

Executive brief

The Quarkus OpenAPI Generator, a tool used to automatically create web service code from API definitions, is vulnerable to a 'Zip Slip' attack. An attacker who can provide a malicious ZIP file to the tool during the software build process can write files to unauthorized locations on the developer's machine or build server. This could lead to the injection of malicious code into software projects or the compromise of the automated build pipeline.

Technical details

A path traversal vulnerability (Zip Slip) exists in the unzip() method of ApicurioCodegenWrapper.java within the Quarkus OpenAPI Generator. The component fails to validate that ZIP entry paths, such as those containing '../' sequences, remain within the intended output directory before writing them to disk. An attacker capable of serving a crafted ZIP archive from a compromised or intercepted Apicurio registry endpoint can achieve arbitrary file writes on the build system. This can result in source code overwriting or malicious code injection during the build/codegen phase. The issue is resolved in versions 2.16.0 and 2.15.0-lts by implementing path normalization and validation.

Affected products

  • Quarkiverse Quarkus OpenAPI Generator < 2.16.0, < 2.15.0-lts

Timeline

  • 2026-04-07: advisory: GitHub Security Advisory published
  • 2026-04-10: disclosed: CVE-2026-40180 published

References

Related threats