Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate as FAQ editor
-
DeliveryEmbed crafted img path (no 'content' substring) in FAQ HTML
-
ExploitSave malicious FAQ entry
-
InstallTrigger PDF export for that entry
-
C2concatenatePaths() coerces strpos false to 0
-
ExecuteUnsanitized path reaches file_get_contents()
-
ImpactRetrieve arbitrary file contents from PDF output
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 an authenticated user account with FAQ editing privileges within phpMyFAQ - this is the primary gating condition confirmed by PR:H in the CVSS 4.0 vector. The attacker must be able to store HTML content containing a crafted image path (img src attribute) in a FAQ entry, meaning the FAQ editing feature must be active and accessible to the attacker's role. PDF export functionality must be operational for the crafted path to reach concatenatePaths() and file_get_contents(). The crafted path must not contain the literal substring 'content'; if 'content' is present in the path, strpos() returns a valid integer offset and the traversal does not trigger. Exploitation is limited to files readable by the PHP process's OS user account. UI:N in the CVSS vector suggests the attacker can self-trigger PDF generation without requiring a second user to act. |
| Impact | The CVSS 4.0 base score of 5.1 reflects the limited real-world impact: PR:H (high privileges required - FAQ editor role), VC:L (low confidentiality impact), and no integrity or availability impact. These metrics align well with the described behavior: exploitation requires a legitimately credentialed user with content-editing rights, limiting the exposed attack surface to insider threats or scenarios where attacker-controlled accounts exist. EPSS data is not provided in the available intelligence, so exploitation probability cannot be quantified numerically. KEV status is absent, and no POC code is publicly identified - the vulnerability has not been observed in active exploitation campaigns. The risk is therefore best characterized as a post-authentication information disclosure with a meaningful but bounded scope: an attacker can read files accessible to the web server process (e.g., configuration files containing database credentials or API keys), which could enable lateral movement or privilege escalation in a compromised environment. The CVSS vector is internally consistent with the description and raises no conflicts requiring vendor clarification. |
| Exploit ScenarioDerived | An attacker with a valid phpMyFAQ account holding FAQ editor privileges creates or edits a FAQ entry and embeds an HTML img tag whose src attribute contains a crafted path without the substring 'content' - for example, a relative traversal string targeting /etc/passwd or the application's database configuration file. When PDF export is triggered for that FAQ entry (either by the attacker or by any user with export access), concatenatePaths() processes the img src, strpos() returns false, the path passes unsanitized to file_get_contents(), and the contents of the targeted file are embedded in the generated PDF, which the attacker then downloads. No public exploit code is currently identified, but the attack requires only standard HTTP requests and knowledge of the type-juggling behavior. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 10, 2026
Path traversal in phpMyFAQ's PDF export pipeline allows authenticated FAQ editors to read arbitrary server-side files by storing HTML with crafted image paths that exploit a type-juggling flaw in concatenatePaths(). When the substring 'content' is absent from an attacker-controlled path, strpos() returns false, which PHP silently coerces to integer 0, causing the full unsanitized path to pass through to file_get_contents() without canonicalization. No active exploitation is confirmed (not in CISA KEV), and no public exploit code has been identified at time of analysis, but the root cause is a low-complexity PHP type-juggling antipattern that is straightforward to weaponize once the attack surface is understood.
RemediationAI
Upgrade to phpMyFAQ 4.1.5 or later, which resolves the type-juggling flaw in concatenatePaths() per the vendor security advisory at https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-88g4-74f3-63x9. The exact patch version 4.1.5 is confirmed by the advisory title. If immediate patching is not feasible, consider restricting FAQ editing privileges to the minimum set of trusted users, since exploitation is gated on that role. As an additional compensating control, configure the web server user account to operate under a restrictive filesystem profile (e.g., PHP open_basedir directive set to the application's content directory), which would prevent file_get_contents() from reading outside the permitted path even if the traversal string is constructed - note that open_basedir is a process-level constraint and does not fix the code defect, so it should not be treated as a permanent substitute for patching. Disabling PDF export entirely eliminates this attack surface if the feature is not required by users.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 3 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
phpMyFAQ is an open-source PHP FAQ management system. The vulnerability resides in src/phpMyFAQ/Export/Pdf/Wrapper.php within the concatenatePaths() function, which is responsible for resolving image file paths during PDF generation. The root cause is CWE-22 (Improper Limitation of a Pathname to a Restricted Directory). Specifically, the code uses strpos() to locate the substring 'content' in a user-supplied path; strpos() returns the boolean false when no match is found, and PHP's loose typing coerces false to integer 0 in a numeric context, which the code interprets as a valid offset of 0 - effectively preserving the entire attacker-controlled string as the resolved path. This path is then passed to file_get_contents() with no realpath() normalization, no prefix check, and no directory-containment assertion, allowing path components such as '../' sequences to traverse outside the intended content root. Affected CPE: cpe:2.3:a:phpmyfaq:phpmyfaq:*:*:*:*:*:*:*:* for versions before 4.1.5.
Know when Phpmyfaq 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
High privileges (FAQ editor role) required; network-delivered but post-auth; impact limited to low confidentiality file read with no integrity or availability effect.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
phpMyFAQ before 4.1.5 contains a potential authenticated path traversal vulnerability in the concatenatePaths() function within src/phpMyFAQ/Export/Pdf/Wrapper.php. A user with FAQ editing privileges can store HTML containing crafted image paths that are processed during PDF generation. The path resolution logic locates the substring "content" within a user-controlled path using strpos(); when "content" is absent, strpos() returns false, which becomes 0 when cast to an integer, preserving the entire attacker-controlled path. This path is later passed to file_get_contents() without canonicalization or root-directory containment validation, which may allow reading of files outside the intended content directory.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Duplicate-email registration handling in phpMyFAQ 4.0.7 through 4.0.13 (and 4.0-nightly-2025-10-03 and earlier) lets una
Insufficient Session Expiration in GitHub repository thorsten/phpmyfaq prior to 3.2.2. Rated critical severity (CVSS 9.8
Authentication Bypass by Capture-replay in GitHub repository thorsten/phpmyfaq prior to 3.1.12. Rated critical severity
Weak Password Requirements in GitHub repository thorsten/phpmyfaq prior to 3.1.12. Rated critical severity (CVSS 9.8), t
Weak Password Requirements in GitHub repository thorsten/phpmyfaq prior to 3.1.8. Rated critical severity (CVSS 9.8), th
Unauthenticated SQL injection in phpMyFAQ before 4.1.2 allows remote attackers to extract credentials, admin tokens, and
In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) in admin/stat.ratings.php. Rated high severity (CVS
In phpMyFaq before 2.9.9, there is CSRF in admin/ajax.config.php. Rated high severity (CVSS 8.8), this vulnerability is
In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) for modifying a glossary. Rated high severity (CVSS
In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) in admin/stat.main.php. Rated high severity (CVSS 8
phpMyFAQ is an open source FAQ web application for PHP 8.1+ and MySQL, PostgreSQL and other databases. Rated high severi
phpMyFAQ is an open source FAQ web application for PHP 8.1+ and MySQL, PostgreSQL and other databases. Rated high severi
EUVD-2026-42891
GHSA-j3vx-7xgh-q759
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB