Mojolicious::Plugin::Statsd CVE-2026-46740
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend HTTP request with crafted metric-delimiter characters
-
DeliveryApplication passes unsanitized input to Plugin::Statsd metric API
-
ExploitPlugin constructs raw statsd UDP payload including injected delimiters
-
ExecutionBackend statsd daemon parses injected protocol fields
-
ImpactFalse or forged metrics recorded in monitoring backend
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 target Mojolicious application passes data derived from untrusted external sources (HTTP request parameters, headers, user-provided identifiers, etc.) directly into metric name or set-value arguments of Mojolicious::Plugin::Statsd without prior sanitization of newline ('\n'), colon (':'), or pipe ('|') characters. Applications that use only hardcoded or internally generated metric names and values are not exploitable. The CVSS vector AV:N/AC:L/PR:N/UI:N reflects that no authentication is required and the network path to the application is sufficient - but the application must have a code path where attacker-controlled strings reach the statsd metric API. Exploitation is limited to metric data integrity: there is no code execution, no file system access, and no impact outside the statsd backend. |
| Impact | CVSS 5.3 Medium with vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N indicates network-reachable, low-complexity, unauthenticated exploitation with limited integrity impact and no confidentiality or availability impact. EPSS at 0.01% (1st percentile) strongly corroborates low real-world exploitation interest. KEV status is negative and no POC code has been identified. The scope is unchanged (S:U), meaning the injected metrics cannot escalate beyond the statsd backend. The practical impact is corrupted or forged monitoring data - an attacker could inflate counters, inject phantom timers, or pollute gauges in a metrics dashboard. This does not represent a path to code execution, data exfiltration, or service disruption. Risk is elevated only in environments where statsd metrics feed automated alerting or autoscaling decisions, where metric poisoning could indirectly cause operational harm. Overall, this is a genuine but low-severity data-integrity issue. |
| Exploit ScenarioDerived | An attacker submits a crafted HTTP request to a Mojolicious application where a user-supplied value (such as a search query, username, or event label) is passed directly as a statsd metric name or set value. The string 'legit_metric\ninjected_metric:9999|c' would cause the plugin to emit two UDP datagrams to the statsd backend - the intended metric and an attacker-crafted counter - corrupting monitoring dashboards or triggering false alerts. No public POC exists, but the attack requires only knowledge of statsd protocol delimiters and the ability to influence metric input values. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 28, 2026
Metric injection in Mojolicious::Plugin::Statsd through version 0.04 for Perl allows remote unauthenticated attackers to inject arbitrary statsd metrics by supplying crafted values containing newlines, colons, or pipe characters - the delimiters of the statsd wire protocol. Applications that pass untrusted input directly into metric names or set values are affected. No public exploit exists and EPSS is 0.01% (1st percentile), placing this firmly in the low-priority tier despite network accessibility; exploitation requires attacker-controlled data to flow into metric collection paths.
RemediationAI
Upgrade Mojolicious::Plugin::Statsd to version 0.06 or later via CPAN (cpanm Mojolicious::Plugin::Statsd or cpan Mojolicious::Plugin::Statsd). Version 0.06 replaces the plugin's own statsd protocol construction with Net::Statsd::Tiny v0.4.0+, which sanitizes metric names and values against delimiter injection. The fix is confirmed in the MetaCPAN changelog (https://metacpan.org/release/RRWO/Mojolicious-Plugin-Statsd-0.06/changes) and the GitHub commit patch (https://github.com/robrwo/perl-Mojolicious-Plugin-Statsd/commit/f049156982a2c0b8050f173e24a04a29ddd64853.patch). If an immediate upgrade is not possible, the compensating control is to sanitize all metric names and values in application code before passing them to the plugin - specifically, strip or reject strings containing newline characters ('\n', '\r'), colons (':'), and pipe characters ('|'). This workaround adds validation overhead and must be applied at every call site, making it error-prone; the upgrade is strongly preferred.
Affected ProductsAI
Mojolicious::Plugin::Statsd versions through 0.04 for Perl are affected. Version 0.05 is not mentioned in available data and should be treated as potentially affected. The fixed release is version 0.06, confirmed by the MetaCPAN changelog at https://metacpan.org/release/RRWO/Mojolicious-Plugin-Statsd-0.06/changes and the upstream patch commit f049156982a2c0b8050f173e24a04a29ddd64853 at GitHub. No CPE string was provided in the source data; the module is distributed via CPAN under the RRWO author namespace.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The statsd protocol encodes metrics as colon-delimited key:value pairs separated by pipes for type and sample rate, with newlines separating multiple metrics in a single UDP packet (e.g., 'page.load:120|ms'). CWE-93 (Improper Neutralization of Special Elements in Output Used by a Downstream Component) describes exactly this class of injection: user-controlled strings are embedded into a structured protocol output without sanitizing the protocol's own delimiter characters. The original Mojolicious::Plugin::Statsd adapter constructed statsd payloads directly via sprintf in Perl (e.g., sprintf '%s:%d|ms', $name, $time), without stripping or rejecting newlines ('\n'), colons (':'), or pipes ('|') from the $name or value inputs. A related vulnerability, CVE-2026-46720, affected the Net::Statsd::Tiny dependency at a similar layer. The fix in version 0.06 removes the plugin's own protocol-construction logic entirely, delegating to Net::Statsd::Tiny v0.4.0+, which addresses the sanitization at the client library level.
Know when the next one hits your stack
- 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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Primary rating from Vendor (9b29abf9-4ab0-4765-b253-1875cd9b441e) · only source for this CVE.
CVSS VectorVendor: 9b29abf9-4ab0-4765-b253-1875cd9b441e
Lifecycle Timeline
2DescriptionCVE.org
Mojolicious::Plugin::Statsd versions through 0.04 for Perl allowed metric injections.
The metric names and set values were not checked for newlines, colons or pipes. Metrics generated from untrusted sources could inject additional statsd metrics.
Version 0.06 changes the module from being a statsd client to using a separate statsd client. It defaults to using a version of Net::Statsd::Tiny that fixes a similar issue (CVE-2026-46720).
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB