CVE-2024-39844
Critical · 9.8CVSS
9.8
EPSS
3.9%
Published
Jul 3, 2024
CISA due date
—
Cloudanix analysis
A vulnerability in the ZNC chat bouncer software could let attackers take over the system remotely through a specific command.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Application
- Class
- RCE
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
A flaw in the modtcl module allows remote attackers to execute arbitrary code by sending a specially crafted KICK command to an IRC network managed by ZNC.
Why it matters to the business
Attackers could gain full control over the ZNC IRC bouncer, potentially accessing user communications, credentials, or using the server for further attacks.
How an attack unfolds
An attacker connects to a ZNC instance with modtcl enabled and sends a KICK command containing malicious TCL code that gets executed due to insufficient input sanitization.
How to fix it
Upgrade ZNC to the version containing commit ae353acf2fe61b50fb1a6617824c334a0bf22a4f or later, which is version 1.9.1 or newer.
How to confirm the fix worked
Verify the installed ZNC version is 1.9.1 or higher and check that modtcl is updated or disabled if not needed.
Typical attack path
- Identify ZNC server with modtcl loaded
- Craft and send malicious KICK IRC command
- Execute arbitrary code on the server
How to detect it
Review ZNC logs for suspicious KICK commands or unexpected process executions triggered by the modtcl module.
What your security team should do
- Update ZNC to the latest fixed version immediately
- Disable modtcl if not required
- Monitor for unusual IRC commands
The record
In ZNC before 1.9.1, remote code execution can occur in modtcl via a KICK.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | znc | 0 | 1.8.2-2+deb11u1 |
| Debian:12 | znc | 0 | 1.8.2-3.1+deb12u1 |
| Debian:13 | znc | 0 | 1.9.1-1 |
| Mageia:9 | znc | 0 | 1.8.2-21.1.mga9 |
| SUSE:Package Hub 15 SP6 | znc | 0 | 1.9.1-bp156.2.3.1 |
| Ubuntu:20.04:LTS | znc | 0 | No fix |
| Ubuntu:22.04:LTS | znc | 0 | No fix |
| Ubuntu:22.04:LTS | znc | 0 | 1.8.2-2ubuntu0.1 |
| Ubuntu:24.04:LTS | znc | 0 | No fix |
| Ubuntu:Pro:14.04:LTS | znc | 0 | No fix |
| Ubuntu:Pro:14.04:LTS | znc | 0 | 1.2-3ubuntu0.1+esm3 |
| Ubuntu:Pro:16.04:LTS | znc | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | znc | 0 | 1.6.3-1ubuntu0.2+esm2 |
| Ubuntu:Pro:18.04:LTS | znc | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | znc | 0 | 1.6.6-1ubuntu0.2+esm2 |
| Ubuntu:Pro:20.04:LTS | znc | 0 | 1.7.5-4ubuntu0.1~esm2 |
| Ubuntu:Pro:24.04:LTS | znc | 0 | 1.9.0-2ubuntu0.1~esm2 |
| openSUSE:Leap 15.6 | znc | 0 | 1.9.1-bp156.2.3.1 |
| openSUSE:Tumbleweed | znc | 0 | 1.9.1-1.1 |
Related vulnerabilities
- CVE-2026-114125 Storybook is a frontend workshop for building user interface components and pages in… CWE-94
- CVE-2026-113776 virtualenv is a tool for creating isolated virtual python environments. CWE-94
- CVE-2026-112100 A vulnerability was determined in DeepPavlov up to 1.7.0. CWE-94
- CVE-2026-112095 A flaw has been found in SourceCodester Inventory System 1.0. CWE-94
- CVE-2026-112042 A security flaw has been discovered in diem-project diem up to… CWE-94
- CVE-2026-112038 A vulnerability has been found in diem-project diem up to… CWE-94
- CVE-2026-111991 A security vulnerability has been detected in WongKinYiu yolov9 0.1. CWE-94
- CVE-2026-111986 A vulnerability was determined in AUTOMATIC1111 stable-diffusion-webui up to 1.10.1. CWE-94