cve.bz

CVE-2025-29786 expr-lang expr

7.5 highEPSS 0.6%Fix available

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

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

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.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 51st 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-03-17. 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
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-29786 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-29786?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-29786?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-29786 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 CNA's record in the CVE List.

ProductAffected
expr-lang expr< 1.17.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-93mq-9ffx-83m2Gogithub.com/expr-lang/expr<1.17.01.17.0
GO-2025-3525Gogithub.com/expr-lang/expr<1.17.01.17.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14golang-github-antonmedv-exprno fix listedDEBIAN-CVE-2025-29786
Ubuntu22.04:LTS, 24.04:LTS, 25.10 and 2 moregolang-github-antonmedv-exprno fix listedUBUNTU-CVE-2025-29786
openSUSETumbleweedargocd-cli2.14.10-1.1openSUSE-SU-2025:15006-1
openSUSETumbleweedgovulncheck-vulndb0.0.20250318T181448-1.1openSUSE-SU-2025:14910-1
Rocky Linux10opentelemetry-collector0:0.107.0-9.el10_0RLSA-2025:7479
Azure Linux2coredns1.11.1-18AZL-58848
Azure Linux3coredns1.11.4-5AZL-58872
Azure Linux3ig0.37.0-3AZL-58857
Azure Linux3keda2.14.1-5AZL-58861

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; 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: Debian · Ubuntu · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's mitigation

To mitigate this vulnerability, it is recommended to impose an input size restriction before parsing (i.e. validating or limiting the length of expression strings that the application will accept). Ensuring no unbounded-length expressions are fed into the parser will prevent the parser from constructing a very large AST and avoid the potential memory exhaustion issue.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10opentelemetry-collector-0:0.107.0-9.el10_0Fixed 2025-05-13RHSA-2025:7479
Red Hat Enterprise Linux 9opentelemetry-collector-0:0.107.0-8.el9_5Fixed 2025-03-27RHSA-2025:3335
Red Hat Enterprise Linux 9opentelemetry-collector-0:0.107.0-8.el9_6Fixed 2025-05-13RHSA-2025:7407
Red Hat Enterprise Linux 9.4 Extended Update Supportopentelemetry-collector-0:0.107.0-7.el9_4Fixed 2025-04-03RHSA-2025:3593
Red Hat OpenShift GitOps 1.15openshift-gitops-1/argocd-extensions-rhel8:v1.15.2-4Fixed 2025-05-15RHSA-2025:7753
Red Hat OpenShift GitOps 1.15openshift-gitops-1/argocd-rhel8:v1.15.2-4Fixed 2025-05-15RHSA-2025:7753
Red Hat OpenShift GitOps 1.15openshift-gitops-1/argocd-rhel9:v1.15.2-1Fixed 2025-05-15RHSA-2025:7753
Red Hat OpenShift GitOps 1.15openshift-gitops-1/argo-rollouts-rhel8:v1.15.2-4Fixed 2025-05-15RHSA-2025:7753
Red Hat OpenShift GitOps 1.15openshift-gitops-1/console-plugin-rhel8:v1.15.2-4Fixed 2025-05-15RHSA-2025:7753
Red Hat OpenShift GitOps 1.15openshift-gitops-1/dex-rhel8:v1.15.2-4Fixed 2025-05-15RHSA-2025:7753
Custom Metric Autoscaler operator for Red Hat Openshiftcustom-metrics-autoscaler/custom-metrics-autoscaler-adapter-rhel8Affected
Custom Metric Autoscaler operator for Red Hat Openshiftcustom-metrics-autoscaler/custom-metrics-autoscaler-admission-webhooks-rhel8Affected
Custom Metric Autoscaler operator for Red Hat Openshiftcustom-metrics-autoscaler/custom-metrics-autoscaler-rhel8Affected
Deployment Validation Operatordeployment-validation-operator-containerAffected
Red Hat OpenShift AI (RHOAI)rhoai/odh-data-science-pipelines-argo-argoexec-rhel8Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-data-science-pipelines-argo-workflowcontroller-rhel8Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-ml-pipelines-api-server-v2-rhel8Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-ml-pipelines-driver-rhel8Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-ml-pipelines-launcher-rhel8Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-ml-pipelines-persistenceagent-v2-rhel8Affected
18 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-29786.

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