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

When invalid inputs are received, MariaDB must behave in a predictable and documented manner that reflects organizational and system objectives.

DISA Rule

SV-253743r961656_rule

Vulnerability Number

V-253743

Group Title

SRG-APP-000447-DB-000393

Rule Version

MADB-10-009100

Severity

CAT II

CCI(s)

Weight

10

Fix Recommendation

All errors and denials are logged to the sql errorlog. If the sql error log does not exist, install the sql error log plugin as follows:

MariaDB> INSTALL SONAME 'sql_errlog';

The error log should by default be located as sql_errors.log within the data directory (/var/lib/mysql by default).

Check Contents

As the database administrator, make a small SQL syntax error by running the following:

MariaDB> CREAT TABLEincorrect_syntax(id INT)
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near CREAT TABLEincorrect_syntax(id INT) at line 1

Now verify the syntax error was logged (change the log file name and part to suit the circumstances):

$ cat $DATADIR/sql_errors.log

2019-09-05 14:31:22 root[root] @ localhost [] ERROR 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near CREAT TABLEincorrect_syntax(id INT) at line 1 : CREAT TABLEincorrect_syntax(id INT)

Review security guide to determine how input errors from application to MariaDB are to be handled in general and if any special handling is defined for specific circumstances.

If it does not implement the documented behavior, this is a finding.

Vulnerability Number

V-253743

Documentable

False

Rule Version

MADB-10-009100

Severity Override Guidance

As the database administrator, make a small SQL syntax error by running the following:

MariaDB> CREAT TABLEincorrect_syntax(id INT)
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near CREAT TABLEincorrect_syntax(id INT) at line 1

Now verify the syntax error was logged (change the log file name and part to suit the circumstances):

$ cat $DATADIR/sql_errors.log

2019-09-05 14:31:22 root[root] @ localhost [] ERROR 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near CREAT TABLEincorrect_syntax(id INT) at line 1 : CREAT TABLEincorrect_syntax(id INT)

Review security guide to determine how input errors from application to MariaDB are to be handled in general and if any special handling is defined for specific circumstances.

If it does not implement the documented behavior, this is a finding.

Check Content Reference

M

Target Key

5475