CVEBrief

Home / expr-lang / expr / CVE-2025-68156

CVE-2025-68156: is it exploited, and which versions of expr-lang expr are affected and fixed?

CVE-2025-68156 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, 16:09 UTC). Affected: github.com/expr-lang/expr before 1.17.7 (GitHub advisory GHSA-cfpf-hrx2-8rv6). Fixed in 1.17.7 (GitHub advisory GHSA-cfpf-hrx2-8rv6). Severity: High (7.5, CVSS 3.1, from GitHub_M).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:09 UTC, CVE record November 19, 2026, 07:09 UTC and NVD November 19, 2026, 07:15 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 16:09 UTC
Affected
github.com/expr-lang/expr before 1.17.7
GitHub advisory GHSA-cfpf-hrx2-8rv6
Fixed in
1.17.7
GitHub advisory GHSA-cfpf-hrx2-8rv6
Severity
High 7.5
CVSS 3.1 from GitHub_M
Exploit odds (EPSS)
0.45% in 30 days
higher than 41% of CVEs; FIRST, December 3, 2026
Free for up to 3 items: a weekly email, and an alert the day CISA lists one as exploited. We email you once to confirm. More about the watch

What is CVE-2025-68156?

Expr has Denial of Service via Unbounded Recursion in Builtin Functions

Expr is an expression language and expression evaluation for Go. Prior to version 1.17.7, 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. In affected versions, evaluation of expressions that invoke certain builtin functions on untrusted or insufficiently validated data structures can lead to a process-level crash due to stack exhaustion. This issue is most relevant in scenarios where Expr is used to evaluate expressions against externally supplied or dynamically constructed environments; cyclic references (directly or indirectly) can be introduced into arrays, maps, or structs; and there are no application-level safeguards preventing deeply nested input data. In typical use cases with controlled, acyclic data, the issue may not manifest. However, when present, the resulting panic can be used to reliably crash the application, constituting a denial of service. The issue has been fixed in the v1.17.7 versions of Expr. The patch introduces a maximum recursion depth limit for affected builtin functions. When this limit is exceeded, evaluation aborts gracefully and returns a descriptive error instead of panicking. Additionally, the maximum depth can be customized by users via `builtin.MaxDepth`, allowing applications with legitimate deep structures to raise the limit in a controlled manner. Users are strongly encouraged to upgrade to the patched release, which includes both the recursion guard and comprehensive test coverage to prevent regressions. For users who cannot immediately upgrade, some mitigations are recommended. Ensure that evaluation environments cannot contain cyclic references, validate or sanitize externally supplied data structures before passing them to Expr, and/or wrap expression evaluation with panic recovery to prevent a full process crash (as a last-resort defensive measure). These workarounds reduce risk but do not fully eliminate the issue without the patch.

From the CVE record by GitHub_M, last updated December 16, 2025, 19:59 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
expr-langexpr< 1.17.7

As the CVE record by GitHub_M states it, last updated December 16, 2025. 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?

EcosystemPackageAffectedFixed inAdvisory
Gogithub.com/expr-lang/expr< 1.17.71.17.7GHSA-cfpf-hrx2-8rv6

GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated December 16, 2025. Summary: Expr has Denial of Service via Unbounded Recursion in Builtin Functions.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
expr-langexprbefore 1.17.7application

NVD analysis (status Analyzed), last modified October 13, 2026, 11:10 UTC.

How severe is CVE-2025-68156?

ScoreVersionVectorSource
High 7.5CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HGitHub_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-68156 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
CISA SSVC
Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, December 16, 2025)
EPSS
0.45% probability of exploitation activity in the next 30 days, percentile 40.8 (FIRST EPSS, scores of December 3, 2026)

What kind of flaw is it?

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
December 15, 2025
Published
December 16, 2025, 18:24 UTC
CVE record updated
December 16, 2025, 19:59 UTC by GitHub_M
NVD
Analyzed, last modified October 13, 2026, 11:10 UTC
Last checked
CVE list November 19, 2026, 07:09 UTC; NVD November 19, 2026, 07:15 UTC; KEV December 3, 2026, 16:09 UTC; EPSS December 3, 2026
Official record
cve.org · NVD

What other CVEs affect expr?

Every CVE in expr

Questions about CVE-2025-68156

Is CVE-2025-68156 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:09 UTC. FIRST's EPSS gives it a 0.45% chance of exploitation activity in the next 30 days (scores of December 3, 2026).

Which versions of expr-lang expr are affected by CVE-2025-68156?

github.com/expr-lang/expr before 1.17.7, per the GitHub advisory GHSA-cfpf-hrx2-8rv6. The tables above give every range the sources list.

Which version fixes CVE-2025-68156?

1.17.7, per the GitHub advisory GHSA-cfpf-hrx2-8rv6. Check the vendor's advisory before you rely on it.

How severe is CVE-2025-68156?

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-68156?

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.