Cloudanix VulnDB

CVE-2024-39844

Critical · 9.8

CVSS

9.8

EPSS

3.9%

Published

Jul 3, 2024

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

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

  1. Identify ZNC server with modtcl loaded
  2. Craft and send malicious KICK IRC command
  3. 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