PT-2025-51779 · Expr+4 · Expr+4

Published

2025-12-16

·

Updated

2026-05-14

·

CVE-2025-68156

CVSS v2.0

7.8

High

VectorAV:N/AC:L/Au:N/C:N/I:N/A:C
Name of the Vulnerable Software and Affected Versions Expr versions prior to 1.17.7
Description The Expr library, used for expression language and evaluation in Go, contains a flaw where certain builtin functions – including flatten, min, max, mean, and median – can cause a denial of service. These functions recursively traverse user-provided data structures without a maximum recursion depth limit. If the evaluation environment includes deeply nested or cyclic data structures, these functions may recurse indefinitely, leading to a stack overflow panic and application crash. The issue is most relevant when evaluating expressions against externally supplied or dynamically constructed environments. The problem is resolved by introducing a maximum recursion depth limit in version 1.17.7, which returns an error instead of panicking when exceeded. The maximum depth can be customized using builtin.MaxDepth.
Recommendations Upgrade to Expr version 1.17.7 or later. Ensure evaluation environments do not contain cyclic references. Validate or sanitize externally supplied data structures before passing them to Expr. Wrap expression evaluation with panic recovery as a last-resort defensive measure.

Exploit

Fix

DoS

Allocation of Resources Without Limits

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2025:23664
ALSA-2025:23729
AZL-72727
AZL-72733
AZL-72736
BDU:2026-05696
CLEANSTART-2026-OW78143
CVE-2025-68156
GHSA-CFPF-HRX2-8RV6
GO-2025-4245
OPENSUSE-SU-2025:15825-1
OPENSUSE-SU-2025:15826-1
OPENSUSE-SU-2025:15832-1
OPENSUSE-SU-2026:10021-1
OPENSUSE-SU-2026:10067-1
OPENSUSE-SU-2026:10073-1
OPENSUSE-SU-2026:20099-1
OPENSUSE-SU-2026:20140-1
OPENSUSE-SU-2026:20654-1
RHSA-2025:23664
RHSA-2025:23729
RHSA-2026:0512
RHSA-2026:0513
RHSA-2026:0514
SUSE-SU-2026:0037-1
SUSE-SU-2026:0327-1
SUSE-SU-2026:0628-1
SUSE-SU-2026:0630-1
SUSE-SU-2026:1013-1
SUSE-SU-2026:1037-1
SUSE-SU-2026:20214-1

Affected Products

Almalinux
Expr
Red Hat
Red Os
Rocky Linux