Other controlled drugs
IllegalCocaine, MDMA, amphetamines, heroin, opioids, and psychedelics are all illegal under the Anti-Narcotics Law as 'industrial' or non-pharmacological narcotics. There is no decriminalized or recreational category. Iran executes large numbers of people each year for drug offenses.
A traveler caught with a small personal amount typically faces a heavy fine, flogging, and imprisonment, not execution. But the death penalty applies above weight thresholds (synthetic drugs such as heroin, cocaine, and amphetamines over ~2kg; this can include possession, not only sale), and foreign nationals have been executed for drug offenses. Treat any quantity as extremely high-risk.