Input validation error in ZNC - CVE-2024-39844

 

Input validation error in ZNC - CVE-2024-39844

Published: September 25, 2024 / Updated: November 22, 2024


Vulnerability identifier: #VU97707
CSH Severity: High
CVSS v4: 8.5 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-39844
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote user to compromise the affected system.

The vulnerability exists due to insufficient validation of user-supplied input in modtcl  when processing the reason to kick a user from the channel. A remote user can pass specially crafted input to the application and execute arbitrary code on the server.


Affected software

ZNC
Debian Linux
Gentoo Linux
Fedora
Ubuntu
znc (Ubuntu package)
znc-dev (Ubuntu package)
znc-perl (Ubuntu package)
znc-python (Ubuntu package)
znc-tcl (Ubuntu package)
znc-clientbuffer
znc (Debian package)
znc
net-irc/znc
znc-push

How to mitigate CVE-2024-39844

Install updates from vendor's website.

ZNC - update to 1.9.1
znc (Ubuntu package) - addressed in versions Ubuntu Pro, 1.8.2-2ubuntu0.1
znc-dev (Ubuntu package) - addressed in versions Ubuntu Pro, 1.8.2-2ubuntu0.1
znc-perl (Ubuntu package) - addressed in versions Ubuntu Pro, 1.8.2-2ubuntu0.1
znc-python (Ubuntu package) - addressed in versions Ubuntu Pro, 1.8.2-2ubuntu0.1
znc-tcl (Ubuntu package) - addressed in versions Ubuntu Pro, 1.8.2-2ubuntu0.1
znc-clientbuffer - addressed in versions 0-0.28.20190129git9766a4a.fc41, 0-0.28.20190129git9766a4a.fc42
znc (Debian package) - addressed in versions 1.8.2-2+deb11u1, 1.8.2-3.1+deb12u1
znc - addressed in versions 1.8.2-16.el8, 1.8.2-16.el9, 1.9.1-4.fc41, 1.9.1-4.fc42
net-irc/znc - update to 1.9.1
znc-push - addressed in versions 2.0.0-10.20210311git4243934.fc41, 2.0.0-10.20210311git4243934.fc42

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins