Overview
The labeled-response component of UnrealIRCd fails to properly sanitize the IRCv3 "label" message tag when it is echoed back in replies. This flaw can be triggered by any user on an IRC network that has two or more linked servers, enabling the crafted label to be interpreted as a server command. The vulnerability is present in UnrealIRCd versions 6.0.0 up to, but not including, 6.2.7.1.
Technical details
When the server processes an incoming IRCv3 label tag, it inserts the raw tag value directly into the outgoing message without escaping characters that could terminate the current command context. An attacker can embed a valid server command within the label, causing the receiving server to parse and execute the injected command as if it originated from the server itself. Exploitation requires the attacker to be connected to one server in a multi-server IRC topology and to send a crafted message containing the malicious label.
Impact
An attacker can execute arbitrary IRC server commands with the authority of the server process, potentially altering channel modes, disconnecting users, or performing other administrative actions. The impact is limited to IRC networks that run the vulnerable UnrealIRCd versions and have linked server configurations, exposing all users and services on those networks.
Recommended actions
- Patch the software to version 6.2.7.1 or later.
- Restrict network access between IRC servers to trusted hosts only.
- Monitor server logs for unexpected label tags that contain command syntax.
- Disable the labeled-response feature if it is not required.
- Review and tighten configuration of server-to-server command handling.
Detection
Review IRC server logs for label message tags that include characters such as colons, spaces, or command delimiters not normally present in label values. Look for patterns where a label tag appears to carry IRC commands or resembles typical server command syntax. Correlate any such entries with subsequent server actions to identify potential exploitation attempts.
Reference: NVD entry for CVE-2026-114713