CVE-2026-57961
published medium CVSS 4.0 · 5.1phpMyFAQ - Authenticated Path Traversal in PDF Export via concatenatePaths Function
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| phpMyFAQ | — | phpMyFAQ0 to < 4.1.5 (affected · semver) · 4.1.5 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.1 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 2.7 | low | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| phpMyFAQ | phpMyFAQ | 0 to < 4.1.5 (affected · semver)4.1.5 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
2- GitHub Security Advisory (GHSA-88g4-74f3-63x9) https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-88g4-74f3-63x9
- VulnCheck Advisory: phpMyFAQ - Authenticated Path Traversal in PDF Export via concatenatePaths Function https://www.vulncheck.com/advisories/phpmyfaq-authenticated-path-traversal-in-pdf-export-via-concatenatepaths-function
Provider assertions
2VulnCheck · cna
phpMyFAQ - Authenticated Path Traversal in PDF Export via concatenatePaths Function
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- afd656ab98b42bb915930feb9414ad26f2b52b3afda2f146d5bf6e434a7e9ede
- Ingested
- 23 Sep 2026, 09:22:08 UTC
- Source record
- Official CVE record