CVE-2026-57961: phpMyFAQ - Authenticated Path Traversal in PDF Export via concatenatePaths Function
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 filegetcontents() without canonicalization or root-directory containment validation, which may allow reading of files outside the intended content directory.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-57961?
The severity of CVE-2026-57961 is rated as medium with a score of 5.1.
How do I fix CVE-2026-57961?
To fix CVE-2026-57961, upgrade phpMyFAQ to version 4.1.5 or later to eliminate the vulnerability.
What type of vulnerability is CVE-2026-57961?
CVE-2026-57961 is classified as an authenticated path traversal vulnerability.
What can an attacker do with CVE-2026-57961?
An attacker with FAQ editing privileges can exploit CVE-2026-57961 to store malicious HTML that compromises PDF generation.
Which software is affected by CVE-2026-57961?
CVE-2026-57961 affects versions of phpMyFAQ prior to 4.1.5.