Entertainment community project · Unofficial, not affiliated with CVE / CNVD / NVD · All entries are public information · Disclaimer

LVELVE
  • In-house audit
  • Information disclosure
  • LVE-2026-0025

ModerateSpring Boot logs the auto-generated security password(LVE-2026-0025)

The framework leaves a spare key in the log, with a note to change the locks before launch.

LVE ID
LVE-2026-0025
Verdict
By design
Affected product / version
Spring Boot · Spring Boot security auto-configuration (no user configuration) · cbbda2b
Published
2026-11-28

Description

When Spring Security is on the classpath and no users are configured, Spring Boot generates a random password and writes it to the start-up log at WARN level ("Using generated security password"). It looks like a clear-text password in logs.

Why it is harmless

  1. This is documented default behavior: it only applies when no custom UserDetailsService, AuthenticationManager, etc. exists, and the password is a random UUID generated on every start.

  2. The same log message says the generated password is for development use only and the security configuration must be updated before production.

  3. Anyone who can read the start-up log already operates the service; once spring.security.user.* or your own user setup is configured, the message disappears.

Location

Read the conditions and getOrDeducePassword in UserDetailsServiceAutoConfiguration, the random UUID in SecurityProperties, and the official spring-security.adoc page.

References

Show per-metric scoring rationale

DS score and vector · Per-metric breakdownScoring rubric →

  • PRPrecondition / Required privilege

    LLocal or physical access

    You must already sit at the server or hold a local shell.

    +3 / 5

  • IMReal impact

    TTheoretical only

    Needs several unlikely conditions to line up before any impact is possible.

    +2 / 5

  • EXReachability in default production config

    DTriggers in default production config

    Works in the out-of-the-box production setup — no penalty.

    +0 / 5

  • PBPublicity / by design

    FBy design (official “feature”)

    Established project behavior that the vendor considers a feature.

    +3 / 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 =9/ 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.