NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
🐹
🐹 Go
Not in CISA KEV
HIGH severity

CVE-2025-29786 — expr

HIGHFix: expr-lang/expr@0d19441

CVE-2025-29786 is a high-severity (CVSS 7.5) CWE-770 vulnerability in github.com/expr-lang/expr. A fix is available for github.com/expr-lang/expr — see the affected versions and patch details below.

Memory Exhaustion in Expr Parser with Unrestricted Input

Also known asGHSA-93mq-9ffx-83m2GO-2025-3525
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Oct 25, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

No confirmed exploitation observed yet

  • CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
  • CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for CVE-2025-29786.

EPSS Exploitation Probability

via FIRST.org ↗
0.6%probability of exploitation in next 30 days
Lower Risk+0.01%
Lower risk than most CVEs50th percentile — riskier than 50% of all scored CVEsHighest risk
0.00%0.38%0.75%1.13%0.1%0.6%Apr 26Aug 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

1 pkg affected
🐹github.com/expr-lang/expr

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.

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 Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐹Gogithub.com/expr-lang/exprall versions1.17.0go get github.com/expr-lang/expr@v1.17.0

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/expr-lang/expr, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update github.com/expr-lang/expr to 1.17.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2025-29786 is resolved across your whole dependency graph.

  3. Workarounds

    Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatImportant
Workaround published by Red Hat
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.
Source: Red Hat security advisory for CVE-2025-29786 (CC BY 4.0)
ProductFixed inAdvisory
Red Hat Enterprise Linux 10opentelemetry-collector-0:0.107.0-9.el10_0RHSA-2025:7479
Red Hat Enterprise Linux 9opentelemetry-collector-0:0.107.0-8.el9_5RHSA-2025:3335
Red Hat Enterprise Linux 9opentelemetry-collector-0:0.107.0-8.el9_6RHSA-2025:7407
Red Hat Enterprise Linux 9.4 Extended Update Supportopentelemetry-collector-0:0.107.0-7.el9_4RHSA-2025:3593
Red Hat OpenShift GitOps 1.15openshift-gitops-1/argocd-extensions-rhel8:v1.15.2-4RHSA-2025:7753
Custom Metric Autoscaler operator for Red Hat Openshift 2.15custom-metrics-autoscaler/custom-metrics-autoscaler-adapter-rhel9:2.15.1-1744845058RHSA-2025:3993
Red Hat OpenShift distributed tracing 3.5.3rhosdt/tempo-rhel8:rhosdt-3.5-1744102053RHSA-2025:3740
Red Hat OpenShift distributed tracing 3.5.3rhosdt/opentelemetry-collector-rhel8:rhosdt-3.5-1744103234RHSA-2025:3743

Frequently Asked Questions

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
O3 Security · Impact-Aware SCA

Is CVE-2025-29786 in your dependencies?

Find it across Go, including transitive dependencies.

CVE-2025-29786: expr — Fixed in 1.17.0