CVE-2026-76210
PoC nicheAuthenticated Local File Disclosure via PDF Export in phpMyFAQ
phpMyFAQ before 4.1.6 does not adequately sanitize HTML in FAQ answers before converting them to PDF with the TCPDF library, allowing a controlled file path (CWE-73) to reach the PDF generation routine. An attacker with permission to create or edit FAQ content can embed an <img> tag whose src points to a local file under the web root's content/ directory (e.g., content/core/config/database.php); when a PDF export runs, phpMyFAQ reads the referenced file and, because it is not a valid image, an uncaught exception leaks part of the file's contents via its stack trace to whoever triggers the export. The attacker gains disclosure of sensitive local file contents: the leaked portion is truncated by default (zend.exception_string_param_max_len), but a larger configured value can expose entire files, including database credentials. Any phpMyFAQ deployment running a version prior to 4.1.6 is affected; exploitation requires only a low-privileged account with FAQ authoring rights and no victim interaction (CVSS 4.0: 7.1 High). No in-the-wild exploitation is known: a public advisory/PoC exists (GHSA-c63q-xx7x-j8w2), EPSS is 0.4% (percentile 30), and the issue is not in CISA KEV.
What to do: Upgrade to phpMyFAQ 4.1.6 or later. Until patched, restrict FAQ create/edit rights to trusted users and review existing FAQ answers for <img> tags whose src references local paths under the content/ directory (e.g., content/core/config/database.php). Keep exception detail display and zend.exception_string_param_max_len at their defaults so any leaked content remains truncated, and avoid exposing verbose stack traces to end users.
| phpMyFAQ | before 4.1.6 (fixed in 4.1.6) |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
phpMyFAQ before 4.1.6 does not adequately sanitize HTML in FAQ answers before generating PDFs via TCPDF. An attacker with permission to create or edit FAQ content can embed an tag whose src references a local file under the web root's content/ directory (e.g., content/core/config/database.php). When the PDF is generated, phpMyFAQ attempts to read the referenced file; because it is not a valid image the resulting error is converted into an uncaught exception whose stack trace discloses part of the file's contents to any user who triggers the PDF export. By default the disclosed portion is truncated (zend.exception_string_param_max_len), but a larger configured value can result in disclosure of entire files, including database credentials.
- Vendors
- phpmyfaq
- Products
- phpmyfaq
- Weakness
- CWE-73
- Vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/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
In the news0 stories
No ingested article mentions this CVE yet.