The flaw is in the JSON-FIM processing path of wazuh-analysisd, where agent-controlled FIM event data is used to build an alert. lf->full_log is allocated from the input length in src/analysisd/cleanevent.c, but fim_generate_alert() in src/analysisd/decoders/syscheck.c writes to the same buffer with an OS_MAXSTR limit rather than the actual allocation size. The generated alert can be longer than the input because of fixed text and expansion of selected values, so the write can run past the end of the heap allocation. The JSON-FIM path does not resize the buffer before the write, unlike the checksum path, which frees and reallocates the buffer. An enrolled agent can send a crafted FIM syscheck event through the agent channel to the manager, and the demonstrated test required no direct manager-side access. wazuh-analysisd runs as root on the manager, but the available evidence confirms only an out-of-bounds write, adjacent heap corruption, and a deterministic remote crash; control-flow hijacking and remote code execution have not been demonstrated.