In most countries, yes, cannibalism itself is illegal, often falling under laws against murder, desecration of corpses, or both. However, the act of cannibalism isn't explicitly mentioned in the legal code of some places, making legal proceedings complex.