Rule ID
SV-289362r1319100_rule
Version
V1R1
CCIs
Trust anchors determine which certificate authorities are accepted as authoritative for validating certificates. If unapproved trust anchors are present, the DBMS may trust unauthorized or malicious certificates, which can undermine certificate validation and encrypted communications. MySQL 9.x environments that use transport layer security (TLS) certificate validation must be configured so only organization-approved trust anchors are present in the certification authority (CA) file or CA path used by the DBMS.
Review the MySQL 9.x TLS trust anchor configuration: 1. Identify the CA file or CA directory used by MySQL for certificate validation: SHOW VARIABLES LIKE 'ssl_ca'; SHOW VARIABLES LIKE 'ssl_capath'; 2. Verify the configured ssl_ca file and/or ssl_capath directory contains only organization-approved trust anchors. 3. Review the contents of the configured CA file or CA directory at the operating system level and compare them against the organization-approved trust anchor list. 4. Verify the CA file or directory is protected from unauthorized modification. If MySQL is configured to use a CA file or CA path containing trust anchors that are not organization-approved, this is a finding. If the CA file or CA path cannot be identified or controlled, this is a finding.
Configure MySQL 9.x to use only organization-approved trust anchors in the CA file or CA directory used for TLS certificate validation. Set the DBMS to reference an approved CA bundle or approved CA directory. Example: SET PERSIST ssl_ca = '/path/to/approved/ca-bundle.pem'; or: SET PERSIST ssl_capath = '/path/to/approved/ca-directory'; Remove any unapproved trust anchors from the configured CA file or CA directory, and protect the trust store from unauthorized modification.