Home / expr-lang / expr / CVE-2025-29786
CVE-2025-29786: is it exploited, and which versions of expr-lang expr are affected and fixed?
CVE-2025-29786 is a denial of service (resources allocated without limits) vulnerability in expr-lang expr. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 11:38 UTC). Affected: github.com/expr-lang/expr before 1.17.0 (GitHub advisory GHSA-93mq-9ffx-83m2). Fixed in 1.17.0 (GitHub advisory GHSA-93mq-9ffx-83m2). Severity: High (7.5, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:38 UTC, CVE record November 19, 2026, 07:09 UTC and NVD November 19, 2026, 07:22 UTC.
What is CVE-2025-29786?
Memory Exhaustion in Expr Parser with Unrestricted Input
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.
From the CVE record by GitHub_M, last updated January 23, 2026, 16:29 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| expr-lang | expr | < 1.17.0 |
As the CVE record by GitHub_M states it, last updated January 23, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Go | github.com/expr-lang/expr | < 1.17.0 | 1.17.0 | GHSA-93mq-9ffx-83m2 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated March 17, 2025. Summary: Memory Exhaustion in Expr Parser with Unrestricted Input.
How severe is CVE-2025-29786?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-29786 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, March 17, 2025)
- EPSS
- 0.63% probability of exploitation activity in the next 30 days, percentile 51.6 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-770 Allocation of Resources Without Limits or Throttling
Where are the vendor advisories and references?
- https://github.com/expr-lang/expr/security/advisories/GHSA-93mq-9ffx-83m2 x_refsource_CONFIRM
- https://github.com/expr-lang/expr/pull/762 x_refsource_MISC
- https://github.com/expr-lang/expr/commit/0d19441454426d2f58edb22c31f3ba5f99c7a26e x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- March 11, 2025
- Published
- March 17, 2025, 13:15 UTC
- CVE record updated
- January 23, 2026, 16:29 UTC by GitHub_M
- NVD
- Deferred, last modified June 17, 2026, 09:05 UTC
- Last checked
- CVE list November 19, 2026, 07:09 UTC; NVD November 19, 2026, 07:22 UTC; KEV December 3, 2026, 11:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect expr?
- Dec 16, 2025CVE-2025-68156 expr-lang expr: denial of service (resources allocated without limits)
Questions about CVE-2025-29786
Is CVE-2025-29786 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:38 UTC. FIRST's EPSS gives it a 0.63% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of expr-lang expr are affected by CVE-2025-29786?
github.com/expr-lang/expr before 1.17.0, per the GitHub advisory GHSA-93mq-9ffx-83m2. The tables above give every range the sources list.
Which version fixes CVE-2025-29786?
1.17.0, per the GitHub advisory GHSA-93mq-9ffx-83m2. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-29786?
High (7.5, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2025-29786?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.