Skip to main content

quarkus-openapi-generator CVE-2026-42333

MEDIUM
Information Exposure (CWE-200)
2026-05-04 https://github.com/quarkiverse/quarkus-openapi-generator GHSA-fr8f-rwjx-f32v
6.3
CVSS 4.0 · Vendor: https://github.com/quarkiverse/quarkus-openapi-generator
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Identify overlapping OpenAPI paths
  2. Delivery
    Deploy vulnerable generated client
  3. Exploit
    Invoke unprotected operation with crafted path parameters
  4. Install
    Generated regex matches protected operation
  5. C2
    Credentials attached to request
  6. Execute
    Leak token to unintended endpoint
  7. Impact
    Reuse token for privilege escalation or further attacks

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK

2 techniques across 2 tactics: Collection, Discovery

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The vulnerability is triggered when all of the following conditions are met: (1) the application uses quarkus-openapi-generator version < 2.16.0-lts or = 2.16.0 to generate REST client code; (2) the OpenAPI specification defines at least two operations with the same HTTP method (e.g., both GET) whose paths overlap under the vulnerable regex-matching scheme (e.g., /repos/{ref} and /repos/{owner}/{repo}); (3) at least one of those operations is protected by a security scheme (bearer, OAuth, API key, or basic authentication); (4) the other operation is either unprotected or protected by a different scheme; (5) the generated client is used to invoke the unprotected or differently-protected operation with path parameters that would match the protected operation's pattern under .* semantics (e.g., calling getOwnerRepo with parameters that produce /repos/foo/bar, which matches /repos/{ref} where {ref} = foo/bar). No special network conditions, authentication as the client, or configuration changes are required-normal generated-code usage in the application's process is sufficient. The client must make an outbound request to the API endpoint; if the client is never instantiated or never invoked, the leak does not occur. This means vulnerable generated code in dependencies that are never executed poses no immediate risk, but represents a latent supply-chain threat.

Impact

This is a high-impact information disclosure vulnerability despite the absence of a CVSS vector. EPSS and CVSS metrics are not provided, but the risk is substantial: the vulnerability enables credential leakage from protected operations to unprotected or lower-privilege operations on the same service. The attack vector is network-based (clients make outbound HTTP requests), attack complexity is low (any caller of the generated client triggers it), and no authentication or user interaction is required-the flaw is purely in the generated code's authentication logic. The presence of a functional proof-of-concept demonstrates full exploitability. The real-world impact depends on API design: services with overlapping path structures and mixed authentication requirements (e.g., /repos/{ref} protected, /repos/{owner}/{repo} public) will leak credentials; services with fully distinct path prefixes may avoid triggering the bug. This is not a zero-day-the vulnerability was reported through GitHub's security advisory process and vendors have had time to patch. The vulnerability affects the code-generation layer, meaning every client generated from a vulnerable version inherits the flaw, making this a transitive supply-chain risk. Unlike many path-traversal issues, this does not require special encoding or manipulation; normal client usage is sufficient. Risk is elevated for microservice ecosystems where internal and external endpoints share the same domain/port.

Exploit ScenarioDerived

An attacker or unauthorized service observes that a client application uses a Quarkus-generated REST client to call multiple API endpoints on the same backend. The attacker identifies two operations with overlapping path patterns, such as a protected endpoint GET /repos/{ref} (protected by bearer token) and a public endpoint GET /repos/{owner}/{repo}. The attacker crafts a malicious request to the unprotected endpoint by calling the generated client method for getOwnerRepo(owner='foo', repo='bar'), which produces a request to /repos/foo/bar. Due to the overly broad regex {ref} → .* conversion, the authentication filter matches this path against the protected /repos/{ref} operation and automatically attaches the bearer token intended only for the protected endpoint. The attacker's service logs the incoming request including the Authorization header, capturing the leaked token. This token can then be replayed to invoke protected operations or sold to other attackers. The PoC demonstrates this with a local HTTP server that logs received headers.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 04, 2026

Quarkus OpenAPI Generator versions before 2.16.0-lts and 2.16.0 (fixed in 2.17.0) send authentication credentials to unintended API endpoints due to overly broad path-parameter regex matching. The generated authentication filter treats OpenAPI path-template placeholders like {param} as .* patterns, allowing a single parameter to consume forward slashes and match multiple distinct operations. This causes bearer tokens, OAuth tokens, API keys, and basic credentials configured for one protected operation to be leaked to different, unprotected operations on the same service when a client invokes them through normal generated-code paths. No public exploit code has been identified, but the vulnerability is trivial to trigger and affects all authentication schemes relying on the shared path-matching logic.

RemediationAI

Upgrade quarkus-openapi-generator to version 2.16.0-lts (if on the LTS branch) or 2.17.0 or later (for the main release branch). Update the dependency version in pom.xml and rebuild the project to regenerate client code with the corrected path-matching logic. For applications already deployed with vulnerable generated clients, there is no runtime workaround-regeneration and redeployment are required. If immediate upgrade is blocked, a temporary compensating control is to restrict outbound access from the application to only the API server's base URL and specific endpoints, and to employ network-level credential filtering (e.g., WAF/proxy rules that detect and block leaked credentials in downstream requests), though this is fragile and does not address the root cause. Additionally, review OpenAPI specifications for overlapping path patterns (e.g., /repos/{ref} and /repos/{owner}/{repo}) that could trigger the bug; where possible, redesign endpoints to use completely distinct path prefixes to minimize the attack surface even with the vulnerable matcher. The advisory is available at https://github.com/quarkiverse/quarkus-openapi-generator/security/advisories/GHSA-fr8f-rwjx-f32v. Regeneration of client code is essential because the flaw is baked into the generated authentication filter at build time, not a library dependency that can be patched post-hoc.

Affected Packages

maven io.quarkiverse.openapi.generator:quarkus-openapi-generator fix: 2.16.0-lts, 2.17.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in maven

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The Quarkus OpenAPI Generator is a Maven plugin (io.quarkiverse.openapi.generator:quarkus-openapi-generator) that generates REST client code from OpenAPI specifications. At runtime, the generated authentication filter matches HTTP request paths against the set of OpenAPI operations that require credentials to decide whether to attach a security header. The flaw resides in the path-template regex conversion logic: OpenAPI path parameters specified as {param} are naively converted to .* patterns in regular expressions. This permits a single regex segment to consume path separators (/), causing /repos/{ref} to incorrectly match /repos/foo/bar even though /repos/{owner}/{repo} is a distinct operation with different semantics. The root cause is a failure to anchor or properly constrain the regex segments, violating the principle that OpenAPI path parameters should match single path segments only. This affects the shared authentication path-matching layer used by bearer token, OAuth 2.0, API key, and HTTP Basic authentication schemes. The issue is reachable through normal client instantiation without code modification, making it a supply-chain risk for any application using generated clients from affected versions.

Know when Java gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/quarkiverse/quarkus-openapi-generator) PRIMARY 6.3 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/quarkiverse/quarkus-openapi-generator) · only source for this CVE.

CVSS VectorVendor: https://github.com/quarkiverse/quarkus-openapi-generator

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
May 09, 2026 - 20:22 NVD
6.3 (MEDIUM)

DescriptionCVE.org

Summary

The generated authentication filter matches OpenAPI path templates too broadly when deciding whether to attach credentials. A security scheme configured for one operation can therefore be applied to a different same-method operation whose path only partially resembles the protected template, causing bearer tokens, API keys, or basic credentials to be sent to unintended endpoints.

Details

The runtime authentication layer selects credentials by comparing the outgoing request path and method against the set of protected OpenAPI operations. Path-template matching treats {param} placeholders as .*, which incorrectly allows a single path parameter to consume /.

As a result, a protected path such as /repos/{ref} also matches /repos/foo/bar, even though /repos/{owner}/{repo} is a different operation. When a client invokes the unprotected operation, the authentication filter still concludes that the protected operation matched and attaches its credentials.

This affects authentication providers that rely on the shared path-matching logic, including bearer, OAuth, API-key, and basic authentication. The issue is reachable through normal generated-client usage and does not require modifying generated code.

PoC

bash
mkdir -p /tmp/qoag-poc/src/main/java/org/acme
mkdir -p /tmp/qoag-poc/src/main/resources
mkdir -p /tmp/qoag-poc/src/main/openapi

cat > /tmp/qoag-poc/pom.xml <<'EOF'
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.acme</groupId>
  <artifactId>qoag-poc</artifactId>
  <version>1.0.0</version>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <maven.compiler.release>17</maven.compiler.release>
    <quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
    <quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
    <quarkus.platform.version>3.34.3</quarkus.platform.version>
    <qoag.version>2.16.0</qoag.version>
  </properties>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>${quarkus.platform.group-id}</groupId>
        <artifactId>${quarkus.platform.artifact-id}</artifactId>
        <version>${quarkus.platform.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <dependencies>
    <dependency>
      <groupId>io.quarkiverse.openapi.generator</groupId>
      <artifactId>quarkus-openapi-generator</artifactId>
      <version>${qoag.version}</version>
    </dependency>
    <dependency>
      <groupId>io.quarkus</groupId>
      <artifactId>quarkus-rest</artifactId>
    </dependency>
    <dependency>
      <groupId>io.quarkus</groupId>
      <artifactId>quarkus-rest-client-jackson</artifactId>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>io.quarkus</groupId>
        <artifactId>quarkus-maven-plugin</artifactId>
        <version>${quarkus.platform.version}</version>
        <extensions>true</extensions>
        <executions>
          <execution>
            <goals>
              <goal>build</goal>
              <goal>generate-code</goal>
              <goal>generate-code-tests</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.14.0</version>
        <configuration>
          <parameters>true</parameters>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
EOF

cat > /tmp/qoag-poc/src/main/openapi/repro.yaml <<'EOF'
openapi: 3.0.3
info:
  title: repro
  version: 1.0.0

paths:
  /repos/{ref}:
    get:
      operationId: getRef
      parameters:
        - in: path
          name: ref
          required: true
          schema:
            type: string
      security:
        - bearerAuth: []
      responses:
        "200":
          description: ok
          content:
            text/plain:
              schema:
                type: string

  /repos/{owner}/{repo}:
    get:
      operationId: getOwnerRepo
      parameters:
        - in: path
          name: owner
          required: true
          schema:
            type: string
        - in: path
          name: repo
          required: true
          schema:
            type: string
      responses:
        "200":
          description: ok
          content:
            text/plain:
              schema:
                type: string

components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
EOF

cat > /tmp/qoag-poc/src/main/resources/application.properties <<'EOF'
quarkus.http.port=8081
quarkus.openapi-generator.codegen.default-security-scheme=bearerAuth
quarkus.openapi-generator.codegen.spec.repro_yaml.base-package=org.acme.repro
quarkus.rest-client.repro_yaml.url=http://127.0.0.1:18080
quarkus.openapi-generator.repro_yaml.auth.bearerAuth.bearer-token=SECRET
EOF

cat > /tmp/qoag-poc/src/main/java/org/acme/TriggerResource.java <<'EOF'
package org.acme;

import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.MediaType;
import org.eclipse.microprofile.rest.client.inject.RestClient;

@Path("/trigger")
public class TriggerResource {
    @RestClient
    org.acme.repro.api.DefaultApi api;

    @GET
    @Produces(MediaType.TEXT_PLAIN)
    public String trigger() {
        api.getOwnerRepo("foo", "bar");
        return "done";
    }
}
EOF

python - <<'PY' &
from http.server import BaseHTTPRequestHandler, HTTPServer
class H(BaseHTTPRequestHandler):
    def do_GET(self):
        print("PATH=" + self.path, flush=True)
        print("AUTH=" + str(self.headers.get("Authorization")), flush=True)
        self.send_response(200)
        self.end_headers()
        self.wfile.write(b"ok")
    def log_message(self, fmt, *args):
        pass
HTTPServer(("127.0.0.1", 18080), H).serve_forever()
PY

cd /tmp/qoag-poc
mvn -q package -DskipTests
java -jar target/quarkus-app/quarkus-run.jar &
sleep 8
curl -s http://127.0.0.1:8081/trigger
# PATH=/repos/foo/bar
# AUTH=Bearer SECRET

Impact

Clients generated from an OpenAPI specification can send authentication credentials to endpoints that were not intended to receive them. In practice, this can disclose bearer tokens, API keys, or basic credentials to lower-trust routes on the same service, cause public operations to be invoked with privileged credentials, and blur the intended security boundary between protected and unprotected operations.

Threat Intelligence Overview

EPSS Score
0.1%
Top 75% exploitable
Threat Intel
1
1 source
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)CVE.org

pkg:maven/io.quarkiverse.openapi.generator:quarkus-openapi-generator
pkg:maven/io.quarkiverse.openapi.generator:quarkus-openapi-generator

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy