CVE-2026-57961: phpMyFAQ - Authenticated Path Traversal in PDF Export via concatenatePaths Function

Published Jul 10, 2026
·
Updated

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

1 affected component
PhpMyFaq phpmyfaq<4.1.5

Event History

Jul 10, 2026
CVE Published
via MITRE·01:58 PM
Data Sourced
via MITRE·01:58 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:16 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-57961?

The severity of CVE-2026-57961 is rated as medium with a score of 5.1.

2

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.

3

What type of vulnerability is CVE-2026-57961?

CVE-2026-57961 is classified as an authenticated path traversal vulnerability.

4

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.

5

Which software is affected by CVE-2026-57961?

CVE-2026-57961 affects versions of phpMyFAQ prior to 4.1.5.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203