Hive creates a credentials file to a temporary directory in the file system with permissions 644 by default when the file permissions are not set explicitly. Any unauthorized user having access to the directory can read the sensitive information written into this file. Users are recommended to upgrade to version 4.0.1, which fixes this issue.
https://lists.apache.org/thread/h27ohpyrqf9w1m3c0tqr7x8jg59rcrv6
https://issues.apache.org/jira/browse/HIVE-28134
https://github.com/apache/hive/commit/20106e254527f7d71b2e34455c4322e14950c620