STIGQter STIGQter: STIG Summary: MariaDB Enterprise 10.x Security Technical Implementation Guide Version: 2 Release: 5 Benchmark Date: 01 Apr 2026:

The role(s)/group(s) used to modify database structure (including but not necessarily limited to tables, indexes, storage, etc.) and logic modules (stored procedures, functions, triggers, links to software external to the MariaDB, etc.) must be restricted to authorized users.

DISA Rule

SV-253689r960960_rule

Vulnerability Number

V-253689

Group Title

SRG-APP-000133-DB-000362

Rule Version

MADB-10-003000

Severity

CAT II

CCI(s)

Weight

10

Fix Recommendation

As the database administrator, revoke any permissions from a role that are deemed unnecessary by running the following SQL:

MariaDB> REVOKE PERMISSION FROM ROLE_NAME ;

Revoke any roles from a user if they are deemed unnecessary by running the following SQL:

MariaDB> REVOKE ROLE_NAME FROM test_user ;

If the revoked role is the default role for the user, the REVOKE command should be followed by a command to set a new default role that has appropriate permissions, or no default role:

MariaDB> SET DEFAULT ROLE NONE FOR test_user ;
MariaDB> SET DEFAULT ROLE ROLE_NAME for test_user ;

Check Contents

Gather a list of SHOW GRANTS commands. This list will include users and roles:

MariaDB> SELECT DISTINCT CONCAT( 'SHOW GRANTS FOR ', user,'@', host,';') AS grantQuery FROM mysql.user;

Run each SHOW GRANTS commands and verify that all objects have the correct privileges, if they do not, this is a finding.

MariaDB> SHOW GRANTS FOR 'user'@'host';

Find the data directory and verify its operating system privileges.

MariaDB> SHOW GLOBAL VARIABLES LIKE '%datadir%';

# ls -al /path/to/datadir

If permissions of the database directory are not limited to an authorized user account, this is a finding.

Vulnerability Number

V-253689

Documentable

False

Rule Version

MADB-10-003000

Severity Override Guidance

Gather a list of SHOW GRANTS commands. This list will include users and roles:

MariaDB> SELECT DISTINCT CONCAT( 'SHOW GRANTS FOR ', user,'@', host,';') AS grantQuery FROM mysql.user;

Run each SHOW GRANTS commands and verify that all objects have the correct privileges, if they do not, this is a finding.

MariaDB> SHOW GRANTS FOR 'user'@'host';

Find the data directory and verify its operating system privileges.

MariaDB> SHOW GLOBAL VARIABLES LIKE '%datadir%';

# ls -al /path/to/datadir

If permissions of the database directory are not limited to an authorized user account, this is a finding.

Check Content Reference

M

Target Key

5475