{"items":[{"id":"NVI-00006564","kind":"vulnerability","title":"phpMyFAQ has Potential Authenticated Path Traversal in PDF Export","revision":4,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected.","NVD lastModified does not establish freshness of every associated CPE record."],"lifecycle":"active","identifiers":["GHSA-88g4-74f3-63x9","CVE-2026-57961"],"plain_summary":"OSV carries this publisher advisory for thorsten/phpmyfaq, phpmyfaq/phpmyfaq. This is an aggregated source copy; consult the original publisher and compare update dates.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"The original advisory lists fixed boundaries 4.1.5 for thorsten/phpmyfaq. Confirm the publisher’s latest guidance.","source_ids":["sr-ba078882f75e32b58c8c6921e125dad0"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null},{"summary":"The original advisory lists fixed boundaries 4.1.5 for phpmyfaq/phpmyfaq. Confirm the publisher’s latest guidance.","source_ids":["sr-ba078882f75e32b58c8c6921e125dad0"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null},{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-12d4ff90db5be35780cf8d8c807438ab"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[{"kind":"CVSS","as_of":"2026-07-10T17:41:47.303Z","value":"2.7 LOW (3.1)","meaning":"disclosure@vulncheck.com severity; no combined Null risk score.","source_id":"sr-464f7b1814d3a640d8e0eb6925a02986"},{"kind":"CVSS","as_of":"2026-07-10T17:41:47.303Z","value":"5.1 MEDIUM (4.0)","meaning":"disclosure@vulncheck.com severity; no combined Null risk score.","source_id":"sr-464f7b1814d3a640d8e0eb6925a02986"},{"kind":"EPSS","as_of":"2026-11-04T12:03:12.000Z","value":"0.399%","meaning":"FIRST EPSS model v2026.06.15; exploitation probability over 30 days, percentile 0.34251. Missing scores are unknown.","source_id":"sr-12d4ff90db5be35780cf8d8c807438ab"}],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-ba078882f75e32b58c8c6921e125dad0","url":"https://github.com/advisories/GHSA-88g4-74f3-63x9","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-88g4-74f3-63x9","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:59.959Z"},{"id":"sr-464f7b1814d3a640d8e0eb6925a02986","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-57961","basis":"official_catalog","notes":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","title":"CVE-2026-57961","publisher":"NIST National Vulnerability Database","observed_at":"2026-11-01T07:24:39.943Z"},{"id":"sr-12d4ff90db5be35780cf8d8c807438ab","url":"https://www.first.org/epss/data.html","basis":"official_catalog","notes":"FIRST EPSS; probability of exploitation in the next 30 days, not local compromise. Dataset date/model retained; FIRST services terms apply.","title":"CVE-2026-57961","publisher":"FIRST EPSS","observed_at":"2026-11-04T23:33:33.054Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-ba078882f75e32b58c8c6921e125dad0"],"technology":"thorsten/phpmyfaq","known_exclusions":[],"conditions_summary":"## Summary\n\nThere is an authenticated path traversal condition in the PDF export functionality, specifically within the PDF image resolution logic.\n\nThe issue may allow a privileged FAQ editor to cause the application to attempt reading files outside the intended content directory during PDF generation.\n\n---\n\n## Affected Component\n\n**File:**\n`src/phpMyFAQ/Export/Pdf/Wrapper.php`\n\n**Function:**\n`concatenatePaths()`\n\n---\n\n## Root Cause\n\nThe path resolution logic relies on locating the substring `\"content\"` within a user-controlled path:\n\n```php\n$pos = strpos($trimmedFile, 'content');\n$relativePath = substr($trimmedFile, (int) $pos);\n```\n\nIf `\"content\"` is not present, `strpos()` returns `false`, which becomes `0` when cast to an integer.\n\nAs a result, the entire attacker-controlled path is preserved.\n\nExample:\n\n```php\n$trimmedFile = \"../../../etc/passwd\";\n$pos = false;\n$relativePath = \"../../../etc/passwd\";\n```\n\nThe resulting path is later processed by:\n\n```php\nfile_get_contents($resolvedPath);\n```\n\nwithout canonicalization or a root-directory containment check.\n\n---\n\n## Observed Data Flow\n\n```text\nFAQ Content\n    ->\nPDF Export\n    ->\nWriteHTML()\n    ->\nWrapper::Image()\n    ->\nconcat","public_affected_ranges":["ECOSYSTEM: introduced 4.0.0-alpha; fixed 4.1.5"]},{"certainty":"source_listed","source_ids":["sr-ba078882f75e32b58c8c6921e125dad0"],"technology":"phpmyfaq/phpmyfaq","known_exclusions":[],"conditions_summary":"## Summary\n\nThere is an authenticated path traversal condition in the PDF export functionality, specifically within the PDF image resolution logic.\n\nThe issue may allow a privileged FAQ editor to cause the application to attempt reading files outside the intended content directory during PDF generation.\n\n---\n\n## Affected Component\n\n**File:**\n`src/phpMyFAQ/Export/Pdf/Wrapper.php`\n\n**Function:**\n`concatenatePaths()`\n\n---\n\n## Root Cause\n\nThe path resolution logic relies on locating the substring `\"content\"` within a user-controlled path:\n\n```php\n$pos = strpos($trimmedFile, 'content');\n$relativePath = substr($trimmedFile, (int) $pos);\n```\n\nIf `\"content\"` is not present, `strpos()` returns `false`, which becomes `0` when cast to an integer.\n\nAs a result, the entire attacker-controlled path is preserved.\n\nExample:\n\n```php\n$trimmedFile = \"../../../etc/passwd\";\n$pos = false;\n$relativePath = \"../../../etc/passwd\";\n```\n\nThe resulting path is later processed by:\n\n```php\nfile_get_contents($resolvedPath);\n```\n\nwithout canonicalization or a root-directory containment check.\n\n---\n\n## Observed Data Flow\n\n```text\nFAQ Content\n    ->\nPDF Export\n    ->\nWriteHTML()\n    ->\nWrapper::Image()\n    ->\nconcat","public_affected_ranges":["ECOSYSTEM: introduced 4.0.0-alpha; fixed 4.1.5"]}],"null_published_at":"2026-11-08T08:10:32.025Z","source_updated_at":"2026-08-26T01:18:31.011Z","source_disclosed_at":"2026-08-25T17:28:56.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"Dated EPSS estimate updated; this is not a new disclosure or proof of exploitation.","null_first_observed_at":"2026-10-31T21:41:59.959Z"},{"id":"NVI-00006564","kind":"vulnerability","title":"phpMyFAQ has Potential Authenticated Path Traversal in PDF Export","revision":3,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected.","NVD lastModified does not establish freshness of every associated CPE record."],"lifecycle":"active","identifiers":["GHSA-88g4-74f3-63x9","CVE-2026-57961"],"plain_summary":"OSV carries this publisher advisory for thorsten/phpmyfaq, phpmyfaq/phpmyfaq. This is an aggregated source copy; consult the original publisher and compare update dates.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"The original advisory lists fixed boundaries 4.1.5 for thorsten/phpmyfaq. Confirm the publisher’s latest guidance.","source_ids":["sr-ba078882f75e32b58c8c6921e125dad0"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null},{"summary":"The original advisory lists fixed boundaries 4.1.5 for phpmyfaq/phpmyfaq. Confirm the publisher’s latest guidance.","source_ids":["sr-ba078882f75e32b58c8c6921e125dad0"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null},{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-21b929890bb7a5c518414e664b564b32"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[{"kind":"CVSS","as_of":"2026-07-10T17:41:47.303Z","value":"2.7 LOW (3.1)","meaning":"disclosure@vulncheck.com severity; no combined Null risk score.","source_id":"sr-464f7b1814d3a640d8e0eb6925a02986"},{"kind":"CVSS","as_of":"2026-07-10T17:41:47.303Z","value":"5.1 MEDIUM (4.0)","meaning":"disclosure@vulncheck.com severity; no combined Null risk score.","source_id":"sr-464f7b1814d3a640d8e0eb6925a02986"},{"kind":"EPSS","as_of":"2026-11-02T12:00:30.000Z","value":"0.399%","meaning":"FIRST EPSS model v2026.06.15; exploitation probability over 30 days, percentile 0.3409. Missing scores are unknown.","source_id":"sr-21b929890bb7a5c518414e664b564b32"}],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-ba078882f75e32b58c8c6921e125dad0","url":"https://github.com/advisories/GHSA-88g4-74f3-63x9","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-88g4-74f3-63x9","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:59.959Z"},{"id":"sr-464f7b1814d3a640d8e0eb6925a02986","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-57961","basis":"official_catalog","notes":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","title":"CVE-2026-57961","publisher":"NIST National Vulnerability Database","observed_at":"2026-11-01T07:24:39.943Z"},{"id":"sr-21b929890bb7a5c518414e664b564b32","url":"https://www.first.org/epss/data.html","basis":"official_catalog","notes":"FIRST EPSS; probability of exploitation in the next 30 days, not local compromise. Dataset date/model retained; FIRST services terms apply.","title":"CVE-2026-57961","publisher":"FIRST EPSS","observed_at":"2026-11-02T20:15:58.858Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-ba078882f75e32b58c8c6921e125dad0"],"technology":"thorsten/phpmyfaq","known_exclusions":[],"conditions_summary":"## Summary\n\nThere is an authenticated path traversal condition in the PDF export functionality, specifically within the PDF image resolution logic.\n\nThe issue may allow a privileged FAQ editor to cause the application to attempt reading files outside the intended content directory during PDF generation.\n\n---\n\n## Affected Component\n\n**File:**\n`src/phpMyFAQ/Export/Pdf/Wrapper.php`\n\n**Function:**\n`concatenatePaths()`\n\n---\n\n## Root Cause\n\nThe path resolution logic relies on locating the substring `\"content\"` within a user-controlled path:\n\n```php\n$pos = strpos($trimmedFile, 'content');\n$relativePath = substr($trimmedFile, (int) $pos);\n```\n\nIf `\"content\"` is not present, `strpos()` returns `false`, which becomes `0` when cast to an integer.\n\nAs a result, the entire attacker-controlled path is preserved.\n\nExample:\n\n```php\n$trimmedFile = \"../../../etc/passwd\";\n$pos = false;\n$relativePath = \"../../../etc/passwd\";\n```\n\nThe resulting path is later processed by:\n\n```php\nfile_get_contents($resolvedPath);\n```\n\nwithout canonicalization or a root-directory containment check.\n\n---\n\n## Observed Data Flow\n\n```text\nFAQ Content\n    ->\nPDF Export\n    ->\nWriteHTML()\n    ->\nWrapper::Image()\n    ->\nconcat","public_affected_ranges":["ECOSYSTEM: introduced 4.0.0-alpha; fixed 4.1.5"]},{"certainty":"source_listed","source_ids":["sr-ba078882f75e32b58c8c6921e125dad0"],"technology":"phpmyfaq/phpmyfaq","known_exclusions":[],"conditions_summary":"## Summary\n\nThere is an authenticated path traversal condition in the PDF export functionality, specifically within the PDF image resolution logic.\n\nThe issue may allow a privileged FAQ editor to cause the application to attempt reading files outside the intended content directory during PDF generation.\n\n---\n\n## Affected Component\n\n**File:**\n`src/phpMyFAQ/Export/Pdf/Wrapper.php`\n\n**Function:**\n`concatenatePaths()`\n\n---\n\n## Root Cause\n\nThe path resolution logic relies on locating the substring `\"content\"` within a user-controlled path:\n\n```php\n$pos = strpos($trimmedFile, 'content');\n$relativePath = substr($trimmedFile, (int) $pos);\n```\n\nIf `\"content\"` is not present, `strpos()` returns `false`, which becomes `0` when cast to an integer.\n\nAs a result, the entire attacker-controlled path is preserved.\n\nExample:\n\n```php\n$trimmedFile = \"../../../etc/passwd\";\n$pos = false;\n$relativePath = \"../../../etc/passwd\";\n```\n\nThe resulting path is later processed by:\n\n```php\nfile_get_contents($resolvedPath);\n```\n\nwithout canonicalization or a root-directory containment check.\n\n---\n\n## Observed Data Flow\n\n```text\nFAQ Content\n    ->\nPDF Export\n    ->\nWriteHTML()\n    ->\nWrapper::Image()\n    ->\nconcat","public_affected_ranges":["ECOSYSTEM: introduced 4.0.0-alpha; fixed 4.1.5"]}],"null_published_at":"2026-11-07T14:01:58.739Z","source_updated_at":"2026-08-26T01:18:31.011Z","source_disclosed_at":"2026-08-25T17:28:56.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"Dated EPSS estimate updated; this is not a new disclosure or proof of exploitation.","null_first_observed_at":"2026-10-31T21:41:59.959Z"},{"id":"NVI-00006564","kind":"vulnerability","title":"phpMyFAQ has Potential Authenticated Path Traversal in PDF Export","revision":2,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected.","NVD lastModified does not establish freshness of every associated CPE record."],"lifecycle":"active","identifiers":["GHSA-88g4-74f3-63x9","CVE-2026-57961"],"plain_summary":"OSV carries this publisher advisory for thorsten/phpmyfaq, phpmyfaq/phpmyfaq. This is an aggregated source copy; consult the original publisher and compare update dates.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"The original advisory lists fixed boundaries 4.1.5 for thorsten/phpmyfaq. Confirm the publisher’s latest guidance.","source_ids":["sr-ba078882f75e32b58c8c6921e125dad0"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null},{"summary":"The original advisory lists fixed boundaries 4.1.5 for phpmyfaq/phpmyfaq. Confirm the publisher’s latest guidance.","source_ids":["sr-ba078882f75e32b58c8c6921e125dad0"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null},{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-464f7b1814d3a640d8e0eb6925a02986"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[{"kind":"CVSS","as_of":"2026-07-10T17:41:47.303Z","value":"2.7 LOW (3.1)","meaning":"disclosure@vulncheck.com severity; no combined Null risk score.","source_id":"sr-464f7b1814d3a640d8e0eb6925a02986"},{"kind":"CVSS","as_of":"2026-07-10T17:41:47.303Z","value":"5.1 MEDIUM (4.0)","meaning":"disclosure@vulncheck.com severity; no combined Null risk score.","source_id":"sr-464f7b1814d3a640d8e0eb6925a02986"}],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-ba078882f75e32b58c8c6921e125dad0","url":"https://github.com/advisories/GHSA-88g4-74f3-63x9","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-88g4-74f3-63x9","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:59.959Z"},{"id":"sr-464f7b1814d3a640d8e0eb6925a02986","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-57961","basis":"official_catalog","notes":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","title":"CVE-2026-57961","publisher":"NIST National Vulnerability Database","observed_at":"2026-11-01T07:24:39.943Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-ba078882f75e32b58c8c6921e125dad0"],"technology":"thorsten/phpmyfaq","known_exclusions":[],"conditions_summary":"## Summary\n\nThere is an authenticated path traversal condition in the PDF export functionality, specifically within the PDF image resolution logic.\n\nThe issue may allow a privileged FAQ editor to cause the application to attempt reading files outside the intended content directory during PDF generation.\n\n---\n\n## Affected Component\n\n**File:**\n`src/phpMyFAQ/Export/Pdf/Wrapper.php`\n\n**Function:**\n`concatenatePaths()`\n\n---\n\n## Root Cause\n\nThe path resolution logic relies on locating the substring `\"content\"` within a user-controlled path:\n\n```php\n$pos = strpos($trimmedFile, 'content');\n$relativePath = substr($trimmedFile, (int) $pos);\n```\n\nIf `\"content\"` is not present, `strpos()` returns `false`, which becomes `0` when cast to an integer.\n\nAs a result, the entire attacker-controlled path is preserved.\n\nExample:\n\n```php\n$trimmedFile = \"../../../etc/passwd\";\n$pos = false;\n$relativePath = \"../../../etc/passwd\";\n```\n\nThe resulting path is later processed by:\n\n```php\nfile_get_contents($resolvedPath);\n```\n\nwithout canonicalization or a root-directory containment check.\n\n---\n\n## Observed Data Flow\n\n```text\nFAQ Content\n    ->\nPDF Export\n    ->\nWriteHTML()\n    ->\nWrapper::Image()\n    ->\nconcat","public_affected_ranges":["ECOSYSTEM: introduced 4.0.0-alpha; fixed 4.1.5"]},{"certainty":"source_listed","source_ids":["sr-ba078882f75e32b58c8c6921e125dad0"],"technology":"phpmyfaq/phpmyfaq","known_exclusions":[],"conditions_summary":"## Summary\n\nThere is an authenticated path traversal condition in the PDF export functionality, specifically within the PDF image resolution logic.\n\nThe issue may allow a privileged FAQ editor to cause the application to attempt reading files outside the intended content directory during PDF generation.\n\n---\n\n## Affected Component\n\n**File:**\n`src/phpMyFAQ/Export/Pdf/Wrapper.php`\n\n**Function:**\n`concatenatePaths()`\n\n---\n\n## Root Cause\n\nThe path resolution logic relies on locating the substring `\"content\"` within a user-controlled path:\n\n```php\n$pos = strpos($trimmedFile, 'content');\n$relativePath = substr($trimmedFile, (int) $pos);\n```\n\nIf `\"content\"` is not present, `strpos()` returns `false`, which becomes `0` when cast to an integer.\n\nAs a result, the entire attacker-controlled path is preserved.\n\nExample:\n\n```php\n$trimmedFile = \"../../../etc/passwd\";\n$pos = false;\n$relativePath = \"../../../etc/passwd\";\n```\n\nThe resulting path is later processed by:\n\n```php\nfile_get_contents($resolvedPath);\n```\n\nwithout canonicalization or a root-directory containment check.\n\n---\n\n## Observed Data Flow\n\n```text\nFAQ Content\n    ->\nPDF Export\n    ->\nWriteHTML()\n    ->\nWrapper::Image()\n    ->\nconcat","public_affected_ranges":["ECOSYSTEM: introduced 4.0.0-alpha; fixed 4.1.5"]}],"null_published_at":"2026-11-01T14:34:07.641Z","source_updated_at":"2026-08-26T01:18:31.011Z","source_disclosed_at":"2026-08-25T17:28:56.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"Source facts changed; compare the preserved prior revision.","null_first_observed_at":"2026-10-31T21:41:59.959Z"},{"id":"NVI-00006564","kind":"vulnerability","title":"phpMyFAQ has Potential Authenticated Path Traversal in PDF Export","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-88g4-74f3-63x9","CVE-2026-57961"],"plain_summary":"OSV carries this publisher advisory for thorsten/phpmyfaq, phpmyfaq/phpmyfaq. This is an aggregated source copy; consult the original publisher and compare update dates.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"The original advisory lists fixed boundaries 4.1.5 for thorsten/phpmyfaq. Confirm the publisher’s latest guidance.","source_ids":["sr-ba078882f75e32b58c8c6921e125dad0"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null},{"summary":"The original advisory lists fixed boundaries 4.1.5 for phpmyfaq/phpmyfaq. Confirm the publisher’s latest guidance.","source_ids":["sr-ba078882f75e32b58c8c6921e125dad0"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-ba078882f75e32b58c8c6921e125dad0","url":"https://github.com/advisories/GHSA-88g4-74f3-63x9","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-88g4-74f3-63x9","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:59.959Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-ba078882f75e32b58c8c6921e125dad0"],"technology":"thorsten/phpmyfaq","known_exclusions":[],"conditions_summary":"## Summary\n\nThere is an authenticated path traversal condition in the PDF export functionality, specifically within the PDF image resolution logic.\n\nThe issue may allow a privileged FAQ editor to cause the application to attempt reading files outside the intended content directory during PDF generation.\n\n---\n\n## Affected Component\n\n**File:**\n`src/phpMyFAQ/Export/Pdf/Wrapper.php`\n\n**Function:**\n`concatenatePaths()`\n\n---\n\n## Root Cause\n\nThe path resolution logic relies on locating the substring `\"content\"` within a user-controlled path:\n\n```php\n$pos = strpos($trimmedFile, 'content');\n$relativePath = substr($trimmedFile, (int) $pos);\n```\n\nIf `\"content\"` is not present, `strpos()` returns `false`, which becomes `0` when cast to an integer.\n\nAs a result, the entire attacker-controlled path is preserved.\n\nExample:\n\n```php\n$trimmedFile = \"../../../etc/passwd\";\n$pos = false;\n$relativePath = \"../../../etc/passwd\";\n```\n\nThe resulting path is later processed by:\n\n```php\nfile_get_contents($resolvedPath);\n```\n\nwithout canonicalization or a root-directory containment check.\n\n---\n\n## Observed Data Flow\n\n```text\nFAQ Content\n    ->\nPDF Export\n    ->\nWriteHTML()\n    ->\nWrapper::Image()\n    ->\nconcat","public_affected_ranges":["ECOSYSTEM: introduced 4.0.0-alpha; fixed 4.1.5"]},{"certainty":"source_listed","source_ids":["sr-ba078882f75e32b58c8c6921e125dad0"],"technology":"phpmyfaq/phpmyfaq","known_exclusions":[],"conditions_summary":"## Summary\n\nThere is an authenticated path traversal condition in the PDF export functionality, specifically within the PDF image resolution logic.\n\nThe issue may allow a privileged FAQ editor to cause the application to attempt reading files outside the intended content directory during PDF generation.\n\n---\n\n## Affected Component\n\n**File:**\n`src/phpMyFAQ/Export/Pdf/Wrapper.php`\n\n**Function:**\n`concatenatePaths()`\n\n---\n\n## Root Cause\n\nThe path resolution logic relies on locating the substring `\"content\"` within a user-controlled path:\n\n```php\n$pos = strpos($trimmedFile, 'content');\n$relativePath = substr($trimmedFile, (int) $pos);\n```\n\nIf `\"content\"` is not present, `strpos()` returns `false`, which becomes `0` when cast to an integer.\n\nAs a result, the entire attacker-controlled path is preserved.\n\nExample:\n\n```php\n$trimmedFile = \"../../../etc/passwd\";\n$pos = false;\n$relativePath = \"../../../etc/passwd\";\n```\n\nThe resulting path is later processed by:\n\n```php\nfile_get_contents($resolvedPath);\n```\n\nwithout canonicalization or a root-directory containment check.\n\n---\n\n## Observed Data Flow\n\n```text\nFAQ Content\n    ->\nPDF Export\n    ->\nWriteHTML()\n    ->\nWrapper::Image()\n    ->\nconcat","public_affected_ranges":["ECOSYSTEM: introduced 4.0.0-alpha; fixed 4.1.5"]}],"null_published_at":"2026-10-31T22:13:10.062Z","source_updated_at":"2026-08-26T01:18:31.011Z","source_disclosed_at":"2026-08-25T17:28:56.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"First indexed by Null; source disclosure date is shown separately.","null_first_observed_at":"2026-10-31T21:41:59.959Z"}],"next_cursor":null,"snapshot_revision":"42594"}