CVE-2025-29786
published high CVSS 3.1 · 7.5Memory Exhaustion in Expr Parser with Unrestricted Input
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| expr-lang | — | expr< 1.17.0 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluationALAS2-2025-2851 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-968 | Fixed | Not stated | Amazon Linux assessment |
| Red Hat Enterprise Linux | RHEL-10 | opentelemetry-collectoraarch64 | Advisory build | 0.107.0-9.el10_0 | RHSA-2025:7479 |
| SUSE / openSUSE | openSUSE-Tumbleweed | argocd-cliaarch64 | Advisory build | 2.14.10-1.1 | OPENSUSE-SU-2025:15006-1 |
| Amazon Linux | AL2 | amazon-cloudwatch-agentaarch64 | Listed in advisory | Not stated | ALAS2-2025-2851 |
| Rocky Linux | 10 | opentelemetry-collectoraarch64 | Listed in advisory | Not stated | RLSA-2025:7479 |
| Red Hat Enterprise Linux | RHEL-10 | opentelemetry-collectorppc64le | Advisory build | 0.107.0-9.el10_0 | RHSA-2025:7479 |
Show 42 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat Enterprise Linux | RHEL-10 | opentelemetry-collectors390x | Advisory build | 0.107.0-9.el10_0 | RHSA-2025:7479 |
| Red Hat Enterprise Linux | RHEL-10 | opentelemetry-collectorsrc | Advisory build | 0.107.0-9.el10_0 | RHSA-2025:7479 |
| Red Hat Enterprise Linux | RHEL-10 | opentelemetry-collectorx86_64 | Advisory build | 0.107.0-9.el10_0 | RHSA-2025:7479 |
| Red Hat Enterprise Linux | RHEL-9 | opentelemetry-collectoraarch64 | Advisory build | 0.107.0-7.el9_4 | RHSA-2025:3593 |
| Red Hat Enterprise Linux | RHEL-9 | opentelemetry-collectoraarch64 | Advisory build | 0.107.0-8.el9_5 | RHSA-2025:3335 |
| Red Hat Enterprise Linux | RHEL-9 | opentelemetry-collectoraarch64 | Advisory build | 0.107.0-8.el9_6 | RHSA-2025:7407 |
| Red Hat Enterprise Linux | RHEL-9 | opentelemetry-collectorppc64le | Advisory build | 0.107.0-7.el9_4 | RHSA-2025:3593 |
| Red Hat Enterprise Linux | RHEL-9 | opentelemetry-collectorppc64le | Advisory build | 0.107.0-8.el9_5 | RHSA-2025:3335 |
| Red Hat Enterprise Linux | RHEL-9 | opentelemetry-collectorppc64le | Advisory build | 0.107.0-8.el9_6 | RHSA-2025:7407 |
| Red Hat Enterprise Linux | RHEL-9 | opentelemetry-collectors390x | Advisory build | 0.107.0-7.el9_4 | RHSA-2025:3593 |
| Red Hat Enterprise Linux | RHEL-9 | opentelemetry-collectors390x | Advisory build | 0.107.0-8.el9_5 | RHSA-2025:3335 |
| Red Hat Enterprise Linux | RHEL-9 | opentelemetry-collectors390x | Advisory build | 0.107.0-8.el9_6 | RHSA-2025:7407 |
| Red Hat Enterprise Linux | RHEL-9 | opentelemetry-collectorsrc | Advisory build | 0.107.0-7.el9_4 | RHSA-2025:3593 |
| Red Hat Enterprise Linux | RHEL-9 | opentelemetry-collectorsrc | Advisory build | 0.107.0-8.el9_5 | RHSA-2025:3335 |
| Red Hat Enterprise Linux | RHEL-9 | opentelemetry-collectorsrc | Advisory build | 0.107.0-8.el9_6 | RHSA-2025:7407 |
| Red Hat Enterprise Linux | RHEL-9 | opentelemetry-collectorx86_64 | Advisory build | 0.107.0-7.el9_4 | RHSA-2025:3593 |
| Red Hat Enterprise Linux | RHEL-9 | opentelemetry-collectorx86_64 | Advisory build | 0.107.0-8.el9_5 | RHSA-2025:3335 |
| Red Hat Enterprise Linux | RHEL-9 | opentelemetry-collectorx86_64 | Advisory build | 0.107.0-8.el9_6 | RHSA-2025:7407 |
| SUSE / openSUSE | openSUSE-Tumbleweed | argocd-clippc64le | Advisory build | 2.14.10-1.1 | OPENSUSE-SU-2025:15006-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | argocd-clis390x | Advisory build | 2.14.10-1.1 | OPENSUSE-SU-2025:15006-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | argocd-clix86_64 | Advisory build | 2.14.10-1.1 | OPENSUSE-SU-2025:15006-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | argocd-cli-bash-completionaarch64 | Advisory build | 2.14.10-1.1 | OPENSUSE-SU-2025:15006-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | argocd-cli-bash-completionppc64le | Advisory build | 2.14.10-1.1 | OPENSUSE-SU-2025:15006-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | argocd-cli-bash-completions390x | Advisory build | 2.14.10-1.1 | OPENSUSE-SU-2025:15006-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | argocd-cli-bash-completionx86_64 | Advisory build | 2.14.10-1.1 | OPENSUSE-SU-2025:15006-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | argocd-cli-zsh-completionaarch64 | Advisory build | 2.14.10-1.1 | OPENSUSE-SU-2025:15006-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | argocd-cli-zsh-completionppc64le | Advisory build | 2.14.10-1.1 | OPENSUSE-SU-2025:15006-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | argocd-cli-zsh-completions390x | Advisory build | 2.14.10-1.1 | OPENSUSE-SU-2025:15006-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | argocd-cli-zsh-completionx86_64 | Advisory build | 2.14.10-1.1 | OPENSUSE-SU-2025:15006-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | govulncheck-vulndbaarch64 | Advisory build | 0.0.20250318T181448-1.1 | OPENSUSE-SU-2025:14910-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | govulncheck-vulndbppc64le | Advisory build | 0.0.20250318T181448-1.1 | OPENSUSE-SU-2025:14910-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | govulncheck-vulndbs390x | Advisory build | 0.0.20250318T181448-1.1 | OPENSUSE-SU-2025:14910-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | govulncheck-vulndbx86_64 | Advisory build | 0.0.20250318T181448-1.1 | OPENSUSE-SU-2025:14910-1 |
| Amazon Linux | AL2 | amazon-cloudwatch-agentsrc | Listed in advisory | Not stated | ALAS2-2025-2851 |
| Amazon Linux | AL2 | amazon-cloudwatch-agentx86_64 | Listed in advisory | Not stated | ALAS2-2025-2851 |
| Amazon Linux | AL2023 | amazon-cloudwatch-agentaarch64 | Listed in advisory | Not stated | ALAS2023-2025-968 |
| Amazon Linux | AL2023 | amazon-cloudwatch-agentsrc | Listed in advisory | Not stated | ALAS2023-2025-968 |
| Amazon Linux | AL2023 | amazon-cloudwatch-agentx86_64 | Listed in advisory | Not stated | ALAS2023-2025-968 |
| Rocky Linux | 10 | opentelemetry-collectorppc64le | Listed in advisory | Not stated | RLSA-2025:7479 |
| Rocky Linux | 10 | opentelemetry-collectors390x | Listed in advisory | Not stated | RLSA-2025:7479 |
| Rocky Linux | 10 | opentelemetry-collectorsrc | Listed in advisory | Not stated | RLSA-2025:7479 |
| Rocky Linux | 10 | opentelemetry-collectorx86_64 | Listed in advisory | Not stated | RLSA-2025:7479 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| expr-lang | expr | < 1.17.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-770 CWE-770: Allocation of Resources Without Limits or Throttling
References
3Provider assertions
2GitHub_M · cna
Memory Exhaustion in Expr Parser with Unrestricted Input
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ca16959fb3616221389cc6d4d494b6b5916c631d73e3297979d669fb194298bc
- Ingested
- 23 Sep 2026, 08:43:11 UTC
- Source record
- Official CVE record