The Samba-Bugzilla – Attachment 18912 Details for
Bug 16034
CVE-2026-4408 [SECURITY] Remote Code Execution in SAMR
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for master
CVE-2026-4408-samr-rce-master-01.patch (text/plain), 1.29 KB, created by
Volker Lendecke
on 2026-03-19 11:34:23 UTC
(
hide
)
Description:
Patch for master
Filename:
MIME Type:
Creator:
Volker Lendecke
Created:
2026-03-19 11:34:23 UTC
Size:
1.29 KB
patch
obsolete
>From da6fd9f4c24c40c664f8525f508d2d4c575ffdaf Mon Sep 17 00:00:00 2001 >From: Volker Lendecke <vl@samba.org> >Date: Wed, 18 Mar 2026 12:24:47 +0100 >Subject: [PATCH] CVE-2026-4408: samr-server: Deny usernames with shell > meta-chars in validatepassword > >We pass this on to the check password script, prevent remote command >execution. > >Bug: https://bugzilla.samba.org/show_bug.cgi?id=16034 >Signed-off-by: Volker Lendecke <vl@samba.org> >--- > source3/rpc_server/samr/srv_samr_chgpasswd.c | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > >diff --git a/source3/rpc_server/samr/srv_samr_chgpasswd.c b/source3/rpc_server/samr/srv_samr_chgpasswd.c >index 41fe5bcc71e..5f9048d7ee4 100644 >--- a/source3/rpc_server/samr/srv_samr_chgpasswd.c >+++ b/source3/rpc_server/samr/srv_samr_chgpasswd.c >@@ -1025,6 +1025,24 @@ NTSTATUS check_password_complexity(const char *username, > return NT_STATUS_OK; > } > >+ { >+ char *escaped = NULL; >+ bool same; >+ >+ escaped = escape_shell_string(username); >+ if (escaped == NULL) { >+ return NT_STATUS_NO_MEMORY; >+ } >+ >+ same = (strcmp(username, escaped) == 0); >+ >+ SAFE_FREE(escaped); >+ >+ if (!same) { >+ return NT_STATUS_INVALID_USER_PRINCIPAL_NAME; >+ } >+ } >+ > cmd = talloc_string_sub(tosctx, lp_check_password_script(tosctx, lp_sub), "%u", > username); > if (!cmd) { >-- >2.34.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
vl
:
ci-passed+
Actions:
View
Attachments on
bug 16034
:
18904
|
18906
|
18907
|
18908
|
18909
|
18910
|
18911
|
18912
|
18914
|
18970
|
18976
|
18986