A 6.2 magnitude earthquake rocked northeast Afghanistan late last night close to the country's borders with Pakistan and Tajikistan, leaving at least 17 people injured, according to the US Geological Survey.