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

- Severity: Medium 5.1 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2026-07-10T13:58:00.282Z
- Modified: 2026-08-26T01:18:31.011Z
- Also known as: GHSA-88g4-74f3-63x9
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- phpMyFAQ phpMyFAQ: before 4.1.5 (not affected: 4.1.5)
- thorsten/phpmyfaq (Packagist): from 4.0.0-alpha before 4.1.5
- phpmyfaq/phpmyfaq (Packagist): from 4.0.0-alpha before 4.1.5

## Every score

- VulnCheck: CVSS:4.0 5.1 Medium `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`
- VulnCheck: CVSS:3.1 2.7 Low `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-88g4-74f3-63x9> (vendor-advisory, web)
- <https://www.vulncheck.com/advisories/phpmyfaq-authenticated-path-traversal-in-pdf-export-via-concatenatepaths-function> (third-party-advisory)
- <https://github.com/thorsten/phpMyFAQ/commit/91ce64405479933d7d62c751fa79c2f5c6fda591> (web)
- <https://github.com/thorsten/phpMyFAQ/commit/b709ebe69405385785c2a74ae940c3e8d4cd0a8b> (web)
- <https://github.com/thorsten/phpMyFAQ> (package)

## Sources

- CVE List: [CVE-2026-57961](https://www.cve.org/CVERecord?id=CVE-2026-57961), CVE Terms of Use, modified 2026-07-10
- GitHub Advisory Database: [GHSA-88g4-74f3-63x9](https://github.com/advisories/GHSA-88g4-74f3-63x9), CC-BY-4.0, modified 2026-08-26
- NVD: [CVE-2026-57961](https://nvd.nist.gov/vuln/detail/CVE-2026-57961), Public domain, modified 2026-07-10

---

Page: https://cve.day/CVE-2026-57961 · Whole record: https://cve.day/CVE-2026-57961.json · Rebuilt by cve.day 2026-11-25T22:59:27.625Z
