Описание
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.
A flaw was found in Micrometer's StatsD and Logging meter registries. This vulnerability allows a remote attacker to inject line terminators into metric data, such as names or tag values, due to insufficient sanitization of untrusted input. Exploitation can lead to the spoofing of arbitrary metrics, including critical system or business metrics, and the injection of false log entries, potentially impacting monitoring and auditing systems.
Отчет
A moderate severity flaw was found in Micrometer's StatsD and Logging meter registries (io.micrometer:micrometer-registry-statsd and io.micrometer:micrometer-core), which are shipped in a number of Red Hat middleware, integration, and application-platform products. These libraries do not sanitize newline characters (\n, \r) by default. When an application instruments meters using user-controlled, unvalidated input for metric names, tag keys, or tag values, a remote attacker can inject line terminators to break out of the current metric or log line. With the Datadog or Etsy flavor of the StatsD registry, whose protocol is newline-delimited, this enables line-protocol injection and cross-metric spoofing; with LoggingMeterRegistry, which prints metric output line-by-line to log files, this enables metric spoofing via downstream log-metrics scrapers or parsers as well as general log spoofing. A successful attacker can spoof arbitrary metrics, including critical system or business metrics, and inject false log entries, impacting the integrity of monitoring and auditing systems; the confidentiality and availability of the application itself are not directly affected. Exploitation requires the specific registry configuration together with unsafe instrumentation that passes untrusted input to meters, so attack complexity is high, and Red Hat rates this flaw Moderate (CVSS 3.1: 5.9, AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N), consistent with the upstream MEDIUM rating. Multiple Red Hat products that ship the affected components, including Red Hat build of Quarkus, JBoss EAP XP, Red Hat Build of Keycloak, JBoss Data Grid, Red Hat AMQ, Red Hat OpenShift AI, and Red Hat build of Apache Camel, are recorded as affected, and fixes are being pursued by the responsible engineering teams; several affected product streams are out of active support scope. Red Hat Satellite is not affected because the vulnerable code is not present in the shipped candlepin component.
Меры по смягчению последствий
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| Exploit Intelligence | exploit-intelligence/agent-client-rhel9 | Out of support scope | ||
| Red Hat AMQ Broker 7 | micrometer-core | Affected | ||
| Red Hat build of Apache Camel 4 for Quarkus 3 | micrometer-core | Affected | ||
| Red Hat build of Apicurio Registry 3 | micrometer-core | Out of support scope | ||
| Red Hat Build of Keycloak | keycloak/rhbk-openshift-rhel9 | Affected | ||
| Red Hat Build of Keycloak | keycloak/rhbk-rhel9-operator | Affected | ||
| Red Hat Build of Keycloak | micrometer-core | Affected | ||
| Red Hat Build of Keycloak | rhbk/keycloak-rhel9 | Affected | ||
| Red Hat Build of Keycloak | rhbk/keycloak-rhel9-operator | Out of support scope | ||
| Red Hat Fuse 7 | micrometer-core | Out of support scope |
Показывать по
Дополнительная информация
Статус:
5.9 Medium
CVSS3
Связанные уязвимости
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. Micrometer 1.17.0 Micrometer 1.16.0 - 1.16.6 Micrometer 1.15.0 - 1.15.12 Micrometer 1.14.0 - 1.14.16 Micrometer 1.9.18 and earlier
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 ...
5.9 Medium
CVSS3