SilverStripe 2.3.x before 2.3.8 and 2.4.x before 2.4.1 when running on servers with certain configurations allows remote attackers to obtain sensitive information via a direct request to PHP files in the (1) sapphire (2) cms or (3) mysite folders which reveals the installation path in an error message.