Skip to main content

Admidio EUVDEUVD-2026-28263

| CVE-2026-41655 MEDIUM
Path Traversal (CWE-22)
2026-04-29 https://github.com/Admidio/admidio GHSA-m3vp-3jjm-gpmx
6.5
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Register account (or use existing)
  2. Delivery
    Authenticate to Admidio
  3. Exploit
    Navigate to ecard form
  4. Install
    Extract CSRF token from form HTML
  5. C2
    Modify ecard_template parameter to ../config.php
  6. Execute
    Submit POST request to ecard_preview.php
  7. Impact
    Trigger path traversal in ECard::getEcardTemplate()
  8. Step 8
    Read config.php file contents
  9. Step 9
    Extract database credentials from response
  10. Step 10
    Connect to database directly
  11. Step 11
    Compromise all user data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires four specific conditions that significantly constrain but do not eliminate real-world risk: (1) The attacker must be a registered user with authenticated access to Admidio-this cannot be bypassed, but many deployments allow public self-registration; (2) The ecard preview functionality must be enabled and accessible (modules/photos/ecard_preview.php must exist and be callable), which is enabled by default in standard Admidio installations; (3) The target file must be readable by the web server process user, which is true for config.php in default deployments where web server runs as www-data or similar and config.php is world-readable; (4) The attack succeeds only against paths accessible relative to the ecard_templates directory-arbitrary system file reads like /etc/passwd require the directory structure and file permissions to permit traversal far outside the data directory (typically achievable with 5-6 ../ sequences). These conditions are not edge-cases-they represent the default security posture of most Admidio deployments. The lack of admin privilege requirement and the presence of public registration on many installations make this exploitable by any user willing to create an account. Only the authentication requirement provides meaningful protection, and even that is minimal if registration is unrestricted.

Impact

This vulnerability presents critical real-world risk despite the moderate CVSS 6.5 score. The CVSS vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N) correctly indicates network accessibility, low attack complexity, and requirement for authenticated access, but understates impact because it only scores confidentiality impact while ignoring the downstream compromise enabled by credential disclosure. The authentication requirement (PR:L) limits exposure to registered users only, but most Admidio deployments allow public registration, making the practical barrier to exploitation low. The high confidentiality impact (C:H) is justified-database credentials exposed in config.php directly enable complete database compromise including user password hashes, personal data, and financial records if present. The absence of integrity or availability impact in the CVSS vector is misleading because leaked credentials enable follow-up attacks including SQL injection, privilege escalation, and potentially remote code execution if database privileges are misconfigured. Source code disclosure through arbitrary PHP file reads further aids reconnaissance for secondary vulnerabilities. No EPSS score, KEV status, or public exploit code was provided in the input data, but the presence of a working proof-of-concept in the GitHub advisory and the relative simplicity of the attack (single POST request with path traversal payload) strongly suggests this will become actively exploited once the patch is released and version comparison becomes trivial. Priority should be CRITICAL for any Admidio deployment storing sensitive data in the database.

Exploit ScenarioDerived

A registered user with a member account (no admin privileges required) logs into Admidio and navigates to the ecard functionality to send a greeting card from a photo album. After the form loads, the user intercepts the HTTP request to ecard_preview.php and modifies the ecard_template POST parameter from a legitimate template filename like greeting.php to ../config.php. The request includes a valid CSRF token extracted from the form, bypassing CSRF protection. The vulnerable endpoint processes the path traversal string without validation, concatenates it into the file path, and returns the contents of adm_my_files/config.php rendered within the ecard preview HTML. The attacker extracts database credentials from the response and uses them to connect directly to the database server, compromising all user data.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 29, 2026

Path traversal in Admidio ecard_preview.php allows authenticated users to read arbitrary server files including database credentials by bypassing filename validation on the ecard_template POST parameter. An authenticated attacker can supply path traversal payloads such as ../config.php to read adm_my_files/config.php containing unencrypted database host, username, and password, or traverse further to access system files. Exploitation requires only a regular member account with no special privileges, making this a high-impact vulnerability accessible to any registered user.

RemediationAI

Update Admidio to version 5.0.9 or later immediately-this is the vendor-released patch that adds filename validation to ecard_preview.php matching the existing validation in ecard_send.php. The patch implements the recommended fix by calling admFuncVariableIsValid() with 'file' type validation on the ecard_template parameter before passing it to getEcardTemplate(), blocking any path traversal sequences. If immediate patching is not feasible, implement compensating controls: (1) Use web server configuration (Apache mod_rewrite or nginx rewrite rules) to block POST requests to ecard_preview.php containing ../ in the request body, though this is fragile; (2) Restrict database user permissions to only the minimum required tables, limiting the impact if config.php is leaked and credentials are compromised; (3) Implement strict file permissions so adm_my_files/config.php is not world-readable and rotate database credentials immediately; (4) Consider disabling the ecard feature entirely via Admidio's module management if ecards are not essential to your deployment. The most effective interim measure is credential rotation plus strict file permission hardening, as the vulnerability cannot be fully mitigated without the code patch. Reference vendor advisory for patch instructions: https://github.com/Admidio/admidio/security/advisories/GHSA-m3vp-3jjm-gpmx

Affected VersionsENISA

admidio < 5.0.9

Affected Packages

composer admidio/admidio fix: 5.0.9
euvd admidio fix: 5.0.9

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Admidio's ecard preview functionality processes electronic greeting card templates through the ecard_preview.php endpoint. The vulnerability stems from incomplete input validation in the form processing pipeline. When the ecard form is submitted, the ecard_template parameter passes through FormPresenter::validate() which applies only strStripTags() sanitization to select box values-a function designed to remove HTML tags but not to restrict path traversal characters like ../ and /. This contrasts with ecard_send.php which explicitly calls admFuncVariableIsValid() with 'file' type validation that invokes strIsValidFileName() to reject any path containing directory traversal sequences. The unvalidated filename is then concatenated directly into a file path in ECard::getEcardTemplate() and passed to PHP's fopen() function, allowing the ../ sequences to escape the intended ecard_templates directory and access parent directories including the sensitive config.php file. CWE-22 (Path Traversal) is the root cause-insufficient canonicalization or restriction of paths containing special elements.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

DescriptionGitHub Advisory

Summary

The ecard_preview.php endpoint does not validate that the ecard_template POST parameter is a safe filename before passing it to ECard::getEcardTemplate(). An authenticated user can supply a path traversal payload (e.g., ../config.php) to read arbitrary files accessible to the web server process, including adm_my_files/config.php which contains database credentials.

Details

Root Cause: The ecard_template parameter is a select box whose value is only sanitized via strStripTags() during form validation, which does not restrict path traversal characters. Unlike ecard_send.php which explicitly validates the template name as a safe filename, ecard_preview.php omits this check entirely.

Code Path:

  1. modules/photos/ecards.php:143-152 - The form creates a select box with template filenames from adm_my_files/ecard_templates/. The form object is stored in the session.
  2. modules/photos/ecard_preview.php:33-34 - The POST request is validated against the stored form object:
php
$categoryEditForm = $gCurrentSession->getFormObject($_POST['adm_csrf_token']);
$formValues = $categoryEditForm->validate($_POST);
  1. src/UI/Presenter/FormPresenter.php:2190-2243 - The validate() method applies StringUtils::strStripTags() to all values and performs type-specific checks for captcha, date, editor, email, number, url, and uuid - but has no validation case for select box values. The attacker-controlled value ../config.php passes through unchanged.
  2. modules/photos/ecard_preview.php:48 - The unvalidated value is passed directly to getEcardTemplate():
php
$ecardDataToParse = $funcClass->getEcardTemplate($formValues['ecard_template']);
  1. src/Photos/ValueObject/ECard.php:67-77 - The filename is concatenated into the path and opened:
php
public function getEcardTemplate(string $tplFilename, string $tplFolder = ''): ?string
{
    if ($tplFolder === '') {
        $tplFolder = ADMIDIO_PATH . FOLDER_DATA . '/ecard_templates/';
    }
    // ...
    $fileHandle = @fopen($tplFolder . $tplFilename, 'rb');

With $tplFilename = '../config.php', this resolves to ADMIDIO_PATH/adm_my_files/ecard_templates/../config.php → ADMIDIO_PATH/adm_my_files/config.php.

Why ecard_send.php is NOT vulnerable: At line 35, it independently validates the template name:

php
$postTemplateName = admFuncVariableIsValid($_POST, 'ecard_template', 'file', array('requireValue' => true));

This calls strIsValidFileName() which checks basename($filename) !== $filename, blocking any path traversal. The preview endpoint lacks this check.

PoC

bash
# Step 1: Log in and visit the ecard form to create a session with a form object
# Navigate to: /modules/photos/ecards.php?photo_uuid=<valid_album_uuid>&photo_nr=1
# Extract the adm_csrf_token from the rendered form HTML
# Step 2: Send path traversal payload to read config.php (contains DB credentials)
curl -b 'PHPSESSID=<session_cookie>' \
  -X POST 'https://target/modules/photos/ecard_preview.php' \
  -d 'adm_csrf_token=<csrf_token>&ecard_template=../config.php&ecard_message=test&photo_uuid=<valid_uuid>&photo_nr=1&submit_action=preview'
# The response body will contain the contents of adm_my_files/config.php
# rendered inside the ecard preview HTML, including:
#   $g_adm_srv (database host)
#   $g_adm_db  (database name)
#   $g_adm_usr (database username)
#   $g_adm_pw  (database password)
# To traverse further outside adm_my_files:
# ecard_template=../../system/bootstrap/constants.php  (reads PHP source)
# ecard_template=../../../../../etc/passwd              (reads system files)

Impact

  • Database credential disclosure: Any authenticated user can read adm_my_files/config.php, exposing database host, name, username, and password. If the database is network-accessible, this enables full database compromise.
  • Source code disclosure: Arbitrary PHP files can be read, revealing application logic, internal paths, and potentially other secrets.
  • System file disclosure: With sufficient traversal depth (../../../../../etc/passwd), system files can be read, aiding further attacks.
  • Low barrier to exploit: Only requires a regular member account - no admin privileges needed.

Recommended Fix

Add filename validation to ecard_preview.php before passing the template name to getEcardTemplate(), matching the validation already present in ecard_send.php:

php
// In modules/photos/ecard_preview.php, add BEFORE line 48:
$postTemplateName = admFuncVariableIsValid(
    $formValues, 'ecard_template', 'file', array('requireValue' => true)
);
$ecardDataToParse = $funcClass->getEcardTemplate($postTemplateName);

Alternatively, add select box value validation to FormPresenter::validate() to verify that submitted select box values match one of the predefined options, which would protect all select boxes across the application:

php
// In src/UI/Presenter/FormPresenter.php, inside the switch statement in validate():
case 'select':
    if (isset($element['values']) && !array_key_exists($fieldValues[$element['id']], $element['values'])) {
        throw new Exception('SYS_FIELD_INVALID_INPUT', array($element['label']));
    }
    break;

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy