CVE-2025-68156: Expr Denial of Service via Unbounded Recursion
HighExecutive Summary
CVE-2025-68156 affects the Expr expression language, where unbounded recursion in built-in functions can lead to a denial-of-service; the issue is fixed in version 1.17.7. This vulnerability can cause a process-level crash due to stack exhaustion when evaluating expressions that invoke certain built-in functions on untrusted data.
Vulnerability Details
- Affected Product: Expr versions 1.0.0 through 1.17.6
- Identifier: CVE-2025-68156
- CVSS Score: 7.5 (High)
- Exploitation Status: Proof of concept exists
Risk & Impact
- Triage: Upgrade immediately to prevent potential denial-of-service.
- Attack Vector: A remote attacker can pass specially crafted input to trigger uncontrolled recursion in functions like `flatten`, `min`, `max`, `mean`, and `median`.
- Ease of Exploit: Low attack complexity and no required privileges make it an easy target.
Action Plan
- Immediate Action: Upgrade to Expr version 1.17.7 or later.
- Workaround: Ensure evaluation environments do not contain cyclic references; validate or sanitize external data before passing it to Expr; wrap expression evaluation with panic recovery.
- Detection: Monitor for unusual CPU usage or application crashes resulting from stack overflow.
Relevant professional terms
- Denial of Service (DoS)
- An attack that attempts to make a machine or network resource unavailable to its intended users by temporarily or indefinitely disrupting services of a host connected to a network.
- Stack Overflow
- A situation in which a program attempts to write data beyond the boundaries of the stack, potentially leading to a crash or arbitrary code execution.
