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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 9.4 EUS | opentelemetry-collector | 0.107.0-7.el9_4 | RHSA-2025:3593 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 10 | opentelemetry-collector | 0.107.0-9.el10_0 | RLSA-2025:7479 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | github.com/expr-lang/expr | < 1.17.0 | 1.17.0 | GHSA-93mq-9ffx-83m2 |
Advisories 9
- RHSA-2025:7479 Red Hat Security Advisory: opentelemetry-collector security update Red Hat Security Advisories (RHSA) · Oct 20, 2026
- RHSA-2025:7407 Red Hat Security Advisory: opentelemetry-collector security update Red Hat Security Advisories (RHSA) · Oct 20, 2026
- RHSA-2025:3593 Red Hat Security Advisory: opentelemetry-collector security update Red Hat Security Advisories (RHSA) · Oct 20, 2026
- RHSA-2025:3335 Red Hat Security Advisory: opentelemetry-collector security update Red Hat Security Advisories (RHSA) · Oct 20, 2026
- openSUSE-SU-2025:15006-1 argocd-cli-2.14.10-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2025:14910-1 govulncheck-vulndb-0.0.20250318T181448-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- RLSA-2025:7479 Important: opentelemetry-collector security update Rocky Linux Security Advisories · Oct 8, 2025
- ALAS2-2025-2851 Important: amazon-cloudwatch-agent security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · May 13, 2025
- ALAS2023-2025-968 Important: amazon-cloudwatch-agent security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · May 13, 2025