Read the docs
TI-2025-41736 Aliases CVE-2025-68156GHSA-cfpf-hrx2-8rv6

Expr has Denial of Service via Unbounded Recursion in Builtin Functions

Priority LOW 39CWE-770Published · Updated

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: 13 fixed, 2 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.7, several builtin functions in Expr, including `flatten`, `min`, `max`, `mean`, and `median`, perform recursive traversal over user-provided data structures without enforcing a maximum recursion depth. If the evaluation environment contains deeply nested or cyclic data structures, these functions may recurse indefinitely until exceed the Go runtime stack limit. This results in a stack overflow panic, causing the host application to crash. While exploitability depends on whether an attacker can influence or inject cyclic or pathologically deep data into the evaluation environment, this behavior represents a denial-of-service (DoS) risk and affects overall library robustness. Instead of returning a recoverable evaluation error, the process may terminate unexpectedly. In affected versions, evaluation of expressions that invoke certain builtin functions on untrusted or insufficiently validated data structures can lead to a process-level crash due to stack exhaustion. This issue is most relevant in scenarios where Expr is used to evaluate expressions against externally supplied or dynamically constructed environments; cyclic references (directly or indirectly) can be introduced into arrays, maps, or structs; and there are no application-level safeguards preventing deeply nested input data. In typical use cases with controlled, acyclic data, the issue may not manifest. However, when present, the resulting panic can be used to reliably crash the application, constituting a denial of service. The issue has been fixed in the v1.17.7 versions of Expr. The patch introduces a maximum recursion depth limit for affected builtin functions. When this limit is exceeded, evaluation aborts gracefully and returns a descriptive error instead of panicking. Additionally, the maximum depth can be customized by users via `builtin.MaxDepth`, allowing applications with legitimate deep structures to raise the limit in a controlled manner. Users are strongly encouraged to upgrade to the patched release, which includes both the recursion guard and comprehensive test coverage to prevent regressions. For users who cannot immediately upgrade, some mitigations are recommended. Ensure that evaluation environments cannot contain cyclic references, validate or sanitize externally supplied data structures before passing them to Expr, and/or wrap expression evaluation with panic recovery to prevent a full process crash (as a last-resort defensive measure). These workarounds reduce risk but do not fully eliminate the issue without the patch.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00418 36th percentileScored 2026-11-07
Fix Partial expr (expr-lang): 1.17.7github.com/expr-lang/expr (Go): 1.17.7Red Hat: 14 advisoriesRed Hat: 13 fixed, 2 without a fix

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

VendorProductAffected versionsFixed inStatusSource
expr-langexprbefore 1.17.71.17.7Patch availableCNA
—github.com/expr-lang/expr (Go)before 1.17.71.17.7Patch availableGHSA-cfpf-hrx2-8rv6
  • expr Vendorexpr-lang Affected before 1.17.7 Fixed in 1.17.7 Patch available CNA
  • github.com/expr-lang/expr (Go) Vendor— Affected before 1.17.7 Fixed in 1.17.7 Patch available GHSA-cfpf-hrx2-8rv6

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:expr-lang:expr:*:*:*:*:*:go:*:*before 1.17.7Vulnerableexpr-lang
  • cpe:2.3:a:expr-lang:expr:*:*:*:*:*:go:*:* Versions before 1.17.7 Vulnerable ·expr-lang

Remediation

  • Fix · CNA expr (expr-lang) Fixed in 1.17.7
  • Fix · GHSA-cfpf-hrx2-8rv6 github.com/expr-lang/expr (Go) Fixed in 1.17.7 Advisory →

Red Hat 14 advisories

  • RHSA-2026:15979 Released 2026-05-11 · Red Hat rating Important
    Red Hat Ceph Storage
    • Red Hat Ceph Storage 8.1 registry.redhat.io/rhceph/grafana-rhel9
  • RHSA-2026:5807 Released 2026-03-25 · Red Hat rating Important
    RHOAI 2.16.4 - Red Hat OpenShift AI
    • Red Hat OpenShift AI 2.16 registry.redhat.io/rhoai/odh-codeflare-operator-rhel8, registry.redhat.io/rhoai/odh-dashboard-rhel8, registry.redhat.io/rhoai/odh-data-science-pipelines-argo-argoexec-rhel8 +12
  • RHSA-2026:3713 Released 2026-03-04 · Red Hat rating Critical
    RHOAI 3.3 - Red Hat OpenShift AI
    • Red Hat OpenShift AI 3.3 registry.redhat.io/rhoai/odh-built-in-detector-rhel9, registry.redhat.io/rhoai/odh-dashboard-rhel9, registry.redhat.io/rhoai/odh-data-science-pipelines-argo-argoexec-rhel9 +47
Show 11 more Red Hat advisories
  • RHSA-2026:2695 Released 2026-02-12 · Red Hat rating Important
    RHOAI 2.25.2 - Red Hat OpenShift AI
    • Red Hat OpenShift AI 2.25 registry.redhat.io/rhoai/odh-dashboard-rhel9, registry.redhat.io/rhoai/odh-data-science-pipelines-argo-argoexec-rhel9, registry.redhat.io/rhoai/odh-data-science-pipelines-argo-workflowcontroller-rhel9 +13
  • RHSA-2026:2572 Released 2026-02-11 · Red Hat rating Important
    Red Hat Advanced Cluster Management for Kubernetes v2.14.2 security update
    • Red Hat Advanced Cluster Management for Kubernetes 2.14 registry.redhat.io/rhacm2/acm-cli-rhel9, registry.redhat.io/rhacm2/acm-grafana-rhel9, registry.redhat.io/rhacm2/config-policy-controller-rhel9 +16
  • RHSA-2026:2368 Released 2026-02-09 · Red Hat rating Important
    Custom Metrics Autoscaler Operator for Red Hat OpenShift 2.18.1-2 Update
    • Custom Metric Autoscaler operator for Red Hat Openshift 2.18 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-operator-bundle +2
  • RHSA-2026:2106 Released 2026-02-05 · Red Hat rating Important
    RHOAI 2.25.2 - Red Hat OpenShift AI
    • Red Hat OpenShift AI 2.25 registry.redhat.io/rhoai/odh-caikit-nlp-rhel9, registry.redhat.io/rhoai/odh-caikit-tgis-serving-rhel9, registry.redhat.io/rhoai/odh-dashboard-rhel9 +47
  • RHSA-2026:1018 Released 2026-01-22 · Red Hat rating Important
    Red Hat OpenShift GitOps v1.17.4 security update
    • Red Hat OpenShift GitOps 1.17 registry.redhat.io/openshift-gitops-1/argocd-agent-rhel8, registry.redhat.io/openshift-gitops-1/argocd-extensions-rhel8, registry.redhat.io/openshift-gitops-1/argocd-rhel8 +4
  • RHSA-2026:1017 Released 2026-01-22 · Red Hat rating Important
    Red Hat OpenShift GitOps v1.18.3 security update
    • Red Hat OpenShift GitOps 1.18 registry.redhat.io/openshift-gitops-1/argo-rollouts-rhel8, registry.redhat.io/openshift-gitops-1/argocd-agent-rhel8, registry.redhat.io/openshift-gitops-1/argocd-rhel8 +4
  • RHSA-2026:0513 Released 2026-01-13 · Red Hat rating Important
    opentelemetry-collector security update
    • Red Hat Enterprise Linux AppStream EUS (v.9.6) opentelemetry-collector-0.135.0-2.el9_6
  • RHSA-2026:0512 Released 2026-01-13 · Red Hat rating Important
    opentelemetry-collector security update
    • Red Hat Enterprise Linux AppStream EUS (v.9.4) opentelemetry-collector-0.135.0-2.el9_4
  • RHSA-2026:0514 Released 2026-01-13 · Red Hat rating Important
    opentelemetry-collector security update
    • Red Hat Enterprise Linux AppStream EUS (v. 10.0) opentelemetry-collector-0.135.0-2.el10_0
  • RHSA-2025:23729 Released 2025-12-22 · Red Hat rating Important
    opentelemetry-collector security update
    • Red Hat Enterprise Linux AppStream (v. 9) opentelemetry-collector-0.135.0-2.el9_7
  • RHSA-2025:23664 Released 2025-12-18 · Red Hat rating Important
    opentelemetry-collector security update
    • Red Hat Enterprise Linux AppStream (v. 10) opentelemetry-collector-0.135.0-2.el10_1

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

ProductStatusPlan or fix
Deployment Validation OperatorAffectedNo fix yet
Red Hat OpenShift GitOpsAffectedNo fix planned: Will not fix
Custom Metric Autoscaler operator for Red Hat Openshift 2.18Fixed RHSA-2026:2368
Red Hat Advanced Cluster Management for Kubernetes 2.14Fixed RHSA-2026:2572
Red Hat Ceph Storage 8.1Fixed RHSA-2026:15979
Red Hat Enterprise Linux AppStream (v. 10)Fixed RHSA-2025:23664
Red Hat Enterprise Linux AppStream (v. 9)Fixed RHSA-2025:23729
Red Hat Enterprise Linux AppStream EUS (v. 10.0)Fixed RHSA-2026:0514
Red Hat Enterprise Linux AppStream EUS (v.9.4)Fixed RHSA-2026:0512
Red Hat Enterprise Linux AppStream EUS (v.9.6)Fixed RHSA-2026:0513
Red Hat OpenShift AI 2.16Fixed RHSA-2026:5807
Red Hat OpenShift AI 2.25Fixed RHSA-2026:2106, RHSA-2026:2695
Red Hat OpenShift AI 3.3Fixed RHSA-2026:3713
Red Hat OpenShift GitOps 1.17Fixed RHSA-2026:1018
Red Hat OpenShift GitOps 1.18Fixed RHSA-2026:1017
Not affected: 9 products
  • Red Hat Advanced Cluster Management for Kubernetes 2.14
  • Red Hat Ceph Storage 8.1
  • Red Hat OpenShift AI 2.16
  • Red Hat OpenShift AI 2.25
  • Red Hat OpenShift AI 3.3
  • Red Hat OpenShift GitOps
  • Red Hat OpenShift GitOps 1.17
  • Red Hat OpenShift GitOps 1.18
  • Red Hat OpenShift distributed tracing 3

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-68156
  2. 2026-10-03 Alias added: GHSA-cfpf-hrx2-8rv6

References

Sources