CVE-2026-40180

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:quarkiverse:quarkus_openapi_generator:*:*:*:*:*:*:*:*
cpe:2.3:a:quarkiverse:quarkus_openapi_generator:2.15.0:*:*:*:-:*:*:*

History

26 Oct 2026, 21:10

Type Values Removed Values Added
Summary
  • (es) Quarkus OpenAPI Generator son las extensiones de Quarkus para la generación de clientes Rest y la generación de stubs de servidor. Antes de las versiones 2.16.0 y 2.15.0-lts, el método unzip() en ApicurioCodegenWrapper.java extrae entradas ZIP sin validar que la ruta de archivo resuelta permanezca dentro del directorio de salida previsto. En la línea 101, el destino se construye como new File(toOutputDir, entry.getName()) y el contenido se escribe inmediatamente. Un archivo ZIP malicioso que contenga entradas con secuencias de salto de ruta (por ejemplo, .. / .. / malicious.java) escribiría archivos fuera del directorio objetivo. Esta vulnerabilidad está corregida en las versiones 2.16.0 y 2.15.0-lts.

Information

Published : 2026-04-10 20:16

Updated : 2026-10-26 21:10


NVD link : CVE-2026-40180

Mitre link : CVE-2026-40180

CVE.ORG link : CVE-2026-40180


JSON object : View

Products Affected

quarkiverse

  • quarkus_openapi_generator
CWE
CWE-22

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')