The former chief executive of Computer Associates International Inc. was sentenced to 12 years in prison and was fined $8 million on Thursday for his role in a massive accounting fraud scandal at one of the world’s largest software companies.

Sanjay Kumar, 44, had faced up to 20 years behind bars after pleading guilty in April to obstruction of justice and securities fraud charges at the company, which since has been renamed CA Inc.