Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| expr-lang | expr | < 1.17.7 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 10 | opentelemetry-collector | 0.135.0-2.el10_1 | RHSA-2025:23664 |
| RHEL 9 | opentelemetry-collector | 0.135.0-2.el9_7 | RHSA-2025:23729 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 10.0 EUS | opentelemetry-collector | 0.135.0-2.el10_0 | RHSA-2026:0514 |
| RHEL 9.6 EUS | opentelemetry-collector | 0.135.0-2.el9_6 | RHSA-2026:0513 |
| RHEL 9.4 EUS | opentelemetry-collector | 0.135.0-2.el9_4 | RHSA-2026:0512 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 10 | opentelemetry-collector | 0.135.0-2.el10_1 | ALSA-2025:23664 |
| AlmaLinux 9 | opentelemetry-collector | 0.135.0-2.el9_7 | ALSA-2025:23729 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 10 | opentelemetry-collector | 0.135.0-2.el10_1 | RLSA-2025:23664 |
| Rocky Linux 9 | opentelemetry-collector | 0.135.0-2.el9_7 | RLSA-2025:23729 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | alloy | 1.12.2-150700.15.15.1 | SUSE-SU-2026:0327-1 |
| SLES 15 SP7 | golang-github-prometheus-promu | 0.17.0-150000.3.30.1 | SUSE-SU-2026:1013-1 |
| SLES 15 SP7 | grafana | 11.6.11-150200.3.83.1 | SUSE-SU-2026:1037-1 |
Show 7 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 16.0 | alloy | 1.12.2-160000.1.1 | SUSE-SU-2026:20214-1 |
| SLES 16.0 | alloy | 1.12.2-160000.1.1 | SUSE-SU-2026:20214-1 |
| SUSE Multi Linux Manager Tools SLE-Micro-5 | dracut-saltboot | 1.1.0-150002.3.6.1 | SUSE-SU-2026:0630-1 |
| SUSE Multi Linux Manager Tools SLE-Micro-5 | golang-github-QubitProducts-exporter_exporter | 0.4.0-150002.3.3.1 | SUSE-SU-2026:0630-1 |
| SUSE Multi Linux Manager Tools SLE-Micro-5 | golang-github-prometheus-node_exporter | 1.9.1-150002.3.3.1 | SUSE-SU-2026:0630-1 |
| SUSE Multi Linux Manager Tools SLE-Micro-5 | prometheus-blackbox_exporter | 0.26.0-150002.3.3.1 | SUSE-SU-2026:0630-1 |
| SUSE Multi Linux Manager Tools SLE-Micro-5 | uyuni-tools | 5.1.24-150002.3.9.1 | SUSE-SU-2026:0630-1 |
| SUSE Multi Linux Manager Tools SLE-15 | dracut-saltboot | 1.1.0-150002.3.6.1 | SUSE-SU-2026:0630-1 |
| SUSE Multi Linux Manager Tools SLE-15 | golang-github-QubitProducts-exporter_exporter | 0.4.0-150002.3.3.1 | SUSE-SU-2026:0630-1 |
| SUSE Multi Linux Manager Tools SLE-15 | golang-github-boynux-squid_exporter | 1.13.0-150002.3.3.1 | SUSE-SU-2026:0630-1 |
| SUSE Multi Linux Manager Tools SLE-15 | golang-github-lusitaniae-apache_exporter | 1.0.10-150002.3.3.1 | SUSE-SU-2026:0630-1 |
| SUSE Multi Linux Manager Tools SLE-15 | golang-github-prometheus-alertmanager | 0.28.1-150002.4.6.1 | SUSE-SU-2026:0630-1 |
| SUSE Multi Linux Manager Tools SLE-15 | golang-github-prometheus-node_exporter | 1.9.1-150002.3.3.1 | SUSE-SU-2026:0630-1 |
| SUSE Multi Linux Manager Tools SLE-15 | golang-github-prometheus-prometheus | 3.5.0-150002.3.3.1 | SUSE-SU-2026:0630-1 |
| SUSE Multi Linux Manager Tools SLE-15 | grafana | 11.5.10-150002.4.9.1 | SUSE-SU-2026:0630-1 |
| SUSE Multi Linux Manager Tools SLE-15 | mgr-push | 5.1.5-150002.3.6.2 | SUSE-SU-2026:0630-1 |
| SUSE Multi Linux Manager Tools SLE-15 | prometheus-blackbox_exporter | 0.26.0-150002.3.3.1 | SUSE-SU-2026:0630-1 |
| SUSE Multi Linux Manager Tools SLE-15 | rhnlib | 5.1.4-150002.3.6.1 | SUSE-SU-2026:0630-1 |
| SUSE Multi Linux Manager Tools SLE-15 | spacecmd | 5.1.12-150002.3.6.1 | SUSE-SU-2026:0630-1 |
| SUSE Multi Linux Manager Tools SLE-15 | spacewalk-client-tools | 5.1.8-150002.3.6.1 | SUSE-SU-2026:0630-1 |
| SUSE Multi Linux Manager Tools SLE-15 | supportutils-plugin-susemanager-client | 5.1.5-150002.3.6.1 | SUSE-SU-2026:0630-1 |
| SUSE Multi Linux Manager Tools SLE-15 | uyuni-common-libs | 5.1.5-150002.3.3.1 | SUSE-SU-2026:0630-1 |
| SUSE Multi Linux Manager Tools SLE-15 | uyuni-tools | 5.1.24-150002.3.9.1 | SUSE-SU-2026:0630-1 |
| SUSE Multi Linux Manager Tools SLE-12 | golang-github-QubitProducts-exporter_exporter | 0.4.0-120002.3.3.1 | SUSE-SU-2026:0628-1 |
| SUSE Multi Linux Manager Tools SLE-12 | golang-github-boynux-squid_exporter | 1.13.0-120002.3.3.1 | SUSE-SU-2026:0628-1 |
| SUSE Multi Linux Manager Tools SLE-12 | golang-github-lusitaniae-apache_exporter | 1.0.10-120002.3.3.1 | SUSE-SU-2026:0628-1 |
| SUSE Multi Linux Manager Tools SLE-12 | golang-github-prometheus-alertmanager | 0.28.1-120002.4.6.1 | SUSE-SU-2026:0628-1 |
| SUSE Multi Linux Manager Tools SLE-12 | golang-github-prometheus-node_exporter | 1.9.1-120002.3.3.1 | SUSE-SU-2026:0628-1 |
| SUSE Multi Linux Manager Tools SLE-12 | golang-github-prometheus-prometheus | 3.5.0-120002.3.3.1 | SUSE-SU-2026:0628-1 |
| SUSE Multi Linux Manager Tools SLE-12 | grafana | 11.5.10-120002.4.9.1 | SUSE-SU-2026:0628-1 |
| SUSE Multi Linux Manager Tools SLE-12 | mgr-push +1 | 5.1.5-120002.3.6.1 | SUSE-SU-2026:0628-1 |
| SUSE Multi Linux Manager Tools SLE-12 | prometheus-blackbox_exporter | 0.26.0-120002.3.3.1 | SUSE-SU-2026:0628-1 |
| SUSE Multi Linux Manager Tools SLE-12 | rhnlib | 5.1.4-120002.3.6.1 | SUSE-SU-2026:0628-1 |
| SUSE Multi Linux Manager Tools SLE-12 | spacecmd | 5.1.12-120002.3.6.1 | SUSE-SU-2026:0628-1 |
| SUSE Multi Linux Manager Tools SLE-12 | spacewalk-client-tools | 5.1.8-120002.3.6.1 | SUSE-SU-2026:0628-1 |
| SUSE Multi Linux Manager Tools SLE-12 | uyuni-common-libs | 5.1.5-120002.3.3.1 | SUSE-SU-2026:0628-1 |
| SUSE Multi Linux Manager Tools SLE-12 | uyuni-tools | 5.1.24-120002.3.9.1 | SUSE-SU-2026:0628-1 |
| SUSE Manager Client Tools for SLE Micro 5 | dracut-saltboot | 1.1.0-150000.1.65.1 | SUSE-SU-2026:1013-1 |
| SUSE Manager Client Tools for SLE Micro 5 | golang-github-QubitProducts-exporter_exporter | 0.4.0-150000.1.21.1 | SUSE-SU-2026:1013-1 |
| SUSE Manager Client Tools for SLE Micro 5 | prometheus-blackbox_exporter | 0.26.0-150000.1.30.2 | SUSE-SU-2026:1013-1 |
| SUSE Manager Client Tools for SLE Micro 5 | uyuni-tools | 0.1.38-150000.1.30.1 | SUSE-SU-2026:1013-1 |
| SUSE Manager Client Tools 15 | dracut-saltboot | 1.1.0-150000.1.65.1 | SUSE-SU-2026:1013-1 |
| SUSE Manager Client Tools 15 | golang-github-QubitProducts-exporter_exporter | 0.4.0-150000.1.21.1 | SUSE-SU-2026:1013-1 |
| SUSE Manager Client Tools 15 | golang-github-boynux-squid_exporter | 1.13.0-150000.1.12.1 | SUSE-SU-2026:1013-1 |
| SUSE Manager Client Tools 15 | golang-github-lusitaniae-apache_exporter | 1.0.10-150000.1.26.1 | SUSE-SU-2026:1013-1 |
| SUSE Manager Client Tools 15 | golang-github-prometheus-prometheus | 3.5.0-150000.3.67.1 | SUSE-SU-2026:1013-1 |
| SUSE Manager Client Tools 15 | grafana | 11.6.11-150000.1.90.1 | SUSE-SU-2026:1013-1 |
| SUSE Manager Client Tools 15 | prometheus-blackbox_exporter | 0.26.0-150000.1.30.2 | SUSE-SU-2026:1013-1 |
| SUSE Manager Client Tools 15 | spacecmd | 5.0.15-150000.3.142.1 | SUSE-SU-2026:1013-1 |
| SUSE Manager Client Tools 15 | uyuni-tools | 0.1.38-150000.1.30.1 | SUSE-SU-2026:1013-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | alloy | 1.12.2-2.1 | openSUSE-SU-2026:10073-1 |
| openSUSE Tumbleweed | coredns | 1.14.0-1.1 | openSUSE-SU-2026:10021-1 |
| openSUSE Tumbleweed | coredns-for-k8s1.33 | 1.12.0-2.1 | openSUSE-SU-2025:15825-1 |
| openSUSE Tumbleweed | coredns-for-k8s1.34 | 1.12.1-2.1 | openSUSE-SU-2025:15826-1 |
| openSUSE Tumbleweed | coredns-for-k8s1.35 | 1.13.1-2.1 | openSUSE-SU-2025:15832-1 |
| openSUSE Tumbleweed | grafana | 11.6.7-2.1 | openSUSE-SU-2026:10067-1 |
| openSUSE Leap 16.0 | alloy | 1.12.2-160000.1.1 | openSUSE-SU-2026:20140-1 |
| openSUSE Leap 16.0 | coredns | 1.14.0-bp160.1.1 | openSUSE-SU-2026:20099-1 |
| openSUSE Leap 16.0 | govulncheck-vulndb | 0.0.20260723T184607-160000.1.1 | openSUSE-SU-2026:21483-1 |
| openSUSE Leap 15.6 | dracut-saltboot | 1.1.0-150000.1.65.1 | SUSE-SU-2026:1013-1 |
| openSUSE Leap 15.6 | golang-github-QubitProducts-exporter_exporter | 0.4.0-150000.1.21.1 | SUSE-SU-2026:1013-1 |
| openSUSE Leap 15.6 | golang-github-boynux-squid_exporter | 1.13.0-150000.1.12.1 | SUSE-SU-2026:1013-1 |
| openSUSE Leap 15.6 | golang-github-lusitaniae-apache_exporter | 1.0.10-150000.1.26.1 | SUSE-SU-2026:1013-1 |
| openSUSE Leap 15.6 | golang-github-prometheus-promu | 0.17.0-150000.3.30.1 | SUSE-SU-2026:1013-1 |
| openSUSE Leap 15.6 | govulncheck-vulndb | 0.0.20251230T014957-150000.1.134.1 | SUSE-SU-2026:0037-1 |
| openSUSE Leap 15.6 | grafana | 11.6.11-150200.3.83.1 | SUSE-SU-2026:1037-1 |
| openSUSE Leap 15.6 | prometheus-blackbox_exporter | 0.26.0-150000.1.30.2 | SUSE-SU-2026:1013-1 |
| openSUSE Leap 15.6 | spacecmd | 5.0.15-150000.3.142.1 | SUSE-SU-2026:1013-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | amazon-cloudwatch-agent | 1.300062.1-1.amzn2023 | ALAS2023-2025-1358 |
| Amazon Linux 2 | amazon-cloudwatch-agent | 1.300062.1-1.amzn2 | ALAS2-2025-3120 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | azl-otel-collector | No fix yet | — |
| Azure Linux 3 | coredns | 1.11.4-12 | — |
| Azure Linux 3 | keda | 2.14.1-9 | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | amazon-cloudwatch-agent | 1.300063.0-r1 | — |
| Wolfi rolling | argo-cd-3.2 +1 | 3.2.1-r3 | — |
| Wolfi rolling | argo-rollouts +1 | 1.9.0-r2 | — |
| Wolfi rolling | argo-workflows-3.7 +1 | 3.7.6-r1 | — |
| Wolfi rolling | aws-otel-collector +2 | 0.46.0-r0 | — |
| Wolfi rolling | coredns-1.13 | 1.13.2-r1 | — |
| Wolfi rolling | datadog-agent-7.72-full | 7.72.4-r21 | — |
| Wolfi rolling | datadog-agent-7.73-full | 7.73.3-r12 | — |
| Wolfi rolling | grafana-alloy | 1.12.1-r1 | — |
| Wolfi rolling | jaeger-2-jaeger +11 | 2.13.0-r2 | — |
| Wolfi rolling | k3s +2 | 1.34.2.1-r2 | — |
| Wolfi rolling | k3s-1.32 +2 | 1.32.11.1-r1 | — |
| Wolfi rolling | k8s_gateway +1 | 1.6.1-r4 | — |
| Wolfi rolling | k8sgpt | 0.4.26-r4 | — |
| Wolfi rolling | kargo +1 | 1.8.4-r2 | — |
| Wolfi rolling | kine | 0.14.9-r1 | — |
| Wolfi rolling | kserve +9 | 0.16.0-r4 | — |
| Wolfi rolling | kubeflow-pipelines-apiserver +2 | 2.15.0-r5 | — |
| Wolfi rolling | nats | 0.3.0-r4 | — |
| Wolfi rolling | opentelemetry-collector +3 | 0.142.0-r1 | — |
| Wolfi rolling | splunk-otel-collector | 0.141.0-r1 | — |
| Wolfi rolling | vale | 3.13.0-r3 | — |
| Wolfi rolling | verticadb-operator +1 | 25.4.0.0-r2 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | github.com/expr-lang/expr | < 1.17.7 | 1.17.7 | GHSA-cfpf-hrx2-8rv6 |
Advisories 29
- ALSA-2025:23664 Important: opentelemetry-collector security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2025:23729 Important: opentelemetry-collector security update AlmaLinux Security Advisories · Oct 29, 2026
- WID-SEC-2026-1618 Splunk Splunk Enterprise: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 21, 2026
- WID-SEC-2025-2886 Red Hat Enterprise Linux (git-lfs, opentelemetry-collector): Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 20, 2026
- RHSA-2026:0514 Red Hat Security Advisory: opentelemetry-collector security update Red Hat Security Advisories (RHSA) · Sep 17, 2026
- RHSA-2026:0513 Red Hat Security Advisory: opentelemetry-collector security update Red Hat Security Advisories (RHSA) · Sep 17, 2026
- RHSA-2026:0512 Red Hat Security Advisory: opentelemetry-collector security update Red Hat Security Advisories (RHSA) · Sep 17, 2026
- RHSA-2025:23664 Red Hat Security Advisory: opentelemetry-collector security update Red Hat Security Advisories (RHSA) · Sep 17, 2026
- RHSA-2025:23729 Red Hat Security Advisory: opentelemetry-collector security update Red Hat Security Advisories (RHSA) · Sep 17, 2026
- openSUSE-SU-2026:21483-1 Security update for govulncheck-vulndb SUSE / openSUSE Security Updates · Jul 31, 2026
- SUSE-SU-2026:1037-1 Security update for grafana SUSE / openSUSE Security Updates · Mar 26, 2026
- SUSE-SU-2026:1013-1 Security update 5.0.7 for Multi-Linux Manager Client Tools SUSE / openSUSE Security Updates · Mar 26, 2026
- openSUSE-SU-2026:20140-1 Security update for alloy SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2026:20099-1 Security update for coredns SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2026:10073-1 alloy-1.12.2-2.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2026:10067-1 grafana-11.6.7-2.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2026:10021-1 coredns-1.14.0-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2025:15826-1 coredns-for-k8s1.34-1.12.1-2.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2025:15832-1 coredns-for-k8s1.35-1.13.1-2.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2025:15825-1 coredns-for-k8s1.33-1.12.0-2.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2026:20214-1 Security update for alloy SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2026:0327-1 Security update for alloy SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2026:0037-1 Security update for govulncheck-vulndb SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2026:0630-1 Security update 5.1.2 for Multi-Linux Manager Client Tools SUSE / openSUSE Security Updates · Feb 26, 2026
- SUSE-SU-2026:0628-1 Security update 5.1.2 for Multi-Linux Manager Client Tools SUSE / openSUSE Security Updates · Feb 26, 2026
- ALAS2023-2025-1358 Important: amazon-cloudwatch-agent security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Jan 7, 2026
- ALAS2-2025-3120 Important: amazon-cloudwatch-agent security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Jan 5, 2026
- RLSA-2025:23729 Important: opentelemetry-collector security update Rocky Linux Security Advisories · Dec 23, 2025
- RLSA-2025:23664 Important: opentelemetry-collector security update Rocky Linux Security Advisories · Dec 20, 2025