- In-house audit
- Default credentials
- LVE-2026-0021
ModerateDatabase placeholder password in wp-config-docker.php of the official WordPress Docker image(LVE-2026-0021)
The manual says "example key" — but this image never installed the lock.
- LVE ID
- LVE-2026-0021
- Verdict
- Not exploitable in practice
- Affected product / version
- WordPress (official Docker image) · Official image config template (fallback when DB variables are unset) · bbfd842
- Published
- 2026-11-28
Description
In docker-library/wordpress, wp-config-docker.php falls back to placeholder strings that literally read "example username" / "example password" when no environment variables are given, which looks like a built-in database default password.
Why it is harmless
These are only the client credentials WordPress uses to connect; the database password is set on the database side, and the image never creates a database account with that value.
A comment in the same file says using the example values is strongly discouraged and asks for strong random credentials.
Real deployments override them with WORDPRESS_DB_USER / WORDPRESS_DB_PASSWORD; if the placeholder does not match a real database the site simply fails to connect.
Location
Read the getenv_docker fallbacks for DB_USER / DB_PASSWORD in wp-config-docker.php and the comment right after them.
References
Show per-metric scoring rationale
DS score and vector · Per-metric breakdownScoring rubric →
PRPrecondition / Required privilege
NNo precondition
Triggers anonymously — the hallmark of a real bug, so no penalty.
+0 / 5
IMReal impact
TTheoretical only
Needs several unlikely conditions to line up before any impact is possible.
+2 / 5
EXReachability in default production config
CNeeds a non-default config
Someone must first change the configuration by hand.
+1 / 5
PBPublicity / by design
POpenly public all along
The repo is public, the version is on the homepage, the password is in the README — it was never a secret.
+4 / 4
VBVendor / maintainer behavior
NNormal / no reply / n.a.
No extra baffling behavior — no penalty.
+0 / 4
FPFalse-positive factor
PReal but wildly exaggerated
It happened, but the description or rating is blown wildly out of proportion.
+1 / 4
Total S =8/ 41 →DS 5= min(10, 1 + ⌊S / 2⌋)
Seen something just as lame?
Fill in the form in two minutes. Once a maintainer approves it, your GitHub handle is credited on the entry — permanently.
No account on this site needed — just GitHub.