CVE-2026-57961 json
phpMyFAQ - Authenticated Path Traversal in PDF Export via concatenatePaths Function
published 4mo ago modified 2mo ago also GHSA-88g4-74f3-63x9 , EUVD-2026-42891
- cvss
- 2.7
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 34%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist thorsten/phpmyfaq 4.1.5
- packagist phpmyfaq/phpmyfaq 4.1.5
- phpMyFAQ phpMyFAQ 4.1.5
Is CVE-2026-57961 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 4mo ago
Exploit prediction
0.40% chance of exploitation in the next 30 days, higher than 34% of all scored CVEs (FIRST EPSS, 2026-11-11).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 5.1 | 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 |
| CNA | 3.1 | 2.7 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N |
| CNA | 4.0 | 5.1 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| GitHub | 3.1 | 4.9 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | thorsten/phpmyfaq | >=4.0.0-alpha, <4.1.5 |
4.1.5 |
| packagist | phpmyfaq/phpmyfaq | >=4.0.0-alpha, <4.1.5 |
4.1.5 |
Affected products
- phpMyFAQ phpMyFAQ
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/thorsten/phpMyFAQ/commit/91ce64405479933d7d62c751fa79c2f5c6fda591
web
-
github.com
/thorsten/phpMyFAQ/commit/b709ebe69405385785c2a74ae940c3e8d4cd0a8b
web
-
github.com
/thorsten/phpMyFAQ/security/advisories/GHSA-88g4-74f3-63x9
vendor-advisory, web
-
vulncheck.com
/advisories/phpmyfaq-authenticated-path-traversal-in-pdf-export-via-concatenatepaths-function
third-party-advisory
-
github.com
/thorsten/phpMyFAQ
package
Sources
- CVE List CVE-2026-57961
- GitHub Advisory GHSA-88g4-74f3-63x9
- NVD CVE-2026-57961
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.