Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/expr-lang/expr
  4. ›
  5. CVE-2025-29786

CVE-2025-29786: Memory Exhaustion in Expr Parser with Unrestricted Input

March 17, 2025

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.

References

  • github.com/advisories/GHSA-93mq-9ffx-83m2
  • github.com/expr-lang/expr
  • github.com/expr-lang/expr/commit/0d19441454426d2f58edb22c31f3ba5f99c7a26e
  • github.com/expr-lang/expr/pull/762
  • github.com/expr-lang/expr/security/advisories/GHSA-93mq-9ffx-83m2
  • nvd.nist.gov/vuln/detail/CVE-2025-29786

Code Behaviors & Features

Detect and mitigate CVE-2025-29786 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.17.0

Fixed versions

  • 1.17.0

Solution

Upgrade to version 1.17.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

go/github.com/expr-lang/expr/CVE-2025-29786.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:03 +0000.