Minecraft wiki entry for Cactus, associated text: Until Beta 1.8, cacti were somewhat larger than other blocks when dropped.
In older versions, endermen could place cacti on any block.
A cactus can survive in unusual locations using /setblock). However, this no longer works since 1.16.[verify]