Written by Uptycs Threat Research | Nov 24, 2026, 8:31:29 AM
Severity: High (CVSS 3.1 8.8) · Exploitation: Public exploit available, no confirmed attacks · Fix available: Yes
Summary
CVE-2026-123886 is a SpEL (Spring Expression Language) expression injection vulnerability in Spring Data Elasticsearch. The framework substitutes positional placeholders in string-based @Query repository methods with caller-supplied arguments before evaluating SpEL expressions, meaning any argument containing a SpEL expression is evaluated even when the declared query does not explicitly use SpEL. An authenticated remote attacker with low-privilege access who can influence those arguments can execute arbitrary code within the application and exhaust application memory through an unbounded expression cache. VMware (Spring) disclosed this vulnerability on 23 November 2026, and fixed versions are available.
Technical details
The root cause is an ordering problem in how Spring Data Elasticsearch processes @Query-annotated repository methods that use positional placeholders (for example, ?0, ?1). Method arguments are injected into the query string before SpEL evaluation occurs, so a crafted argument that itself contains a SpEL expression is evaluated as executable code rather than treated as plain data. An attacker needs only a valid low-privilege application account and the ability to supply input that reaches a vulnerable repository query method; no special network position or elevated permissions are required beyond that.
The CVSS 3.1 vector AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H reflects that exploitation is network-reachable, requires low complexity and low privileges, needs no user interaction, and results in complete compromise of confidentiality, integrity, and availability within the vulnerable component. The exact internal code path has not been made fully public by the vendor.
Affected products
- Spring Data Elasticsearch 6.1.0 through 6.1.2 — fixed in 6.1.3
- Spring Data Elasticsearch 6.0.0 through 6.0.8 — fixed in 6.0.9
Impact
- Remote code execution. An attacker who can pass untrusted input to a vulnerable
@Queryrepository method can execute arbitrary code with the privileges of the application process. - Full confidentiality loss. Arbitrary code execution grants access to data the application can read, including credentials, indices, and sensitive business data stored in Elasticsearch.
- Integrity compromise. An attacker can modify or delete data accessible to the application, including Elasticsearch index contents and application state.
- Availability degradation. Repeated crafted requests populate an unbounded SpEL expression cache, which can exhaust application memory and cause denial of service without achieving code execution.
Exploitation status
A public exploit is available via cve.now, published on 23 November 2026, the same day as disclosure. No in-the-wild exploitation has been confirmed and this CVE does not appear on the CISA Known Exploited Vulnerabilities catalog at this time. The availability of public exploit code significantly shortens the window between disclosure and opportunistic attacks, making prompt patching a high priority.
Recommended actions
- Upgrade immediately. Update Spring Data Elasticsearch to version 6.1.3 (for 6.1.x deployments) or 6.0.9 (for 6.0.x deployments) using your build tool's dependency management (for example, update the version in
pom.xmlorbuild.gradleand rebuild). - Audit repository methods. Review all
@Query-annotated repository methods that use positional placeholders and confirm whether any of those methods accept input derived from untrusted sources such as user-supplied API parameters. - Restrict untrusted input paths. Where upgrading cannot be done immediately, apply input validation at the application boundary to reject values that contain SpEL expression syntax (for example, strings containing
#{or${) before they reach repository query methods. - Review application logs. Examine application and Elasticsearch access logs for unusual query patterns, unexpected memory growth, or repeated requests that may indicate exploitation attempts against vulnerable endpoints.
- Verify the fix. After upgrading, confirm the resolved version is active by checking the dependency tree (
mvn dependency:treeorgradle dependencies) and ensure no transitive dependency re-introduces an older version.
How Uptycs helps
Uptycs vulnerability management continuously scans hosts, containers, and cloud workloads for Spring Data Elasticsearch packages running affected versions, enabling security teams to identify and prioritize patching across their entire environment. Uptycs Threat Research continues to monitor this vulnerability and will update this bulletin if exploitation activity changes.