CVE-2026-121837
Patch Available.
This Vulnerability has been fixed in the Never-Ending Support (NES) version offered by HeroDevs.
Overview
Quarkus is a Kubernetes-native Java framework optimized for cloud-native applications, containers, and serverless workloads. It builds on standard libraries (Jakarta EE, Eclipse Vert.x, Hibernate, Netty) and compiles to both JVM and GraalVM native images for fast startup and low memory use. REST Data Panache is the Quarkus extension that generates CRUD REST resources for Panache entities and repositories, including sort and filter query parameters on its list endpoints.
An information exposure vulnerability (CVE-2026-121837) has been identified in the REST Data Panache extension of Quarkus, which allows authenticated attackers to infer the values of entity properties protected by a getter-level @SecureField annotation. The generated resource does not enforce the annotation for sorting and filtering, so an attacker can learn the hidden values from which records match a filter and how results are ordered, even though the values are omitted from the response.
Per OWASP: Access control enforces policy such that users cannot act outside of their intended permissions. Failures typically lead to unauthorized information disclosure, modification, or destruction of all data or performing a business function outside the user's limits.
This issue affects versions of Quarkus that include the io.quarkus:quarkus-rest-data-panache package.
Details
Module Info
- Product: Quarkus
- Affected packages:
io.quarkus:quarkus-rest-data-panache - Affected versions: >=0
- GitHub repository: https://github.com/quarkusio/quarkus
- Published packages: https://central.sonatype.com/artifact/io.quarkus/quarkus-rest-data-panache
- Package manager: Maven
- Fixed in:
- NES for Quarkus v2.16.19 and v3.20.12
Vulnerability Info
This Medium-severity vulnerability is found in the io.quarkus:quarkus-rest-data-panache package in versions of Quarkus that include it. When REST Data Panache generates a resource for an entity, its build step collects the properties that require roles from @SecureField annotations so that sort and filter query parameters on those properties are rejected for callers without the required roles. EntityTypeUtils.getSecureFields walks the entity class hierarchy but reads the annotation from the entity's fields only:
public static Map<String, String> getSecureFields(IndexView index, String entityTypeName) {
Map<String, String> secureFields = new HashMap<>();
ClassInfo currentEntityClass = index.getClassByName(entityTypeName);
while (currentEntityClass != null) {
for (FieldInfo field : currentEntityClass.fields()) {
// skip static fields
if ((field.flags() & ACC_STATIC) != 0) {
continue;
}
AnnotationInstance secureFieldAnnotation = field.annotation(SECURE_FIELD);
if (secureFieldAnnotation != null) {
AnnotationValue rolesValue = secureFieldAnnotation.value("rolesAllowed");
...
@SecureField targets both fields and methods, so placing it on a getter is legal, and Jackson honors it there when serializing the response. The build step never looks at the getter, though, so the property is left out of the secured set and its sort and filter parameters are accepted from any authenticated caller. The check that decides whether a property is exposed for serialization has the same gap: it reads @JsonIgnore, @JsonbTransient and @XmlTransient from the field only, so a property hidden through its getter remains sortable and filterable.
An authenticated user without the required role can therefore send requests such as ?salary=50000 or ?sort=salary against a property whose getter carries @SecureField. The value itself is removed from each returned record, but the set of records that match a filter and the order of the results reveal it, and repeated queries let the attacker narrow it down.
Mitigation
Only recent versions of Quarkus are community-supported. Older lines are End-of-Life and will not receive public updates to address this issue. Quarkus LTS releases are maintained for 12 months from release; see the project's LTS release policy.
Users of the affected components should apply one of the following mitigations:
- Upgrade Quarkus to a currently supported release that contains the fix.
- Leverage a commercial support partner like HeroDevs for post-EOL security support.
Credits
- Emirhan Çatkın (finder)