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

Overview

Finding IDVersionRule IDIA ControlsSeverity
V-271293SQLI-22-017700SV-271293r1111138_ruleCCI-000381medium
Description
SQL Server is capable of providing a wide range of features and services. Some of the default features and services 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.
STIGDate
Microsoft SQL Server 2022 Instance Security Technical Implementation Guide2025-05-30

Related Frameworks

3 paths across 3 frameworks
NIST 800-531 mapping
CM-7
1.00
  • DISA · 1 · disa_xccdf · related
  • DISA · 2025-01-23 · disa_cci_list · equivalent
NIST 800-1711 mapping
3.4.6
1.00
  • DISA · 1 · disa_xccdf · related
  • DISA · 2025-01-23 · disa_cci_list · equivalent
  • NIST · Rev 2 (Feb 2020, errata Jan 2021) · nist_800_171_app_d · equivalent
CCI1 mapping
CCI-000381
1.00
  • DISA · 1 · disa_xccdf · related

Details

Check Text (C-271293r1111138_chk)

To determine if [External Scripts Enabled] is enabled, execute the following command: SELECT name, value, value_in_use FROM sys.configurations WHERE name = 'External Scripts Enabled' If [value_in_use] is a [1], review the system documentation to determine whether the use of [External Scripts Enabled] is approved. If it is not approved, this is a finding.

Fix Text (F-75243r1111137_fix)

Disable use of or remove any external application executable object definitions that are not approved. To disable the use of [External Scripts Enabled] option, from the query prompt: EXEC SP_CONFIGURE 'External Scripts Enabled', 0; RECONFIGURE WITH OVERRIDE;