In the UK there would very likely be criminal convictions.
The first thing would be to prove that the socket was wired incorrectly, easy enough.
Then it would have to be proven that the responsibility for the socket being maintained was that of the landlord, easy.
The next thing would be to prove that the landlord had a duty of care to the tenant, which again would be easy.
Would would take some argument is accounting for the person who had carried out any work on the socket.
It’s possible that an electrical contractor ahd carried out the work, buts it is not unusual at all that this had been installed by either the landlord, or an acquaintance of the landlord, neither of which might be competant to carry out the task.
Its possible that the landlord, and electrical contractor might argue that a previous tenant had done some work, however the onus would still be on the landlord to ensure that the accomodation was safe.
There have been cases where lanndlords have been imprisoned for having faulty gas heaters on the premises which have killed tenants with carbon monoxide fumes, and I know of one ‘electrician’ who had wired up a central heating system, but instead of using four core cable for the controller(which means one earth core and three circuit cores) thias person used three core cable, and used the earth wire as a circuit wire and operated the system without any earth whatsoever.
That electrician had been recalled several times as ‘something didn’t seem right’ but he never corrected his bad workmanship, which led to the female occupant of the house being electrocuted through her stainless steel sink upon which rested an electric kettle which had developed a fault.
Usually health and safety law violations in the UK tend to have relatively low fines and fairly short prison sentences but convictions open up the legal route to civil suits and very large compensation claims.