It is illegal to buy drugs in the countries, though there are exceptions.
Does that sentence has the only one meaning? Does "exceptions" mean "it is legal action in other (non-mentioned) countries? Or does "exceptions" mean "it can be legal action in some areas in the (mentioned) countries? So, are "exceptions" connected with "It is illegal" or with "the countries"?