cybersec
Jul 31, 2026 · 5 min OS Command InjectionCVE-2026-32892: When `realpath()` Isn't a Sanitizer
Chamilo LMS concatenated a user-influenced move target straight into `exec("mv $source $target")`, trusting `realpath()` to make it safe. It canonicalizes paths; it does nothing about the `;` sitting in a directory name. Any authenticated teacher could turn a document move into `www-data` shell.
— realpath resolved everything except the danger