Skip to content
OpenAdvisories
High · 7.5 CVE-2025-29786 EUVD-2025-6527GHSA-93mq-9ffx-83m2GO-2025-3525

Memory Exhaustion in Expr Parser with Unrestricted Input

Published Mar 17, 2025 · Updated Jan 23, 2026 · Assigned by GitHub_M

Vendor: expr-lang Product: expr Package: amazon-cloudwatch-agent Package: amazon-cloudwatch-agent-all Package: amazon-cloudwatch-agent-amazon-cloudwatch-agent-config-wizard Package: amazon-cloudwatch-agent-compat Package: amazon-cloudwatch-agent-config-downloader Package: amazon-cloudwatch-agent-config-translator Package: amazon-cloudwatch-agent-start-amazon-cloudwatch-agent Package: argo-rollouts Package: argo-workflows Package: coredns Package: github.com/expr-lang/expr Package: golang-github-antonmedv-expr Package: golang-github-antonmedv-expr Package: grafana-alloy Package: ig Package: k8sgpt Package: kargo Package: kargo-oci-compat Package: keda Package: kubectl-argo-rollouts Package: kubeflow-pipelines Package: kubeflow-pipelines-apiserver Package: kubeflow-pipelines-cache_server Package: kubeflow-pipelines-cache-deployer Package: kubeflow-pipelines-cache-deployer-compat Package: kubeflow-pipelines-frontend Package: kubeflow-pipelines-metadata-envoy-config Package: kubeflow-pipelines-metadata-writer Package: kubeflow-pipelines-metadata-writer-compat Package: kubeflow-pipelines-persistence_agent Package: kubeflow-pipelines-scheduledworkflow Package: kubeflow-pipelines-viewer-crd-controller Package: nats Package: opentelemetry-collector Package: opentelemetry-collector-compat Package: opentelemetry-collector-contrib Package: opentelemetry-collector-contrib-compat Package: opentelemetry-collector-ocb Package: splunk-otel-collector Package: splunk-otel-collector-compat Package: splunk-otel-collector-doc Ecosystem: Azure Linux Ecosystem: Debian Ecosystem: Go Ecosystem: Ubuntu Ecosystem: Wolfi

Description

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.

Affected products

VendorProductAffectedFixed
expr-lang expr < 1.17.0 —

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.

ReleasePackageFixed inAdvisory
Debian 14 golang-github-antonmedv-expr No fix yet —
Debian 13 golang-github-antonmedv-expr No fix yet —
Debian 12 golang-github-antonmedv-expr No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 golang-github-antonmedv-expr No fix yet —
Ubuntu 26.04 LTS golang-github-antonmedv-expr No fix yet —
Ubuntu 25.10 golang-github-antonmedv-expr No fix yet —
Ubuntu 24.04 LTS golang-github-antonmedv-expr No fix yet —
Ubuntu 22.04 LTS golang-github-antonmedv-expr No fix yet —
ReleasePackageFixed inAdvisory
RHEL 10 opentelemetry-collector 0.107.0-9.el10_0 RHSA-2025:7479
RHEL 9 opentelemetry-collector 0.107.0-8.el9_5 RHSA-2025:7407, RHSA-2025:3335
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.4 EUS opentelemetry-collector 0.107.0-7.el9_4 RHSA-2025:3593

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 opentelemetry-collector 0.107.0-9.el10_0 RLSA-2025:7479
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed argocd-cli 2.14.10-1.1 openSUSE-SU-2025:15006-1
openSUSE Tumbleweed govulncheck-vulndb 0.0.20250318T181448-1.1 openSUSE-SU-2025:14910-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 amazon-cloudwatch-agent 1.300054.1-2.amzn2023 ALAS2023-2025-968
Amazon Linux 2 amazon-cloudwatch-agent 1.300054.1-2.amzn2 ALAS2-2025-2851

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 coredns 1.11.4-5 —
Azure Linux 3 ig 0.37.0-3 —
Azure Linux 3 keda 2.14.1-5 —
Azure Linux 2 (CBL-Mariner) coredns 1.11.1-18 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling amazon-cloudwatch-agent +6 1.300053.1-r1 —
Wolfi rolling argo-rollouts +1 1.9.0-r1 —
Wolfi rolling argo-workflows 3.6.5-r2 —
Wolfi rolling grafana-alloy 1.7.4-r2 —
Wolfi rolling k8sgpt 0.4.1-r1 —
Wolfi rolling kargo +1 1.3.1-r3 —
Wolfi rolling kubeflow-pipelines +11 2.4.0-r9 —
Wolfi rolling nats 0.1.6-r5 —
Wolfi rolling opentelemetry-collector +2 0.122.1-r0 —
Wolfi rolling opentelemetry-collector-contrib +1 0.122.0-r0 —
Wolfi rolling splunk-otel-collector +2 0.121.0-r1 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/expr-lang/expr < 1.17.0 1.17.0 GHSA-93mq-9ffx-83m2

Advisories 9

References