Sure, CSAM is illegal. Around the world, it is criminalised underneath Intercontinental agreements such as the UN Conference to the Rights from the Child. Legislation fluctuate marginally, but the Main message is identical: children have to be protected from exploitation, and CSAM is usually a immediate violation of their rights and basic safety.