Micrometer StatsD and Logging meter registries line-protocol and log injection vulnerability

MEDIUM | AUGUST 20, 2026 | CVE-2026-59296

Description

Using untrusted, non-normalized input as-is for metrics data (such as metric names, tag keys, or tag values) is a dangerous antipattern that general-purpose instrumentation should never perform. When such unsafe instrumentation is used, the application becomes vulnerable to injection and spoofing attacks because micrometer-registry-statsd and micrometer-core do not sanitize newline characters (\n, \r) by default prior to this fix.

  • For the StatsD registry in micrometer-registry-statsd (when using the Datadog or Etsy flavor), because the StatsD protocol is newline-delimited, this allows for line-protocol injection (cross-metric spoofing).
  • For LoggingMeterRegistry in micrometer-core, because metric output is printed line-by-line to log files, this allows for both metric spoofing (if downstream log-metrics scrapers or parsers ingest the log lines as separate metrics) and general log spoofing.

Specifically, an application is vulnerable when all the following are true:

  • The application uses a vulnerable version of io.micrometer:micrometer-registry-statsd or io.micrometer:micrometer-core.
  • The application uses the Datadog or Etsy flavor of the StatsD registry, or uses LoggingMeterRegistry.
  • The application instruments meters using user-controlled, unvalidated input for metric names, tag keys, or tag values.

When vulnerable, an attacker can break out of the current metric or log line by injecting line terminators. This allows them to spoof arbitrary metrics (e.g., system load, standard JVM metrics, or other business metrics) across the metrics registry namespace (either directly via StatsD protocol or via downstream log-metric scrapers/parsers), as well as inject arbitrary log entries to spoof general log records.

Affected Spring Products and Versions

Micrometer:

  • 1.17.0 - 1.17.0
  • 1.16.0 - 1.16.6
  • 1.15.0 - 1.15.12
  • 1.14.0 - 1.14.16
  • 1.9.18 and earlier

Mitigation

Users of affected versions should upgrade to the corresponding fixed version.
Fix versionAvailability
1.17.0.1Enterprise Support Only
1.17.1OSS
1.16.6.1Enterprise Support Only
1.16.7OSS
1.15.13Enterprise Support Only
1.14.17Enterprise Support Only
1.9.19Enterprise Support Only

No further mitigation steps are necessary.

Credit

The issue was identified and responsibly reported by:

History

  • 2026-08-20: Initial vulnerability report published.

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Tanzu Spring offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all