When adding a private file via the editor in Drupal 8.2.x before 8.2.7, the editor will not correctly check access for the file being attached, resulting in an access bypass.
https://www.drupal.org/SA-2017-001
https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-5528