--- a/src/civetweb.c	2026-04-19 14:40:50.000000000 +0000
+++ b/src/civetweb.c	2026-07-04 21:16:51.652683267 +0000
@@ -12780,29 +12780,6 @@
 }
 
 
-#if !defined(NO_POPEN)
-static void
-do_ssi_exec(struct mg_connection *conn, char *tag)
-{
-	char cmd[1024] = "";
-	struct mg_file file = STRUCT_FILE_INITIALIZER;
-
-	if (sscanf(tag, " \"%1023[^\"]\"", cmd) != 1) {
-		mg_cry_internal(conn, "Bad SSI #exec: [%s]", tag);
-	} else {
-		cmd[1023] = 0;
-		if ((file.access.fp = popen(cmd, "r")) == NULL) {
-			mg_cry_internal(conn,
-			                "Cannot SSI #exec: [%s]: %s",
-			                cmd,
-			                strerror(ERRNO));
-		} else {
-			send_file_data(conn, &file, 0, INT64_MAX, 0); /* send static file */
-			pclose(file.access.fp);
-		}
-	}
-}
-#endif /* !NO_POPEN */
 
 
 static int
@@ -12852,10 +12829,6 @@
 
 					if ((len > 12) && !memcmp(buf + 5, "include", 7)) {
 						do_ssi_include(conn, path, buf + 12, include_level + 1);
-#if !defined(NO_POPEN)
-					} else if ((len > 9) && !memcmp(buf + 5, "exec", 4)) {
-						do_ssi_exec(conn, buf + 9);
-#endif /* !NO_POPEN */
 					} else {
 						mg_cry_internal(conn,
 						                "%s: unknown SSI "
