{"answers":{"affected":"3 open source packages ship an affected version, including github.com/expr-lang/expr. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-68156 in the wild and no public exploit code.","fix":"Upgrade github.com/expr-lang/expr to 1.17.7 or later.","what":"CVE-2025-68156 is a high-severity denial of service vulnerability in expr-lang expr, published on 16 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-68156 and fix it if it is affected.\n\nWhat it is: CVE-2025-68156 is a high-severity denial of service vulnerability in expr-lang expr, published on 16 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-68156 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/expr-lang/expr (Go): affected all versions; fixed in 1.17.7\n- github.com/expr-lang/expr (Go): affected all versions; fixed in 1.17.7\n- github.com/expr-lang/expr (Go): affected all versions; fixed in 1.17.7\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-68156/ (Markdown: https://insights.sbomify.com/CVE-2025-68156/index.md)","id":"CVE-2025-68156","markdown":"https://insights.sbomify.com/CVE-2025-68156/index.md","name":"CVE-2025-68156","record":{"aliases":["ALSA-2025:23664","ALSA-2025:23729","AZL-72727","AZL-72733","AZL-72736","CLEANSTART-2026-CH78548","CLEANSTART-2026-TL78723","CLEANSTART-2026-TN00985","CLEANSTART-2026-UK84272","GHSA-cfpf-hrx2-8rv6","GO-2025-4245","MINI-22pm-f82w-j58x","MINI-2jp2-4p3w-ph93","MINI-2v4v-27m8-j9jj","MINI-2vqg-x6fg-h76p","MINI-2wjr-hrx2-j5f7","MINI-3qm7-cmxj-qrfm","MINI-4ffp-53hw-xqgf","MINI-4g6h-83xr-5frc","MINI-4j4r-hmwq-6v29","MINI-4vm8-c3wh-cw4r","MINI-57vw-66x4-jv42","MINI-58c6-96r2-4334","MINI-599v-fp9c-rq7j","MINI-5h78-rg7g-37r8","MINI-6858-45vw-vq9g","MINI-7h2c-pcfw-mpr7","MINI-7h78-hp9f-g9jq","MINI-7mjh-xh82-2xj4","MINI-7rmw-34j2-r48p","MINI-7wv6-rf96-qccq","MINI-84vc-qf8w-mm94","MINI-88r3-c25w-jqp6","MINI-8hm2-f45j-98c3","MINI-8wcp-9gxr-hrj7","MINI-c34f-ggr5-v86h","MINI-cmhp-wh7c-45m2","MINI-cr94-hxjj-2x95","MINI-f46p-mh38-pwr4","MINI-ffvv-cg33-r7hg","MINI-g7x7-7hfm-xw8x","MINI-h76v-j5f3-r435","MINI-h8vj-2x8g-h967","MINI-hc7r-7wx4-cq83","MINI-hp97-jg32-g4fh","MINI-hx64-xcv6-gc9v","MINI-j8m3-qq95-xh3j","MINI-j8p4-wcc5-8vh7","MINI-jx77-7ggx-23p5","MINI-m9hh-w268-g577","MINI-mp3m-mggx-943r","MINI-p565-g23j-2w83","MINI-p5p3-2c5v-246p","MINI-pj2v-x6fq-c5fh","MINI-pvfm-4j3x-6ww7","MINI-qxwm-37mq-8x62","MINI-r9x5-jjcx-2xc3","MINI-rg32-3mg7-75rh","MINI-rmc3-xcvr-h7fq","MINI-v8px-9rm6-w98g","MINI-vxm4-hcqh-23f7","MINI-wgw3-gp6h-j9j3","MINI-wp5v-x4fx-jcq4","MINI-www4-475j-r43f","MINI-x9qf-7jc4-3v4r","RHSA-2025:23664","RHSA-2025:23729","RHSA-2026:0512","RHSA-2026:0513","RHSA-2026:0514","RLSA-2025:23664","RLSA-2025:23729","ROOT-APP-GOBINARY-CVE-2025-68156","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"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Go expression library","requires_auth":"none","summary":"Attackers can crash applications using the Expr Go library by providing deeply nested or cyclic data to specific builtin functions, causing stack overflow.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"expr","vendor":"expr-lang"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"description":"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\nevaluation 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.","ecosystems":["AlmaLinux:10","AlmaLinux:9","Go","Red Hat:enterprise_linux:10.1","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux_eus:10.0","Red Hat:rhel_eus:9.4::appstream","Red Hat:rhel_eus:9.6::appstream","Rocky Linux:10","Rocky Linux:9","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Expr has Denial of Service via Unbounded Recursion in Builtin Functions","id":"CVE-2025-68156","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2025"},"n_packages":17,"n_references":2,"next":{"headline":"webpack buildHttp HttpUriPlugin allowedUris bypass via HTTP redirects","id":"CVE-2025-68157"},"packages":[{"ecosystem":"Go","fixed":["1.17.7"],"introduced":["0"],"last_affected":[],"package":"github.com/expr-lang/expr","purl":null,"source":"GHSA-cfpf-hrx2-8rv6"},{"ecosystem":"Go","fixed":["1.17.7"],"introduced":["0"],"last_affected":[],"package":"github.com/expr-lang/expr","purl":"pkg:golang/github.com/expr-lang/expr","source":"GHSA-cfpf-hrx2-8rv6"},{"ecosystem":"Go","fixed":["1.17.7"],"introduced":["0"],"last_affected":[],"package":"github.com/expr-lang/expr","purl":"pkg:golang/github.com/expr-lang/expr","source":"GO-2025-4245"},{"ecosystem":"AlmaLinux:10","fixed":["0.135.0-2.el10_1"],"introduced":["0"],"last_affected":[],"package":"opentelemetry-collector","purl":"pkg:rpm/almalinux/opentelemetry-collector","source":"ALSA-2025:23664"},{"ecosystem":"AlmaLinux:9","fixed":["0.135.0-2.el9_7"],"introduced":["0"],"last_affected":[],"package":"opentelemetry-collector","purl":"pkg:rpm/almalinux/opentelemetry-collector","source":"ALSA-2025:23729"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:0.135.0-2.el10_1"],"introduced":["0"],"last_affected":[],"package":"opentelemetry-collector","purl":"pkg:rpm/redhat/opentelemetry-collector","source":"RHSA-2025:23664"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:0.135.0-2.el9_7"],"introduced":["0"],"last_affected":[],"package":"opentelemetry-collector","purl":"pkg:rpm/redhat/opentelemetry-collector","source":"RHSA-2025:23729"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:0.135.0-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"opentelemetry-collector","purl":"pkg:rpm/redhat/opentelemetry-collector","source":"RHSA-2026:0514"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:0.135.0-2.el9_4"],"introduced":["0"],"last_affected":[],"package":"opentelemetry-collector","purl":"pkg:rpm/redhat/opentelemetry-collector","source":"RHSA-2026:0512"},{"ecosystem":"Red Hat:rhel_eus:9.6::appstream","fixed":["0:0.135.0-2.el9_6"],"introduced":["0"],"last_affected":[],"package":"opentelemetry-collector","purl":"pkg:rpm/redhat/opentelemetry-collector","source":"RHSA-2026:0513"},{"ecosystem":"Rocky Linux:10","fixed":["0:0.135.0-2.el10_1"],"introduced":["0"],"last_affected":[],"package":"opentelemetry-collector","purl":"pkg:rpm/rocky-linux/opentelemetry-collector?distro=rocky-linux-10\u0026epoch=0","source":"RLSA-2025:23664"},{"ecosystem":"Rocky Linux:9","fixed":["0:0.135.0-2.el9_7"],"introduced":["0"],"last_affected":[],"package":"opentelemetry-collector","purl":"pkg:rpm/rocky-linux/opentelemetry-collector?distro=rocky-linux-9\u0026epoch=0","source":"RLSA-2025:23729"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.14.0-1.1"],"introduced":["0"],"last_affected":[],"package":"coredns","purl":"pkg:rpm/opensuse/coredns\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10021-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.12.0-2.1"],"introduced":["0"],"last_affected":[],"package":"coredns-for-k8s1.33","purl":"pkg:rpm/opensuse/coredns-for-k8s1.33\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15825-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.12.1-2.1"],"introduced":["0"],"last_affected":[],"package":"coredns-for-k8s1.34","purl":"pkg:rpm/opensuse/coredns-for-k8s1.34\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15826-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.13.1-2.1"],"introduced":["0"],"last_affected":[],"package":"coredns-for-k8s1.35","purl":"pkg:rpm/opensuse/coredns-for-k8s1.35\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15832-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["11.6.7-2.1"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/opensuse/grafana\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10067-1"}],"prev":{"headline":"@vitejs/plugin-rsc has Arbitrary File Read via `/__vite_rsc_findSourceMapURL` Endpoint on Development","id":"CVE-2025-68155"},"products":["expr"],"published":"2025-12-16","related":[],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"BSD","name":"Rocky Linux","prefix":"RLSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-12-16","vendors":["expr-lang"]},"summary":"Attackers can crash applications using the Expr Go library by providing deeply nested or cyclic data to specific builtin functions, causing stack overflow.","url":"https://insights.sbomify.com/CVE-2025-68156/"}