The flaw is in Wazuh's SCA policy parsing pipeline. wm_sca_yaml_to_cjson uses libyaml to create a YAML document, then yaml2json_node recursively descends into aliased nodes and allocates a fresh cJSON subtree for each alias visit. The cJSON tree is then serialized to text and parsed again by nlohmann::json, increasing peak memory use; the pipeline applies no limit to alias expansion, recursion depth, input size, or post-expansion node count. SCA policies delivered by the manager through merged.mg are written under etc/shared/<group>/*.yml and loaded by wazuh-modulesd when enabled policies are processed. YAML parsing occurs before c: or f: rule evaluation and before the isRemote heuristic, so sca.remote_commands does not prevent this denial of service. The evidence confirms uncontrolled alias expansion and memory exhaustion, but does not establish a code-execution or data-disclosure path; the exact guard implementation in the patched code is not fully established by the reviewed sources.