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

CVE-2025-68156: Expr has Denial of Service via Unbounded Recursion in Builtin Functions

December 16, 2025

Several builtin functions in Expr, including flatten, min, max, mean, and median, perform recursive traversal over user-provided data structures without enforcing a maximum recursion depth.

If the evaluation environment contains deeply nested or cyclic data structures, these functions may recurse indefinitely until exceed the Go runtime stack limit. This results in a stack overflow panic, causing the host application to crash.

While exploitability depends on whether an attacker can influence or inject cyclic or pathologically deep data into the evaluation environment, this behavior represents a denial-of-service (DoS) risk and affects overall library robustness. Instead of returning a recoverable evaluation error, the process may terminate unexpectedly.

References

  • github.com/advisories/GHSA-cfpf-hrx2-8rv6
  • github.com/expr-lang/expr
  • github.com/expr-lang/expr/pull/870
  • github.com/expr-lang/expr/security/advisories/GHSA-cfpf-hrx2-8rv6
  • nvd.nist.gov/vuln/detail/CVE-2025-68156

Code Behaviors & Features

Detect and mitigate CVE-2025-68156 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.7

Fixed versions

  • 1.17.7

Solution

Upgrade to version 1.17.7 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-68156.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 24 Dec 2025 00:19:31 +0000.