cve.bz

CVE-2025-68156 expr-lang expr

7.5 highEPSS 0.4%Fix available

High (7.5) in expr-lang expr. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/expr-lang/expr 1.17.7.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 40th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-12-16. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-770 Allocation of Resources Without Limits or Throttling
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-68156 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-68156?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-68156?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-68156 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
expr-lang:exprbefore 1.17.7

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-cfpf-hrx2-8rv6Gogithub.com/expr-lang/expr<1.17.71.17.7
GO-2025-4245Gogithub.com/expr-lang/expr<1.17.71.17.7

Linux distributions

DistributionReleasePackageFixed inAdvisory
Red Hatenterprise_linux:9::appstreamopentelemetry-collector0:0.135.0-2.el9_7RHSA-2025:23729
Red Hatenterprise_linux:10.1opentelemetry-collector0:0.135.0-2.el10_1RHSA-2025:23664
Red Hatenterprise_linux_eus:10.0opentelemetry-collector0:0.135.0-2.el10_0RHSA-2026:0514
Red Hatrhel_eus:9.4::appstreamopentelemetry-collector0:0.135.0-2.el9_4RHSA-2026:0512
Red Hatrhel_eus:9.6::appstreamopentelemetry-collector0:0.135.0-2.el9_6RHSA-2026:0513
SUSELinux Enterprise Module for Basesystem 15 SP7alloy1.12.2-150700.15.15.1SUSE-SU-2026:0327-1
SUSELinux Enterprise Module for Package Hub 15 SP7golang-github-prometheus-promu0.17.0-150000.3.30.1SUSE-SU-2026:1013-1
SUSELinux Enterprise Module for Package Hub 15 SP7grafana11.6.11-150200.3.83.1SUSE-SU-2026:1037-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0alloy1.12.2-160000.1.1SUSE-SU-2026:20214-1
SUSEManager Client Tools 15golang-github-boynux-squid_exporter1.13.0-150000.1.12.1SUSE-SU-2026:1013-1
SUSEManager Client Tools 15golang-github-lusitaniae-apache_exporter1.0.10-150000.1.26.1SUSE-SU-2026:1013-1
SUSEManager Client Tools 15golang-github-prometheus-prometheus3.5.0-150000.3.67.1SUSE-SU-2026:1013-1
SUSEManager Client Tools 15grafana11.6.11-150000.1.90.1SUSE-SU-2026:1013-1
SUSEManager Client Tools 15spacecmd5.0.15-150000.3.142.1SUSE-SU-2026:1013-1
SUSEManager Client Tools 15, Manager Client Tools for SLE Micro 5dracut-saltboot1.1.0-150000.1.65.1SUSE-SU-2026:1013-1
SUSEManager Client Tools 15, Manager Client Tools for SLE Micro 5golang-github-QubitProducts-exporter_exporter0.4.0-150000.1.21.1SUSE-SU-2026:1013-1
SUSEManager Client Tools 15, Manager Client Tools for SLE Micro 5prometheus-blackbox_exporter0.26.0-150000.1.30.2SUSE-SU-2026:1013-1
31 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.6dracut-saltboot1.1.0-150000.1.65.1SUSE-SU-2026:1013-1
openSUSELeap 15.6golang-github-QubitProducts-exporter_exporter0.4.0-150000.1.21.1SUSE-SU-2026:1013-1
openSUSELeap 15.6golang-github-boynux-squid_exporter1.13.0-150000.1.12.1SUSE-SU-2026:1013-1
openSUSELeap 15.6golang-github-lusitaniae-apache_exporter1.0.10-150000.1.26.1SUSE-SU-2026:1013-1
openSUSELeap 15.6golang-github-prometheus-promu0.17.0-150000.3.30.1SUSE-SU-2026:1013-1
openSUSELeap 15.6govulncheck-vulndb0.0.20251230T014957-150000.1.134.1SUSE-SU-2026:0037-1
openSUSELeap 15.6grafana11.6.11-150200.3.83.1SUSE-SU-2026:1037-1
openSUSELeap 15.6prometheus-blackbox_exporter0.26.0-150000.1.30.2SUSE-SU-2026:1013-1
openSUSELeap 15.6spacecmd5.0.15-150000.3.142.1SUSE-SU-2026:1013-1
openSUSELeap 16.0alloy1.12.2-160000.1.1openSUSE-SU-2026:20140-1
openSUSELeap 16.0coredns1.14.0-bp160.1.1openSUSE-SU-2026:20099-1
openSUSELeap 16.0govulncheck-vulndb0.0.20260723T184607-160000.1.1openSUSE-SU-2026:21483-1
6 more for openSUSE in the JSON and on openSUSE's page.
AlmaLinux9opentelemetry-collector0.135.0-2.el9_7ALSA-2025:23729
AlmaLinux10opentelemetry-collector0.135.0-2.el10_1ALSA-2025:23664
Rocky Linux9opentelemetry-collector0:0.135.0-2.el9_7RLSA-2025:23729
Rocky Linux10opentelemetry-collector0:0.135.0-2.el10_1RLSA-2025:23664
Azure Linux3azl-otel-collectorno fix listedAZL-72727
Azure Linux3coredns1.11.4-12AZL-72733
Azure Linux3keda2.14.1-9AZL-72736

From the distributions' data via OSV.dev: Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated Important for Red Hat products utilizing the `Expr` Go library because it can lead to a denial-of-service. Exploitation requires an application to evaluate expressions against untrusted or insufficiently validated data structures containing deeply nested or cyclic references, which can cause a stack overflow and application crash. Products that do not process untrusted input with `Expr` are not affected.

Red Hat's mitigation

To mitigate this issue, applications using the `Expr` library should ensure that evaluation environments do not contain cyclic references. Additionally, externally supplied data structures must be validated or sanitized before being passed to `Expr` for evaluation. As a last-resort defensive measure, expression evaluation can be wrapped with panic recovery to prevent a full process crash.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10opentelemetry-collector-0:0.135.0-2.el10_1Fixed 2025-12-18RHSA-2025:23664
Red Hat Enterprise Linux 10.0 Extended Update Supportopentelemetry-collector-0:0.135.0-2.el10_0Fixed 2026-01-13RHSA-2026:0514
Red Hat Enterprise Linux 9opentelemetry-collector-0:0.135.0-2.el9_7Fixed 2025-12-22RHSA-2025:23729
Red Hat Enterprise Linux 9.4 Extended Update Supportopentelemetry-collector-0:0.135.0-2.el9_4Fixed 2026-01-13RHSA-2026:0512
Red Hat Enterprise Linux 9.6 Extended Update Supportopentelemetry-collector-0:0.135.0-2.el9_6Fixed 2026-01-13RHSA-2026:0513
Custom Metric Autoscaler operator for Red Hat Openshift 2.18custom-metrics-autoscaler/custom-metrics-autoscaler-adapter-rhel9:1770072436Fixed 2026-02-09RHSA-2026:2368
Custom Metric Autoscaler operator for Red Hat Openshift 2.18custom-metrics-autoscaler/custom-metrics-autoscaler-admission-webhooks-rhel9:1770071646Fixed 2026-02-09RHSA-2026:2368
Custom Metric Autoscaler operator for Red Hat Openshift 2.18custom-metrics-autoscaler/custom-metrics-autoscaler-operator-bundle:1770076097Fixed 2026-02-09RHSA-2026:2368
Custom Metric Autoscaler operator for Red Hat Openshift 2.18custom-metrics-autoscaler/custom-metrics-autoscaler-rhel9:1770071697Fixed 2026-02-09RHSA-2026:2368
Custom Metric Autoscaler operator for Red Hat Openshift 2.18custom-metrics-autoscaler/custom-metrics-autoscaler-rhel9-operator:1770072020Fixed 2026-02-09RHSA-2026:2368
Deployment Validation Operatordvo/deployment-validation-rhel8-operatorAffected
Red Hat OpenShift distributed tracing 3rhosdt/opentelemetry-collector-rhel8Not affected
Red Hat OpenShift distributed tracing 3rhosdt/opentelemetry-operator-bundleNot affected
Red Hat OpenShift distributed tracing 3rhosdt/opentelemetry-rhel8-operatorNot affected
Red Hat OpenShift distributed tracing 3rhosdt/opentelemetry-target-allocator-rhel8Not affected
Red Hat OpenShift distributed tracing 3rhosdt/tempo-gateway-opa-rhel8Not affected
Red Hat OpenShift distributed tracing 3rhosdt/tempo-gateway-rhel8Not affected
Red Hat OpenShift distributed tracing 3rhosdt/tempo-jaeger-query-rhel8Not affected
Red Hat OpenShift distributed tracing 3rhosdt/tempo-operator-bundleNot affected
Red Hat OpenShift distributed tracing 3rhosdt/tempo-query-rhel8Not affected
56 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-68156.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-770 (20).

References

Check your stackJSON