UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

SQL Server External Scripts Enabled feature must be disabled, unless specifically required and approved.


Overview

Finding ID Version Rule ID IA Controls Severity
V-79347 SQL6-D0-017700 SV-94053r1_rule Medium
Description
SQL Server is capable of providing a wide range of features and services. Some of the features and services, provided by default, may not be necessary, and enabling them could adversely affect the security of the system. The External Scripts Enabled feature allows scripts external to SQL such as files located in an R library to be executed.
STIG Date
MS SQL Server 2016 Instance Security Technical Implementation Guide 2018-03-09

Details

Check Text ( C-78941r1_chk )
To determine if "External Scripts Enabled" option is enabled, execute the following query:

EXEC SP_CONFIGURE 'show advanced options', '1';
RECONFIGURE WITH OVERRIDE;
EXEC SP_CONFIGURE 'external scripts enabled';

If the value of "config_value" is "0", this is not a finding.

If the value of "config_value" is "1", review the system documentation to determine whether the use of "External Scripts Enabled" is required and authorized. If it is not authorized, this is a finding.
Fix Text (F-86099r1_fix)
Disable use of or remove any external application executable object definitions that are not authorized. To disable the use of "External Scripts Enabled" option, from the query prompt: 

sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
sp_configure 'external scripts enabled', 0;
GO
RECONFIGURE;
GO