mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
znc: fix modtcl rce
ZNC's modtcl fails to properly escape certain IRC events, which allows executing code within that ZNC instance, when the module is loaded. Fixes: CVE-2024-39844
This commit is contained in:
parent
366e022106
commit
eed6707798
@ -1,4 +1,4 @@
|
||||
{ lib, stdenv, fetchurl, openssl, pkg-config
|
||||
{ lib, stdenv, fetchurl, fetchpatch2, openssl, pkg-config
|
||||
, withPerl ? false, perl
|
||||
, withPython ? false, python3
|
||||
, withTcl ? false, tcl
|
||||
@ -18,6 +18,14 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "03fyi0j44zcanj1rsdx93hkdskwfvhbywjiwd17f9q1a7yp8l8zz";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch2 {
|
||||
name = "CVE-2024-39844.patch";
|
||||
url = "https://people.znc.in/~darthgandalf/dir/ymQgfvwiG54pPFqyv1U0pcvvj5PLz5.txt";
|
||||
hash = "sha256-+WPlErDI4AR3UZL3P8IitFop1MBEa97pro57pr0/TZw=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [ openssl ]
|
||||
|
Loading…
Reference in New Issue
Block a user