Memory Exhaustion in Expr Parser with Unrestricted Input
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 7 fixed, 4 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-770.
Summary
Expr is an expression language and expression evaluation for Go. Prior to version 1.17.0, if the Expr expression parser is given an unbounded input string, it will attempt to compile the entire string and generate an Abstract Syntax Tree (AST) node for each part of the expression. In scenarios where input size isn’t limited, a malicious or inadvertent extremely large expression can consume excessive memory as the parser builds a huge AST. This can ultimately lead to*excessive memory usage and an Out-Of-Memory (OOM) crash of the process. This issue is relatively uncommon and will only manifest when there are no restrictions on the input size, i.e. the expression length is allowed to grow arbitrarily large. In typical use cases where inputs are bounded or validated, this problem would not occur. The problem has been patched in the latest versions of the Expr library. The fix introduces compile-time limits on the number of AST nodes and memory usage during parsing, preventing any single expression from exhausting resources. Users should upgrade to Expr version 1.17.0 or later, as this release includes the new node budget and memory limit safeguards. Upgrading to v1.17.0 ensures that extremely deep or large expressions are detected and safely aborted during compilation, avoiding the OOM condition. For users who cannot immediately upgrade, the recommended workaround is to impose an input size restriction before parsing. In practice, this means validating or limiting the length of expression strings that your application will accept. For example, set a maximum allowable number of characters (or nodes) for any expression and reject or truncate inputs that exceed this limit. By ensuring no unbounded-length expression is ever fed into the parser, one can prevent the parser from constructing a pathologically large AST and avoid potential memory exhaustion. In short, pre-validate and cap input size as a safeguard in the absence of the patch.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| expr-lang | expr | before 1.17.0 | 1.17.0 | Patch available | CNA |
| — | github.com/expr-lang/expr (Go) | before 1.17.0 | 1.17.0 | Patch available | GHSA-93mq-9ffx-83m2 |
- expr Vendorexpr-lang Affected before 1.17.0 Fixed in 1.17.0 Patch available CNA
- github.com/expr-lang/expr (Go) Vendor— Affected before 1.17.0 Fixed in 1.17.0 Patch available GHSA-93mq-9ffx-83m2
Remediation
- Fix · CNA expr (expr-lang) Fixed in 1.17.0
- Fix · GHSA-93mq-9ffx-83m2 github.com/expr-lang/expr (Go) Fixed in 1.17.0 Advisory →
Red Hat 9 advisories
- RHSA-2025:9167 Released 2025-06-17 · Red Hat rating ImportantRed Hat build of OpenTelemetry 3.6.0 release
- Red Hat OpenShift distributed tracing 3.6.0 registry.redhat.io/rhosdt/opentelemetry-rhel8-operator
- RHSA-2025:7753 Released 2025-05-15 · Red Hat rating ImportantErrata Advisory for Red Hat OpenShift GitOps v1.15.2 security update
- Red Hat OpenShift GitOps 1.15 openshift-gitops-1/argo-rollouts-rhel8, openshift-gitops-1/argocd-extensions-rhel8, openshift-gitops-1/argocd-rhel8 +7
- RHSA-2025:7479 Released 2025-05-13 · Red Hat rating Importantopentelemetry-collector security update
- Red Hat Enterprise Linux AppStream (v. 10) opentelemetry-collector-0.107.0-9.el10_0
Show 6 more Red Hat advisories
- RHSA-2025:7407 Released 2025-05-13 · Red Hat rating Importantopentelemetry-collector security update
- Red Hat Enterprise Linux AppStream (v. 9) opentelemetry-collector-0.107.0-8.el9_6
- RHSA-2025:3993 Released 2025-04-17 · Red Hat rating ImportantCustom Metrics Autoscaler Operator for Red Hat OpenShift 2.15.1-6 Update
- Custom Metric Autoscaler operator for Red Hat Openshift 2.15 registry.redhat.io/custom-metrics-autoscaler/custom-metrics-autoscaler-adapter-rhel9, registry.redhat.io/custom-metrics-autoscaler/custom-metrics-autoscaler-admission-webhooks-rhel9, registry.redhat.io/custom-metrics-autoscaler/custom-metrics-autoscaler-rhel9
- RHSA-2025:3743 Released 2025-04-09 · Red Hat rating ImportantRed Hat build of OpenTelemetry 3.5.1 release
- Red Hat OpenShift distributed tracing 3.5.3 registry.redhat.io/rhosdt/opentelemetry-collector-rhel8, registry.redhat.io/rhosdt/opentelemetry-rhel8-operator, registry.redhat.io/rhosdt/opentelemetry-target-allocator-rhel8
- RHSA-2025:3740 Released 2025-04-09 · Red Hat rating ImportantRed Hat OpenShift distributed tracing platform (Tempo) 3.5.1 release
- Red Hat OpenShift distributed tracing 3.5.3 registry.redhat.io/rhosdt/tempo-gateway-opa-rhel8, registry.redhat.io/rhosdt/tempo-gateway-rhel8, registry.redhat.io/rhosdt/tempo-rhel8 +1
- RHSA-2025:3593 Released 2025-04-03 · Red Hat rating Importantopentelemetry-collector security update
- Red Hat Enterprise Linux AppStream EUS (v.9.4) opentelemetry-collector-0.107.0-7.el9_4
- RHSA-2025:3335 Released 2025-03-27 · Red Hat rating Importantopentelemetry-collector security update
- Red Hat Enterprise Linux AppStream (v. 9) opentelemetry-collector-0.107.0-8.el9_5
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Custom Metric Autoscaler operator for Red Hat Openshift | Affected | No fix yet |
| Deployment Validation Operator | Affected | No fix yet |
| Red Hat OpenShift AI (RHOAI) | Affected | No fix yet |
| Red Hat OpenShift distributed tracing 3 | Affected | No fix yet |
| Custom Metric Autoscaler operator for Red Hat Openshift 2.15 | Fixed | RHSA-2025:3993 |
| Red Hat Enterprise Linux AppStream (v. 10) | Fixed | RHSA-2025:7479 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2025:3335, RHSA-2025:7407 |
| Red Hat Enterprise Linux AppStream EUS (v.9.4) | Fixed | RHSA-2025:3593 |
| Red Hat OpenShift GitOps 1.15 | Fixed | RHSA-2025:7753 |
| Red Hat OpenShift distributed tracing 3.5.3 | Fixed | RHSA-2025:3740, RHSA-2025:3743 |
| Red Hat OpenShift distributed tracing 3.6.0 | Fixed | RHSA-2025:9167 |
Not affected: 4 products
- Custom Metric Autoscaler operator for Red Hat Openshift 2.15
- Red Hat OpenShift distributed tracing 3
- Red Hat OpenShift distributed tracing 3.5.3
- Red Hat OpenShift distributed tracing 3.6.0
Timeline
- 2026-10-02 Threatist record created from CVE-2025-29786
- 2026-10-03 Alias added: GHSA-93mq-9ffx-83m2
- 2026-11-03 EPSS moved to the 50th–90th percentile
References
More expr-lang vulnerabilities
- TI-2025-41736 Expr has Denial of Service via Unbounded Recursion in Builtin Functions CVSS 3.1HIGH 7.5
Sources
- CVE-2025-29786 · CVE Program
- CVE-2025-29786 · NVD
- FIRST EPSS
- GHSA-93mq-9ffx-83m2 · GitHub Advisory Database · CC BY 4.0
- CVE-2025-29786 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences