Ribery told L'Equipe: "My knee hurt more and more. I was no longer training between matches but rather recovering to protect myself.
"I went under the knife in Austria. The operation went well, with a plate inserted inside. But I had a bad infection almost five months later.
"They removed the plate, but the infection had eaten away at me. It was so bad that I had holes in my leg. I had contracted Staphylococcus aureus.
"I was in the emergency room at the hospital in Austria for 12 days. I was really scared. They could have cut off my leg."