An issue was discovered in Joomla! before 3.9.5. The Media Manager component does not properly sanitize the folder parameter, allowing attackers to act outside the media manager root directory.
https://www.exploit-db.com/exploits/46710/
https://developer.joomla.org/security-centre/777-20190401-core-directory-traversal-in-com-media