Skip to main content

Metrics::Any::Adapter::DogStatsd CVE-2026-50638

| EUVDEUVD-2026-36105 CRITICAL
Improper Neutralization of CRLF Sequences ('CRLF Injection') (CWE-93)
2026-06-10 CPANSec GHSA-m93c-ch8c-q8cj
9.1
CVSS 3.1 · Vendor: CPANSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify Perl app using vulnerable adapter
  2. Delivery
    Submit input with embedded newline and StatsD payload
  3. Exploit
    Application emits tainted metric/tag string
  4. Execution
    Adapter writes raw bytes to UDP socket
  5. Persist
    Collector parses injected secondary metric
  6. Impact
    Forged data poisons dashboards and alerts

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization CRLF sequence sanitization
Exploitation Conditions

Exploitation requires that the vulnerable application (1) uses Metrics::Any::Adapter::DogStatsd at a version below 0.04, and (2) passes attacker-influenced string data - typically HTTP headers, URL components, query parameters, or form fields - into either a metric name/value or into the _tags helper without prior sanitization. There is no authentication requirement at the adapter layer (the CVSS vector specifies PR:N/UI:N), but practical exploitation is bounded by the calling application's data flow: if all metric and tag values are derived from server-controlled constants or trusted enumerations, the bug is not reachable. Additionally, the impact is limited to whichever downstream collector (DogStatsD agent, Datadog, StatsD relay, SIEM) ingests the resulting packets, and the attack surface is one-way UDP write to that collector - there is no direct code execution on the host running the Perl process.

Impact

The published CVSS:3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N yields 9.1 (Critical), but this score appears inflated relative to the real-world impact: the vulnerability is a metric-injection / observability-data-integrity flaw, not remote code execution, and 'network' attack vector presumes the attacker can reach a code path that feeds untrusted strings into the adapter - exploitation is therefore application-dependent, not a direct network service exposure. The EPSS score of 0.03% (8th percentile) and the absence of CISA KEV listing or any public PoC are consistent with this lower practical risk; the most likely real impact is corruption of metrics, dashboards, alerting thresholds and billable telemetry, plus potential downstream log/SIEM injection if metrics are forwarded to systems that interpret control characters. Confidentiality and availability impact ratings of 'H' in the published vector are difficult to justify from the description (the issue is fundamentally an integrity problem on telemetry data) and should be treated cautiously - verify with the upstream advisory at seclists.org/oss-sec/2026/q2/879 before using the 9.1 score for prioritization.

Exploit ScenarioDerived

A web application uses Metrics::Any::Adapter::DogStatsd to record per-request metrics and tags derived from HTTP input (e.g. tagging by user-agent or URL path); an attacker submits a request whose user-agent contains an embedded newline followed by a forged metric line such as 'evil.counter:1000000|c|#env:prod', causing the adapter to emit two metrics in one UDP packet and pollute the victim's dashboards, SLO alerting, or billing telemetry. No public PoC has been published, but exploitation requires only the ability to influence a string that the application passes to the adapter, making opportunistic abuse straightforward wherever such untrusted-to-telemetry data flow exists.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 11, 2026

Metric injection in the Perl module Metrics::Any::Adapter::DogStatsd before 0.04 allows remote attackers to inject arbitrary StatsD/DogStatsD metrics by smuggling newline characters through unsanitized metric names and tags. Because the StatsD protocol treats newlines as packet delimiters for multiple metrics, attacker-controlled values forwarded into the adapter can forge additional metrics or tag payloads on the wire, with no public exploit identified at time of analysis and an EPSS score of 0.03% indicating low near-term exploitation probability.

RemediationAI

Vendor-released patch: Metrics::Any::Adapter::DogStatsd 0.04 - upgrade via cpan/cpanm/Carton (e.g. 'cpanm Metrics::Any::Adapter::DogStatsd@0.04') and simultaneously update Metrics::Any::Adapter::Statsd to 0.04 to address the related parent-module issue (CVE-2026-50637), per the release notes at https://metacpan.org/release/PEVANS/Metrics-Any-Adapter-Statsd-0.04/changes and the oss-security advisory at https://seclists.org/oss-sec/2026/q2/879. Where immediate upgrade is not possible, apply caller-side compensating controls: strip or reject '\n', '\r', '|', ':', '#' and '@' in any user-controlled string before passing it as a metric name, value, or tag (side effect: legitimate values containing these characters will be mangled or rejected), and avoid using request-derived data such as URL paths, user-agent strings or form fields directly as metric/tag identifiers (side effect: reduces dashboard granularity but eliminates the injection sink). As a network-layer defense, restrict egress of the StatsD/DogStatsD UDP port (default 8125) to only the intended collector host so that injected packets cannot be redirected, and consider terminating telemetry at a local agent that re-serializes metrics from a structured form rather than forwarding raw text.

Affected VersionsENISA

Metrics::Any::Adapter::DogStatsd 0 <0.04

Affected Packages

euvd metrics_any_adapter_dogstatsd fix: 0.04

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerable component is the CPAN distribution Metrics::Any::Adapter::DogStatsd authored by PEVANS, which extends Metrics::Any::Adapter::Statsd to support Datadog's DogStatsD extensions (tag support beyond plain StatsD). The StatsD line-oriented UDP protocol allows multiple metrics in a single packet separated by '\n' newlines, and DogStatsD additionally permits per-metric tags appended after a '|#' separator. The root cause is CWE-93 (Improper Neutralization of CRLF Sequences, 'CRLF Injection'): neither the metric-emit path inherited from the Statsd parent adapter nor the internal _tags helper validates or escapes newline characters and StatsD control characters ('|', ':', '#', '@') in caller-supplied metric names or tag values, so any attacker-controlled string flowing into the adapter is concatenated directly into the wire payload. A sibling vulnerability in the parent Metrics::Any::Adapter::Statsd module is tracked alongside this issue (see related CVE-2026-50637 referenced in the advisory).

Know when Metrics gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (CPANSec) PRIMARY 9.1 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 5.3 MEDIUM

Network-reachable via injected strings with no auth or UI (AV:N/AC:L/PR:N/UI:N); impact is limited integrity corruption of telemetry data, with no confidentiality or availability effect.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (CPANSec).

CVSS VectorVendor: CPANSec

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

3
CVSS changed
Jun 11, 2026 - 20:22 NVD
9.1 (CRITICAL)
Patch available
Jun 10, 2026 - 21:16 EUVD
CVE Published
Jun 10, 2026 - 18:32 nvd
UNKNOWN (no severity yet)

DescriptionCVE.org

Metrics::Any::Adapter::DogStatsd versions before 0.04 for Perl does not protect against metric injections.

The statsd protocol (and extensions such as dogstatsd) allow mutiple metrics,separated by newlines, to be sent per packet.

Metrics::Any::Adapter::DogStatsd which extends Metrics::Any::Adapter::Statsd, which has a similar vulnerability.

In addition, the _tags function does not check tags for newlines or statsd control characters. The tags can be used for metric injections.

Executive ViewAI

Why It Matters

Metrics::Any::Adapter::DogStatsd versions before 0.04 contain a metric injection vulnerability (CVSS 9.1) allowing attackers to forge monitoring metrics by injecting newline characters through unsanitized input. Organizations relying on this Perl module risk observability blind spots that could mask operational and security incidents. No public exploit has been identified at time of analysis, and the EPSS score of 0.0% indicates minimal near-term exploitation probability, enabling orderly remediation.

Business Impact: High
Compensating Controls

Apply vendor patch (upgrade to Metrics::Any::Adapter::DogStatsd 0.04 or later).

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy