UCF STIG Viewer Logo

Application role permissions must not be assigned to the Oracle PUBLIC role.


Finding ID Version Rule ID IA Controls Severity
V-219839 O121-BP-022800 SV-219839r533058_rule Medium
Permissions granted to PUBLIC are granted to all users of the database. Custom roles must be used to assign application permissions to functional groups of application users. The installation of Oracle does not assign role permissions to PUBLIC.
Oracle Database 12c Security Technical Implementation Guide 2022-06-13


Check Text ( C-21550r533056_chk )
From SQL*Plus:

select granted_role from dba_role_privs where grantee = 'PUBLIC';

If any roles are listed, this is a finding.
Fix Text (F-21549r533057_fix)
Revoke role grants from PUBLIC.

Do not assign role privileges to PUBLIC.

From SQL*Plus:

revoke [role name] from PUBLIC;