Skip to main content

Admidio EUVDEUVD-2026-28265

| CVE-2026-41656 MEDIUM
Path Traversal (CWE-22)
2026-04-29 https://github.com/Admidio/admidio GHSA-m9h6-8pqm-xrhf
4.5
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

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

  1. Recon
    Create low-privilege user account
  2. Delivery
    Obtain public folder UUID via documents listing
  3. Exploit
    Craft traversal URL with ../../../install/config.php
  4. Install
    Social engineer admin to click link
  5. C2
    Admin's CSRF request registers traversal file in database
  6. Execute
    Attacker lists folder and finds registered file
  7. Impact
    Attacker downloads file via mode=download
  8. Step 8
    Attacker reads database credentials from config.php

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: (1) Attacker must have a regular user account with access to the documents module (default permissions allow this); (2) A documents administrator must exist and be social-engineered into clicking a crafted link from an attacker-controlled domain or email; (3) The target folder must be readable by the attacker's account (typically true for shared documents folders); (4) The install/config.php file must still exist on the server (present in Admidio installations where the installer has not been deleted post-deployment); (5) The web server process must have read permission on the target file (always true for install/config.php and other application files). Attack vector is network-based with low complexity (single GET request via hyperlink). No special non-default configuration is required - all components (documents module, default folder structure, SameSite=Lax cookie policy) are present in standard Admidio deployments. The attack does not require authentication as the *attacker* (exploits admin's authentication), but does require the attacker to have created or obtained a low-privilege account.

Impact

CVSS 4.5 (AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N) indicates network-accessible exploitation requiring high-privilege authentication (documents administrator), user interaction (link click), and resulting in high confidentiality impact with no integrity or availability impact. The score correctly reflects the constrained attack surface (requires admin-level documents access) but understates real-world severity because: (1) the vulnerability chains three distinct flaws (input validation, CSRF, cookie policy) into a practical attack requiring only low-privileged user account creation and social engineering; (2) the primary target install/config.php contains plaintext database credentials, enabling full Admidio compromise and potentially lateral movement to database infrastructure; (3) attack complexity is low (simple URL click, no JavaScript or special browser behavior); (4) the attacker obtains a persistent file listing entry, enabling repeated downloads or further reconnaissance. The PR:H component is somewhat misleading because the *target* is high-privilege (admin), but the *attacker* needs only low privilege (any user account) to initiate the CSRF. No CISA KEV status provided, no public POC confirmed in input data, and no vendor patch version confirmed yet (advisory indicates fixed in 5.0.9 but not independently verified). The vulnerability is realistic and high-priority for any Admidio installation with documents functionality enabled and multi-user access, as most organizations operating group management systems have both administrators and regular users.

Exploit ScenarioDerived

An attacker with a regular Admidio user account observes that a documents administrator has created a shared folder accessible to multiple users. The attacker crafts a URL like https://target.com/modules/documents-files.php?mode=add&folder_uuid=550e8400-e29b-41d4-a716-446655440000&name=../../../install/config.php and emails it to the administrator with a social engineering message (e.g., 'Please click this link to review the new shared folder'). When the administrator clicks the link in their browser, their session cookie is automatically included (SameSite=Lax allows GET), the add action processes the traversal path without CSRF validation, and install/config.php is registered in the database as a file entry in the public folder. The attacker then uses their own user session to list the folder, retrieves the file's UUID, and downloads it via mode=download, obtaining plaintext database credentials and other sensitive configuration 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's document add mode allows authenticated attackers to register arbitrary server files into document folders via unvalidated name parameter, enabling arbitrary file read when combined with CSRF. A low-privileged user can trick a documents administrator into clicking a malicious link to register sensitive files like install/config.php (containing database credentials) into a publicly accessible documents folder, then download those files using the attacker's own session. The vulnerability chains insufficient input validation (accepts ../ sequences), missing CSRF protection on the add action, and SameSite=Lax cookies that permit cross-site GET requests from administrators.

RemediationAI

Upgrade Admidio to version 5.0.9 or later immediately, as the vendor has released a patched version addressing all three root causes: corrected input validation type for the name parameter, addition of CSRF token validation on the add action, and path canonicalization checks in addFolderOrFileToDatabase(). If immediate upgrade is not possible, implement compensating controls: (1) Restrict the documents module to administrators only by disabling user access in the permission settings (trade-off: users cannot store or share documents); (2) Move or remove the install/ directory from the web root if installation has completed (no functional impact, recommended best practice); (3) Apply firewall rules to block access to modules/documents-files.php?mode=add from non-administrative IP ranges (trade-off: restricts legitimate use from certain locations); (4) Implement SameSite=Strict session cookie policy by modifying src/Session/Entity/Session.php:544 from 'lax' to 'strict' (trade-off: requires POST form submission for cross-site authenticated navigation, breaks some single sign-on flows). The vendor advisory is available at https://github.com/Admidio/admidio/security/advisories/GHSA-m9h6-8pqm-xrhf.

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 is a web-based user and group management system written in PHP. The vulnerability exists in modules/documents-files.php line 222, where the add mode uses admFuncVariableIsValid($_GET, 'name', 'string') to validate user input. The 'string' type applies only HTML encoding via SecurityUtils::encodeHTML() and StringUtils::strStripTags(), which do not filter path traversal sequences like ../ because those characters contain no HTML special characters. The correct validation type is 'file', which invokes StringUtils::strIsValidFileName() and calls basename($filename) !== $filename to reject directory separators. The vulnerable path is then passed to Folder::addFolderOrFileToDatabase() in src/Documents/Entity/Folder.php:121-135, which concatenates user input directly into file paths without realpath() validation or basename() checks. The traversal path is stored verbatim in the database as fil_name, and when files are downloaded via DocumentsService.php:68-119, the getFullFilePath() method reconstructs the traversal path and serves the arbitrary file via readfile(). The CSRF vector is enabled by SameSite=Lax session cookies (src/Session/Entity/Session.php:544), which allow cross-site GET requests from top-level navigations to include the administrator's session cookie, while the missing SecurityUtils::validateCsrfToken() call (present in folder_delete and file_delete actions) leaves the add action unprotected. The root cause is CWE-22 (Path Traversal) combined with CWE-352 (Cross-Site Request Forgery).

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 4.5 MEDIUM
AV:N/AC:L/PR:H/UI:R/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
High
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

DescriptionGitHub Advisory

Summary

The add mode in modules/documents-files.php accepts a name parameter validated only as 'string' type (HTML encoding), allowing path traversal characters (../) to pass through unfiltered. Combined with the absence of CSRF protection on this endpoint and SameSite=Lax session cookies, a low-privileged attacker can trick a documents administrator into clicking a crafted link that registers an arbitrary server file (e.g., install/config.php containing database credentials) into a documents folder accessible to the attacker.

Details

Root cause - incorrect input validation type (modules/documents-files.php:222):

php
case 'add':
    $getName = admFuncVariableIsValid($_GET, 'name', 'string');

The 'string' type in admFuncVariableIsValid() only applies SecurityUtils::encodeHTML(StringUtils::strStripTags($value)) (system/bootstrap/function.php:414-416). Since ../ contains no HTML special characters (<, >, &, ", '), path traversal sequences pass through unchanged.

The correct type would be 'file', which calls StringUtils::strIsValidFileName() (src/Infrastructure/Utils/StringUtils.php:217-236). This function checks basename($filename) !== $filename at line 228, which would reject any path containing directory separators.

Missing CSRF protection (modules/documents-files.php:221-238):

php
case 'add':
    $getName = admFuncVariableIsValid($_GET, 'name', 'string');

    if (!$gCurrentUser->isAdministratorDocumentsFiles()) {
        throw new Exception('SYS_NO_RIGHTS');
    }

    $folder = new Folder($gDb);
    $folder->readDataByUuid($getFolderUUID);
    $folder->addFolderOrFileToDatabase($getName);
    // ...

No SecurityUtils::validateCsrfToken() or form object validation. Compare with folder_delete (line 140) and file_delete (line 170) which both validate CSRF tokens. The add action operates entirely via GET parameters.

Unsafe path construction (src/Documents/Entity/Folder.php:121-135):

php
public function addFolderOrFileToDatabase(string $newFolderFileName): void
{
    $newFolderFileName = urldecode($newFolderFileName);
    $newObjectPath = $this->getFullFolderPath() . '/' . $newFolderFileName;
    // ...
    if (is_file($newObjectPath)) {
        $newFile = new File($this->db);
        $newFile->setValue('fil_fol_id', $folderId);
        $newFile->setValue('fil_name', $newFolderFileName);  // traversal stored in DB
        // ...
        $newFile->save();
    }
}

No realpath() comparison or basename() check. The traversal filename (e.g., ../../../install/config.php) is stored verbatim as fil_name in the database.

File served on download (src/Documents/Entity/File.php:88-91, src/Documents/Service/DocumentsService.php:68-119):

php
// File.php:88-91
public function getFullFilePath(): string
{
    return $this->getFullFolderPath() . '/' . $this->getValue('fil_name', 'database');
}

// DocumentsService.php:75-118
$completePath = $file->getFullFilePath();  // reconstructs traversal path
// ...
readfile($completePath);  // serves arbitrary file

SameSite=Lax allows cross-site GET (src/Session/Entity/Session.php:544):

php
'samesite' => 'lax'

Top-level GET navigations from cross-site origins include the session cookie, enabling the CSRF attack vector.

PoC

Prerequisites: Attacker has a regular user account with access to the documents module. A documents administrator is available to be social-engineered.

bash
# Step 1: As regular user, browse the documents module to obtain a public folder UUID
curl -b 'attacker_session' 'https://target.com/modules/documents-files.php?mode=list'
# Note a folder_uuid from the response, e.g., "550e8400-e29b-41d4-a716-446655440000"
# Step 2: Craft a link targeting install/config.php (adjust ../ depth for folder nesting)
# For a folder at adm_my_files/documents/Photos/, use three levels:
PAYLOAD_URL='https://target.com/modules/documents-files.php?mode=add&folder_uuid=550e8400-e29b-41d4-a716-446655440000&name=../../../install/config.php'
# Step 3: Send this link to a documents administrator (email, chat, etc.)
# When the admin clicks it, the server's install/config.php is registered in the Photos folder
# The admin sees a redirect back to the documents page (normal behavior)
# Step 4: As attacker, list the folder to find the new file entry
curl -b 'attacker_session' 'https://target.com/modules/documents-files.php?mode=list&folder_uuid=550e8400-e29b-41d4-a716-446655440000'
# The traversal file appears in the listing with its file_uuid
# Step 5: Download the file using its UUID
curl -b 'attacker_session' 'https://target.com/modules/documents-files.php?mode=download&file_uuid=<FILE_UUID>'
# Response contains the contents of install/config.php, including:
# $g_adm_srv  (database host)
# $g_adm_usr  (database username)
# $g_adm_pw   (database password)
# $g_adm_db   (database name)

Impact

  • Arbitrary server file read: An attacker can read any file on the server that the web server process has read access to, including install/config.php (database credentials), /etc/passwd, application source code, and other configuration files.
  • Database credential exposure: The primary target install/config.php contains plaintext database credentials, enabling direct database access and full compromise of the Admidio installation.
  • Low attack complexity: The CSRF vector requires only that an admin clicks a single link - no JavaScript, no form submission, no special browser behavior.

Recommended Fix

Fix 1 - Use 'file' validation type for the name parameter (modules/documents-files.php:222):

php
// Before (vulnerable):
$getName = admFuncVariableIsValid($_GET, 'name', 'string');

// After (fixed):
$getName = admFuncVariableIsValid($_GET, 'name', 'file');

This invokes StringUtils::strIsValidFileName() which checks basename($filename) !== $filename and rejects any path containing directory traversal.

Fix 2 - Add CSRF protection to the add mode (modules/documents-files.php:221-238):

Change the add action from GET to POST and add CSRF token validation:

php
case 'add':
    SecurityUtils::validateCsrfToken($_POST['adm_csrf_token']);
    $getName = admFuncVariableIsValid($_POST, 'name', 'file');

    if (!$gCurrentUser->isAdministratorDocumentsFiles()) {
        throw new Exception('SYS_NO_RIGHTS');
    }

    $folder = new Folder($gDb);
    $folder->readDataByUuid($getFolderUUID);
    $folder->addFolderOrFileToDatabase($getName);
    // ...

Fix 3 (defense in depth) - Add path canonicalization in addFolderOrFileToDatabase() (src/Documents/Entity/Folder.php):

php
public function addFolderOrFileToDatabase(string $newFolderFileName): void
{
    $newFolderFileName = urldecode($newFolderFileName);
    $newObjectPath = $this->getFullFolderPath() . '/' . $newFolderFileName;

    // Ensure the resolved path is within the folder directory
    $realPath = realpath($newObjectPath);
    $folderPath = realpath($this->getFullFolderPath());
    if ($realPath === false || !str_starts_with($realPath, $folderPath . '/')) {
        throw new Exception('SYS_FILENAME_INVALID');
    }
    // ... rest of method
}

All three fixes should be applied for defense in depth.

Threat Intelligence Overview

EPSS Score
0.0%
Top 90% 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

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

Attack Technique

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

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