GHSA-j3vx-7xgh-q759
phpMyFAQ versions before 4.1.5 have an authenticated path traversal vulnerability in the concatenatePaths() function. A user with FAQ editing privileges can craft HTML with malicious image paths that bypass intended directory restrictions during PDF generation, potentially allowing unauthorized file reads outside the content directory.
AI Analysis
Technical Summary
The vulnerability in phpMyFAQ prior to version 4.1.5 exists in the concatenatePaths() function located in src/phpMyFAQ/Export/Pdf/Wrapper.php. The function attempts to locate the substring "content" within user-controlled image paths using strpos(). If "content" is not found, strpos() returns false, which is cast to 0, causing the entire attacker-controlled path to be preserved. This path is then passed to file_get_contents() without proper canonicalization or root-directory containment checks, enabling an authenticated user with FAQ editing privileges to read arbitrary files outside the intended content directory. This is classified as a CWE-22 (Path Traversal) vulnerability.
Potential Impact
An authenticated user with FAQ editing privileges can exploit this vulnerability to read arbitrary files on the server outside the intended content directory during PDF generation. This could lead to unauthorized disclosure of sensitive information stored on the server. There is no indication of remote code execution or privilege escalation from the provided data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict FAQ editing privileges to trusted users only to reduce risk. Monitor vendor channels for updates regarding a patch or official mitigation.
GHSA-j3vx-7xgh-q759
Description
phpMyFAQ versions before 4.1.5 have an authenticated path traversal vulnerability in the concatenatePaths() function. A user with FAQ editing privileges can craft HTML with malicious image paths that bypass intended directory restrictions during PDF generation, potentially allowing unauthorized file reads outside the content directory.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in phpMyFAQ prior to version 4.1.5 exists in the concatenatePaths() function located in src/phpMyFAQ/Export/Pdf/Wrapper.php. The function attempts to locate the substring "content" within user-controlled image paths using strpos(). If "content" is not found, strpos() returns false, which is cast to 0, causing the entire attacker-controlled path to be preserved. This path is then passed to file_get_contents() without proper canonicalization or root-directory containment checks, enabling an authenticated user with FAQ editing privileges to read arbitrary files outside the intended content directory. This is classified as a CWE-22 (Path Traversal) vulnerability.
Potential Impact
An authenticated user with FAQ editing privileges can exploit this vulnerability to read arbitrary files on the server outside the intended content directory during PDF generation. This could lead to unauthorized disclosure of sensitive information stored on the server. There is no indication of remote code execution or privilege escalation from the provided data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict FAQ editing privileges to trusted users only to reduce risk. Monitor vendor channels for updates regarding a patch or official mitigation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-j3vx-7xgh-q759
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-57961"]
- Ecosystems
- []
- Database Specific Severity
- MODERATE
- Cvss Version
- 4.0
Threat ID: 6a520eec68715ace4391d5b1
Added to database: 07/11/2026, 09:37:48 UTC
Last enriched: 07/11/2026, 10:09:28 UTC
Last updated: 07/11/2026, 19:47:31 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.