Firefighters from Southwark Fire Station - threatened with closure by Mayor of London Boris Johnson - tackled a blaze at the Peabody Estate in Southwark Street on Tuesday night.
The fire brigade was called to the estate at 9.39pm on Tuesday night and the fire was under control just over an hour later.
"A small amount of the communal area on the ground floor was damaged but there was heavy smoke throughout the property," said a brigade spokesman.
A man and a woman left the building before the brigade arrived. They were both suffering from smoke inhalation and taken to hospital by the London Ambulance Service.
Firefighters wearing breathing apparatus led a further 21 people to safety.
Fire crews from Southwark, Dowgate and Lambeth fire stations were called to the scene.
The cause of the fire is under investigation.
A Peabody spokesman said: "Residents were evacuated for a short time and most are now back in their flats. The fire brigade have confirmed that the building is safe and that nobody has been left without a home. The cause of the fire has not yet been established. Peabody is currently carrying out its own fire investigation.
"Peabody pays tribute to the fantastic work of the London Fire Brigade, the police and the paramedics."
This month three public meetings will be held to discuss the proposed closure of Southwark Fire Station.
For the latest local news and events direct to your inbox every Monday, you need our weekly email newsletter SE1 Direct.
7,000+ locals read it every week. Can you afford to miss out?
Read the latest issue before signing up