The vulnerability is a path traversal in the 'ecard_preview.php' script. The root cause is the lack of input validation for 'select' form fields within the Admidio\UI\Presenter\FormPresenter::validate function. An authenticated attacker could submit a path traversal payload (e.g., ../config.php) as the value for the ecard_template parameter. The validate function would incorrectly approve this malicious input. Subsequently, the ecard_preview.php script would pass this payload to the Admidio\Photos\ValueObject\ECard::getEcardTemplate function. This function then concatenates the malicious payload with a base directory and uses it in an fopen call, allowing the attacker to read arbitrary files from the server, including sensitive configuration files containing database credentials. The patch, found in commit 8d00eedfeb8bb2149a8ecc023941664b307c4a01, addresses the vulnerability by adding the missing validation logic to the FormPresenter::validate function, ensuring that only predefined, safe values are accepted for select fields.