Hash stored passwords and keep them out of your logs. France fined an insurer 5 million euros.
When inspectors from the CNIL, France's data protection regulator, visited a French life insurer in May 2024, they found customer passwords in two places. The login table held more than 1.8 million of them in plain text. A second table logged every login attempt. It held 730,289 of the same passwords, exactly as customers had typed them, with entries going back to 2003 1. The CNIL counted both copies against the insurer, said it did not matter whether an attacker had ever used them, and fined it 5 million euros. In the CNIL's reading of GDPR's security duty, a password may be stored only as a slow hash with a random salt, and no readable copy may sit anywhere else.
That second copy is the one most likely to exist at a company that hashes correctly. A password passes through more code than the login check, and a request log or an error tracker can keep it in plain text for years. The duty applies across the EU: Ireland's regulator fined Meta 91 million euros in 2024 for storing users' passwords in plain text on its internal systems 3. Any company that stores the passwords its users sign in with is in scope.
What did the CNIL find at the insurer?
The decision, adopted on 12 November 2026 and published on 18 November, does not name the company. It describes an insurer with 640 staff, wholly owned by a French insurance group, and it found four problems under two GDPR articles 1:
- Plain-text passwords. The login table stored customer passwords "without any hash function" (my translation, as for every quotation from the decision below). After the inspection in May 2024 the insurer switched to
ora_hash, a function built into Oracle databases, with no salt. The CNIL called it obsolete. A hash the CNIL accepts went in only on 25 April 2026. - Shared admin logins. Eight members of one team shared a single database account that reached data on about 1.3 million customers, and the same eight shared the admin password of a tool that showed every table in that database. Named accounts replaced them in 2025 and 2026.
- Contact messages kept since 2010. Messages sent through the website's contact form, with their attachments and in some cases full bank account numbers, sat in a live table for more than thirteen years.
- Login logs kept for 21 years. The table of login attempts kept customer identifiers and passwords for up to 21 years. The insurer's own policy said one year.
The first two count against Article 32, which requires security "appropriate to the risk". The last two count against Article 5(1)(e), which says personal data may be kept in identifiable form for no longer than its purpose needs 2. The insurer had fixed everything by the time of the decision, so the CNIL ordered no further changes and imposed only the fine.
Does your legal documentation match what you ship?
Lawcel watches your product changes and flags the moment your terms or privacy policy fall out of sync, then proposes the edits for your team to approve and publish.
Get startedWhy a fine when nobody was hacked?
The decision says storing passwords in plain text made all the personal data in the customer accounts vulnerable, "regardless of whether an attacker exploited this vulnerability or not" 1. The insurer said no security incident had compromised the data. The CNIL fined it for the exposure, without any evidence of harm.
The decision weighs three things in setting the amount 1:
- Scale. More than 1.8 million customers' passwords were exposed.
- Negligence. The CNIL has published its password rules for years, so it called the insurer "at the very least, particularly negligent".
- What the passwords protected. The customer accounts could contain financial data.
Fixing the problems after the inspection did not prevent the fine. The repairs counted in the insurer's favour, but the CNIL said they do not excuse what came before, and a hash it accepts went in almost two years after the inspection.
How does the CNIL expect passwords to be stored?
As a one-way hash, computed by a slow function, with a random salt of at least 128 bits for each password 1. GDPR itself names no technique. This is the standard the CNIL applies under Article 32, citing France's national cybersecurity agency, ANSSI, and the CNIL's own guidance since 2017. Three points in it go beyond the basics:
- Encryption does not count. The stored value must come from a function that cannot be reversed. In my reading, that rules out encryption the company itself can decrypt.
- SHA-2 is too fast. The decision says general-purpose hash functions such as the SHA-2 family are "very fast to run", which makes guessing cheap for whoever copies the table.
- The accepted list is short. The CNIL names Argon2, yescrypt, scrypt, balloon and bcrypt, and PBKDF2 "to a lesser degree".
The insurer's interim fix failed on two counts: ora_hash was neither slow nor salted.
How do passwords end up in a log?
At the insurer it was by design. Each row of the login table recorded one attempt, with the identifier and password "as entered by the customer", for incident handling and fraud detection 1. Hashing the password in the customer table would not have helped, because the log copied the password before any hash was applied. The insurer stopped writing to those columns in July 2024 and deleted what was there.
Large companies with good hashing have made the same mistake by accident. In 2018 Twitter asked all its users to consider changing their passwords because a bug wrote passwords to an internal log before they were hashed, even though the stored passwords used bcrypt. Ireland's fine against Meta went a step further. It counted the plain-text copies on Meta's internal systems as a personal data breach, so finding such a copy can itself create a duty to report. Meta was fined for not reporting it under Article 33 3, the 72-hour reporting rule I described in the post on exposed Lovable app tables.
In most web products a password passes through more code than the login function. It sits in the request body of a sign-up, login, password reset and password change. Anything that records request bodies can catch it: a logging middleware, an error tracker that attaches the request to an exception, an API gateway log, an audit table of user actions, or a debug line that prints the form.
If your product has a login, what should you check?
This is for anyone running a product where people sign in with a password you store, rather than through Google, Microsoft or a hosted login service. If that is you, you need to confirm that every stored password is a salted, slow hash and that no log keeps a copy, or a regulator can fine you on the day it looks, with no breach needed. Meta's case adds that a plain-text copy you find may itself be a breach you have to report.
- Find out which algorithm made the stored value. Open your users table and read a password column. Most libraries write the algorithm into the value:
$argon2id$for Argon2id,$2a$,$2b$or$2y$for bcrypt,$y$for yescrypt, and names likepbkdf2_sha256$orscryptin the formats web frameworks use. A readable password needs replacing, and so does a bare string of 32 or 64 letters and digits, which is usually an unsalted MD5 or SHA-256. - Replace weak values now, without waiting for logins. Plain-text passwords can be hashed with Argon2id in one pass over the table, using the settings in the OWASP password storage cheat sheet (at least 19 MiB of memory and 2 iterations). A weak hash can be wrapped now by hashing it again with Argon2id, then replaced with a direct hash the next time each user signs in. Set a date after which users who have not signed in must reset their password.
- Search your logs for real passwords. Create a test account with a unique password, sign up, log in, reset it, and change it. Then search every log, error tracker and audit table for that string.
- Mask password fields before anything records them. Most logging and error-tracking tools have a list of fields to scrub. Add
password,new_password,current_password, and whatever your forms call them. - Give every log and inbox a retention period, and enforce it. The insurer's own policy said one year and its table held 21, and its contact-form messages went back thirteen years. Set the periods in code for logs, support tickets and form submissions, and check that old rows disappear. If your privacy policy states a retention period, make it the one your systems keep.
- Give each admin their own account. Shared database and admin logins were the CNIL's other security finding, because nobody can tell afterwards who did what.
- If you find passwords in a log, treat it as a possible breach. Delete them, record what happened, and decide whether you must report it to your data protection authority, which is due within 72 hours of finding it.
If I could do only one of these, it would be step 3. Common login libraries hash with bcrypt, scrypt or Argon2 by default, so a team that uses one usually passes step 1. Nobody chooses to log a password, so nobody checks whether the logs hold one, and they can hold it for years, as the insurer's did.
Tags
FAQ
References
- CNIL, Délibération de la formation restreinte n° SAN-2026-016 du 12 novembre 2026 concernant la société X - accessed 19 Nov 2026
- Regulation (EU) 2016/679 (General Data Protection Regulation), Official Journal text, Publications Office of the European Union - accessed 19 Nov 2026
- Data Protection Commission, Irish Data Protection Commission fines Meta Ireland €91 million, 27 September 2024 - accessed 19 Nov 2026
About the author
Ulf Aslak Lai
Co-founder, Chief Technology Officer
Ulf is Co-founder and CTO at Lawcel. He leads engineering architecture for connectors, analysis pipelines, and the safeguards needed when automation touches regulated customer content.
- Platform architecture
- Data governance
- ML/AI systems
Related articles
Rate-limit the APIs that return customer data. Italy fined Wind Tre 1.7 million euros partly for not doing so.
Italy's data protection regulator fined the mobile operator Wind Tre 1,715,600 euros after attackers used one shop's login to send about 2 million requests to an API with no request limit and copied 365,048 customers' records. The regulator says sensitive APIs, such as those returning customer records, need a request limit and belong in the company's security tests.
GDPRAn open Supabase table in your Lovable app can be a GDPR breach to report in 72 hours
A security study covered in November 2026 found thousands of Lovable apps whose Supabase tables, lacking Row Level Security, answered anyone who opened the page. Under GDPR the app's owner must close the table and record what happened. If it held data like passport numbers or private messages and the logs cannot show nobody read it, the safer course is to report it within 72 hours.
GDPRA software vendor can be fined under GDPR for a breach of its customers' data
Sweden's data protection authority fined Miljödata, an HR software vendor, 1.8 million kronor (about 160,000 euros) under GDPR Article 32 after attackers took data on about 2.2 million people from its service. Mainly a processor for its customers, it was fined for two missing basics: checking the version of a component it put on an internet-facing server, and monitoring that catches intruders.
GDPRGDPR counts an AI agent reading personal data past its permissions as a breach
When an AI agent reaches personal data that it, or the user it acts for, is not authorised to reach, GDPR counts it as a personal data breach, with or without an attacker. If your customer is the controller of that data, tell them without undue delay, before judging how serious it is. If you are the controller, notify your regulator within 72 hours of becoming aware, unless risk is unlikely.