A missing authorization check has been found in the user_mail_notifications function in mail_notifications_controller.rb of the mail notification API in the foreman package. The action returns another user's notification settings when only the generic view permission for mail notifications is present. A low-privileged network attacker or user who can view mail notifications can request any user id and read that user's subscription choices and stored mail search strings.