Background
Quarkus (“Supersonic Subatomic Java”) is an open-source Java framework for building cloud-native services, designed for fast startup and low memory use. Applications built on it expose HTTP APIs, and Quarkus provides built-in authentication and authorization for them.
Quarkus can also run an optional management interface. This is a second HTTP listener, separate from the public application, which hosts operational endpoints such as health checks, metrics and other administrative extensions. They are served under a root path that defaults to /q. Quarkus documents the management interface as intended for a private network and not the public internet. Because these endpoints can reveal sensitive information, operators can additionally protect them with authentication and path-based permissions.
Terms used below:
- Path-based permission is a configuration rule of the form “requests to this path require this role”. For example, a rule whose path is
secretmight require theadminrole. - Role is a label attached to a user, such as
admin, that authorization decisions are based on. - Authorization decides what an already-identified user may do. Anonymous callers and callers with the wrong role should receive
401and403responses respectively.
Summary
A missing slash when constructing permission paths can leave a management endpoint outside its configured authorization rule. The rule is installed and enforces its role check, but it protects a different URL from the one registered by the endpoint.
For example, a relative permission secret requiring the admin role should protect /q/secret under the default root /q. Direct concatenation instead binds the rule to /qsecret. An ordinary request to the intended endpoint can then reach its handler without the expected role check. The mismatch occurs during policy construction, so exploitation does not require an encoded path or another unusual request representation.
How the Vulnerability Works
This bug is not a clever request. It is an ordinary string-joining mistake made while the server starts up and builds its security rules.
An endpoint registered on the management interface lives at the management root plus its own name, joined with a slash: /q + / + secret = /q/secret. The permission rule is built by a different piece of code. When an operator writes the relative permission path secret, that code simply glues the two strings together: /q + secret = /qsecret.
Endpoint is registered at: /q/secret
Permission rule is attached to: /qsecret <- the slash is missing
Request arrives for: /q/secret <- matches no rule, so no role checkThe role check itself works, and a configuration such as quarkus.management.auth.permission.secret.paths=secret with an admin role policy is accepted without any warning. The rule simply guards a URL that nothing is served on. The real endpoint is left with no rule at all, so the framework lets the request through to the handler. An anonymous caller who asks for /q/secret gets the protected data.
This is what makes the bug hard to notice. The configuration looks right, and nothing fails until someone tests the endpoint as an unauthorized user. Two controls in the validation confirm the diagnosis. Writing the permission as an absolute path (/q/secret), or ending the root with /, makes the same rule protect the right URL.
This is a broken access control bug (CWE-863, incorrect authorization). The authorization system never made a wrong decision. It was asked the wrong question.
Prerequisites
The caller must be able to reach the management listener. Management authentication must be enabled, the affected endpoint must rely on a relative permission such as secret, and the root must lack a trailing slash, as the default /q does.
Another matching deny policy or handler-level authorization must not independently block access. Correctly matched absolute permissions provide a secure comparison. The flaw does not expose an isolated management listener through the application’s main listener.
Attack Path
- STARTCaller can reach the management listener
- STEP 01Request the intended /q/secret endpoint
The configured permission uses the relative path secret with the default root /q.
- STEP 02Authorization rule matches /qsecret instead
Endpoint routing and permission matching disagree about slash insertion.
MITIGATION Normalize the root or configure an absolute permission path
- STEP 03Handler executes without the intended role check
MITIGATION Enforce authorization at the management handler
- STEP 04Read protected management data
Root Cause
ManagementInterfaceBuildTimeConfig.rootPath supplies /q without the normalization used for the main application root. ManagementPathMatchingHttpSecurityPolicy passes it to the shared path-policy machinery, where ImmutablePathMatcherBuilder.addPath handles a relative permission by concatenating the two strings.
For a rule named secret, the intended relationship is /q + / + secret. The implementation instead creates /qsecret. The exploit therefore uses the ordinary intended URL /q/secret. No encoded slash, traversal sequence or unusual HTTP parsing is required. The mismatch is introduced while constructing the security policy, before the request arrives.
Validation
The proof of concept ran real Quarkus applications on the JVM against the published releases 3.33.4 and 3.39.5. It enabled management authentication and assigned the relative secret permission to an admin role. Anonymous and non-admin requests to /q/secret both received HTTP 200 with synthetic protected data. A diagnostic handler at /qsecret returned HTTP 401 for anonymous callers and HTTP 403 for the non-admin user, showing where the rule actually landed.
Two configuration controls restored the expected behavior at the intended endpoint: an absolute permission /q/secret, and a root ending in / with the original relative permission. Both denied anonymous and insufficient-role callers while permitting the administrator. This comparison distinguishes a path-construction bug from missing credentials or an incorrectly defined role.
| Configuration | Anonymous caller | Signed-in non-admin | Administrator |
|---|---|---|---|
/q root, relative secret permission | 200 on /q/secret | 200 on /q/secret | Not measured for this case |
Absolute /q/secret permission | 401 | 403 | 200 |
/q/ root, relative secret permission | 401 | 403 | 200 |
Impact
The proof of concept demonstrated unauthorized disclosure of synthetic management data to anonymous and insufficient-role callers. Unauthorized state changes depend on the operations exposed by an affected handler. They were not established by the data-reading test. Overview uses the published GitHub rating of 7.7 under CVSS v3.1 (CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N).
Network isolation can prevent an external caller from reaching the listener. A separate matching deny policy or handler-level check can also block access despite the misplaced permission.
Remediation
Use the fixed release for the relevant branch: 3.33.4.2, 3.40.1.2 or 4.0.0.Beta4, as listed upstream. The advisory’s affected ranges are branch-specific. See that record for full coverage. Absolute permission paths or a trailing slash restored enforcement in the recorded controls.
The implementation-level correction is to normalize the management root, or use the same path-joining semantics as endpoint registration. For a configuration workaround, use the exact absolute management permission path and verify both anonymous denial and insufficient-role denial. Network isolation reduces who can reach the listener but does not repair the misplaced permission.
Include both secure configurations in regression tests. Each should return HTTP 401 for anonymous callers, HTTP 403 for insufficient roles, and HTTP 200 for the administrator.
References
- Project repository (https://github.com/quarkusio/quarkus)
- GitHub security advisory (https://github.com/quarkusio/quarkus/security/advisories/GHSA-6wx7-3w2r-cv9v)
- NVD: CVE-2026-107912 (https://nvd.nist.gov/vuln/detail/cve-2026-107912)
- Red Hat security record (https://access.redhat.com/security/cve/cve-2026-107912)