Description
A denial-of-service vulnerability was found in the Drools DRL expression parser (org.drools:drools-drl-parser). The ANTLR4-generated DRL expression grammar parses parenthesised sub-expressions through mutually recursive descent rules with no limit on nesting depth. When a deeply nested parenthesised constraint expression (approximately 300-400 levels) is parsed, the parsing thread exhausts its stack and a java.lang.StackOverflowError is raised and propagates out of the parse call instead of being converted into a DroolsParserException. An actor able to supply a crafted DRL expression to an application that parses untrusted DRL can cause a denial of service.
Published: n/a
Score: 5.3 Medium
EPSS: n/a
KEV: No
Impact: Denial of Service
Action: Apply Patch
AI Analysis

Impact

The vulnerability stems from an unbounded recursive descent parser in the Drools DRL expression engine that parses deeply nested parenthesised sub‑expressions. When a constraint expression contains approximately 300‑400 levels of nesting, the recursion exhausts the Java thread stack and throws a java.lang.StackOverflowError that propagates out of the parsing call instead of being caught and converted into a DroolsParserException. The resulting exception terminates the parsing operation and can lead to a denial of service for any request that includes such a crafted expression.

Affected Systems

Any application that incorporates the org.drools:drools-drl-parser component and allows untrusted users to supply DRL expressions is potentially affected. Specific version information is not provided; the issue applies to all builds of this parser where the unbounded ANTLR grammar is in use.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity. Exploitation requires an attacker to craft a deeply nested DRL expression and supply it to an application that parses untrusted DRL. Because the vulnerability is limited to denial of service and there is no known remote code execution vector, the risk is primarily availability. The EPSS score is unavailable and the vulnerability is not listed in the CISA KEV catalog, suggesting limited public exploitation to date. Nonetheless, any application that accepts user‑supplied DRL expressions should treat this as a legitimate availability risk.

Generated by OpenCVE AI on November 3, 2026 at 01:35 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update to a patched version of drools-drl-parser if one is available
  • Implement input validation that rejects or limits nesting depth of DRL expressions before parsing
  • Configure the application to treat parsing failures as non‑fatal and avoid exposing stack traces to users

Generated by OpenCVE AI on November 3, 2026 at 01:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 03 Nov 2026 00:30:00 +0000

Type Values Removed Values Added
Description A denial-of-service vulnerability was found in the Drools DRL expression parser (org.drools:drools-drl-parser). The ANTLR4-generated DRL expression grammar parses parenthesised sub-expressions through mutually recursive descent rules with no limit on nesting depth. When a deeply nested parenthesised constraint expression (approximately 300-400 levels) is parsed, the parsing thread exhausts its stack and a java.lang.StackOverflowError is raised and propagates out of the parse call instead of being converted into a DroolsParserException. An actor able to supply a crafted DRL expression to an application that parses untrusted DRL can cause a denial of service.
Title drools-drl-parser: uncontrolled recursion when parsing deeply nested parenthesised expressions leads to denial of service (StackOverflowError)
Weaknesses CWE-674
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

threat_severity

Moderate


Subscriptions

No data.

cve-icon MITRE

No data.

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-11-02T00:00:00Z

Links: CVE-2026-120420 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-11-03T01:45:09Z

Weaknesses