CVE-2024-10846: Compose Go Inefficient Yaml Path Merge Reconstruction

Inefficient string filtering logic detected. Iteratively splitting and joining strings to remove a specific path component (like YAML merge keys '<<') generates O(N^2) time complexity and massive memory allocation during tree traversal, leading to Denial-of-Service (DoS) and Out-Of-Memory (OOM) crashes via deeply nested user-controlled payloads. Use a simple

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Goβ
greprules fetch cve-2024-10846-compose-go-inefficient-yaml-path-merge-reconstruction --engine opengrep

Description

Inefficient string filtering logic detected. Iteratively splitting and joining strings to remove a specific path component (like YAML merge keys '<<') generates O(N^2) time complexity and massive memory allocation during tree traversal, leading to Denial-of-Service (DoS) and Out-Of-Memory (OOM) crashes via deeply nested user-controlled payloads. Use a simple