Out-of-bounds Read Affecting ruby3.3-fluentd-kubernetes-daemonset-1.18 package, versions <1.18.0.1.5-r4


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.26% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-WOLFILATEST-RUBY33FLUENTDKUBERNETESDAEMONSET118-17671971
  • published29 Jun 2026
  • disclosed1 Jul 2026

Introduced: 29 Jun 2026

NewCVE-2026-54592  (opens in a new tab)
CWE-125  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade Wolfi ruby3.3-fluentd-kubernetes-daemonset-1.18 to version 1.18.0.1.5-r4 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ruby3.3-fluentd-kubernetes-daemonset-1.18 package and not the ruby3.3-fluentd-kubernetes-daemonset-1.18 package as distributed by Wolfi. See How to fix? for Wolfi relevant fixed versions and status.

Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to 3.17.3, Oj::Doc#each_child, when invoked recursively over a deeply nested JSON document, overflows a fixed-size stack buffer and aborts the process, leading to DoS. In a two-step chain in ext/oj/fast.c, doc_each_child increments doc->where past the where_path[MAX_STACK = 100] array with no bounds check and never restores it (the doc->where-- is missing), so calling each_child recursively from inside the yield block drives doc->where beyond the array. On the next entry the function copies the path into the 800-byte stack-local buffer save_path[MAX_STACK] using wlen = doc->where - doc->where_path, so when the previous recursive call left doc->where past where_path[100] the wlen exceeds MAX_STACK and the memcpy overflows save_path on the C stack; because the Oj::Doc parser imposes no JSON nesting-depth limit (relying on a C-stack pressure check), deeply nested attacker input reaches this path. This issue has been fixed in version 3.17.3.