When I was in my first year of M.Sc. a professor told me to work on a project for which the main data belonged to him. He had sent me an early draft and told me to translate it into English, so I did along with recalculations and adding some stuff to the paper. We sent the article to a journal and got published there. But a year later the journal contacted me because of a duplication based on a conference proceeding with the professor's name and another student which was from 3 years before this.
As of this moment the journal retracted the article, they didn't charge me guilty at all in my university but they fired the prof because he had multiple other misconducts before that.
Is this the end of my academic career? I am trying to apply for a PhD, does this mean no one will ever accept me?
What should I do when I was not even guilty but yet there has been a retraction based on this issue?
I might really be overthinking this, but I am really scared that nowhere accepts me for future studies.
UPDATE: Thank you all for answering my question.
Unfortunately, I live in a dictatorial country in the middle east. I have told the department head of our faculty but he doesn't AT ALL. I have told my supervisor he said I am sorry but nothing we can do in this situation. I have talked to an attorney he said in a country such as ours that copyright is not a thing these cases don't matter.
I have applied for multiple PhD job positions in European countries but I got rejected from most of them.