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-289358

CAT II (Medium)

The database management system (DBMS) must, for password-based authentication, require immediate selection of a new password upon account recovery.

Rule ID

SV-289358r1319282_rule

STIG

Oracle MySQL 9.x Security Technical Implementation Guide

Version

V1R1

CCIs

CCI-004063

Discussion

Recovered or reset credentials may be known to administrators, help desk personnel, or others involved in the recovery process. If a user is allowed to continue operating with a recovered or temporary password, the confidentiality of the authenticator cannot be assured. MySQL 9.x must require the user to select a new password immediately following account recovery or administrative password reset. In MySQL, this can be enforced by expiring the password at reset time. When an account password is expired, the user can authenticate but is placed in a restricted mode and must change the password before executing normal queries.

Check Content

Review MySQL 9.x account recovery and administrative password reset procedures.

Verify the DBMS is configured to require immediate selection of a new password upon account recovery.

Determine whether administrative password reset and account recovery workflows use password expiration so the user must change the password at first login after recovery.

Review:
- Password reset procedures.
- Account recovery scripts or automation.
- Sample "ALTER USER" statements used during password reset.
- Test results showing a recovered user can connect only in restricted mode until a new password is selected.

Example evidence of a compliant reset workflow:
ALTER USER 'username'@'localhost' IDENTIFIED BY 'temporary_password' PASSWORD EXPIRE;

If account recovery or password reset procedures do not require password expiration and immediate password change at first login, this is a finding.

Fix Text

Configure MySQL 9.x password reset and account recovery procedures so recovered or administratively reset accounts require immediate password change at first login.

Use "PASSWORD EXPIRE" when assigning a temporary or reset password.

Example:
ALTER USER 'username'@'localhost' IDENTIFIED BY 'temporary_password' PASSWORD EXPIRE;

For newly created accounts that must set their own password at initial use, configure the account so the password is expired upon creation or immediately afterward in accordance with organizational procedures.

Verify the user is restricted from normal query execution until a new password is selected.