STIGhubSTIGhub
STIGhub— A free STIG search and compliance tool·STIGs updated 1 hour ago
Powered by Pylon·Privacy·Terms·Feedback·© 2026 Beacon Cloud Solutions, Inc.
← Back to Oracle MySQL 9.x Security Technical Implementation Guide

V-289288

CAT I (High)

If MySQL authentication using passwords is employed, the database management system (DBMS) must enforce the DoW standards for password complexity and lifetime.

Rule ID

SV-289288r1319203_rule

STIG

Oracle MySQL 9.x Security Technical Implementation Guide

Version

V1R1

CCIs

CCI-000192CCI-004064

Discussion

OS/enterprise authentication and identification must be used (SRG-APP-000023-DB-000001). Native DBMS authentication may be used only when circumstances make it unavoidable; and must be documented and authorizing official (AO)-approved. The DoW standard for authentication is DoW-approved PKI certificates. Authentication based on user ID and password may be used only when it is not possible to employ a Public Key Infrastructure (PKI) certificate, and requires AO approval. In such cases, the DoW standards for password complexity and lifetime must be implemented. DBMS products that can inherit the rules for these from the operating system or access control program (e.g., Microsoft Active Directory) must be configured to do so. For other DBMSs, the rules must be enforced using available configuration parameters or custom code. Satisfies: SRG-APP-000164-DB-000401, SRG-APP-000860-DB-000250

Check Content

If DBMS authentication using passwords is not employed, this is not applicable.

If the DBMS is configured to inherit password complexity and lifetime rules from the OS or access control program, this is not a finding.

Review the MySQL Database Server 9.x settings relating to password complexity. Determine whether the following rules are enforced:
a. Minimum of 15 characters, including at least one of each of the following character sets:
- Uppercase.
- Lowercase.
- Numeric.
- Special characters (e.g., ~ ! @ # $ % ^ & * ( ) _ + = - ' [ ] / ? > <).
b. Minimum number of characters changed from previous password: 50 percent of the minimum password length; that is, eight.

Review the DBMS settings relating to password lifetime. Determine whether the following rules are enforced. If any are not, this is a finding.
a. Password lifetime limits for interactive accounts: Minimum 24 hours, maximum 60 days.
b. Password lifetime limits for noninteractive accounts: Minimum 24 hours, maximum 365 days.
c. Number of password changes before an old one may be reused: Minimum of five.

Connect as an admin and run the following command:
SELECT component_urn FROM mysql.component
where component_urn='file://component_validate_password' group by component_urn;

If the "validate password" component is installed, the result will be "file://component_validate_password".

If "validate password" component is not installed, this is a finding.

If the "component_validate_password" is installed, review the password policies to ensure required password complexity is met. 

Run the following to review the password policy:
SELECT VARIABLE_NAME, VARIABLE_VALUE
FROM performance_schema.global_variables where VARIABLE_NAME like 'valid%password%' or VARIABLE_NAME like 'password_%'  ;

For example, the results may look like the following:
'validate_password.check_user_name','ON'
'validate_password.dictionary_file',''
'validate_password.length','15'
'validate_password.mixed_case_count','1'
'validate_password.number_count','1'
'validate_password.policy','STRONG'
'validate_password.special_char_count','1'
'password_reuse_interval','0'
'password_require_current','OFF'
'password_history','0'

If these results do not meet password complexity requirements listed above, this is a finding.

Additionally, if MySQL 9.x uses runtime-configurable password transformation rounds or iteration controls, review the configured value and verify it meets the organization-defined minimum. Verify only authorized administrators can modify runtime password-transformation parameters and that procedures exist to detect unauthorized weakening of the setting. If the configured rounds/iteration value is below the approved minimum, or if unauthorized principals can change it, this is a finding.

Fix Text

If the use of passwords is not needed, configure the MySQL Database Server 9.x to prevent their use if it is capable of this; if it is not so capable, institute policies and procedures to prohibit their use.

If the MySQL Database Server 9.x can inherit password complexity rules from the operating system or access control program, configure it to do so.

Otherwise, use MySQL Database Server 9.x configuration parameters and/or custom code to enforce the following rules for passwords:
a. Minimum of 15 characters, including at least one of each of the following character sets:
- Uppercase.
- Lowercase.
- Numeric.
- Special characters (e.g., ~ ! @ # $ % ^ & * ( ) _ + = - ' [ ] / ? > <).
b. Minimum number of characters changed from previous password: 50 percent of the minimum password length; that is, eight.
c. Password lifetime limits for interactive accounts: Minimum 24 hours, maximum 60 days.
d. Password lifetime limits for noninteractive accounts: Minimum 24 hours, maximum 365 days.
e. Number of password changes before an old one may be reused: Minimum of five.

As the database admin:
INSTALL COMPONENT 'file://component_validate_password';

Set Password Policies. For example:
set persist validate_password.check_user_name='ON';
set persist validate_password.dictionary_file='<FILENAME OF DICTIONARY FILE';
set persist validate_password.length=15;
set persist validate_password.mixed_case_count=1;
set persist validate_password.special_char_count=1;
set persist validate_password.number_count=1;
set persist validate_password.policy='STRONG';
set persist password_history = 5;
set persist password_reuse_interval = 365;
SET GLOBAL default_password_lifetime = 180;

Optional:
set persist password_require_current=YES

This can also be set at the account level:
ALTER USER 'jeffrey'@'localhost'
  PASSWORD HISTORY 5
  PASSWORD REUSE INTERVAL 365 DAY;
ALTER USER 'jeffrey'@'localhost' PASSWORD EXPIRE INTERVAL 90 DAY;

Configure MySQL 9.x password transformation rounds or iteration controls to meet the organization-defined minimum and restrict the ability to change those settings to authorized administrators only. Implement monitoring and review procedures to detect unauthorized runtime weakening of the password transformation setting.