Skip to main content

phpMyFAQ EUVDEUVD-2026-42891

| CVE-2026-57961 MEDIUM
Path Traversal (CWE-22)
2026-07-10 VulnCheck GHSA-j3vx-7xgh-q759
5.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Authenticate as FAQ editor
  2. Delivery
    Embed crafted img path (no 'content' substring) in FAQ HTML
  3. Exploit
    Save malicious FAQ entry
  4. Install
    Trigger PDF export for that entry
  5. C2
    concatenatePaths() coerces strpos false to 0
  6. Execute
    Unsanitized path reaches file_get_contents()
  7. Impact
    Retrieve arbitrary file contents from PDF output

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires an authenticated user account with FAQ editing privileges within phpMyFAQ - this is the primary gating condition confirmed by PR:H in the CVSS 4.0 vector. The attacker must be able to store HTML content containing a crafted image path (img src attribute) in a FAQ entry, meaning the FAQ editing feature must be active and accessible to the attacker's role. PDF export functionality must be operational for the crafted path to reach concatenatePaths() and file_get_contents(). The crafted path must not contain the literal substring 'content'; if 'content' is present in the path, strpos() returns a valid integer offset and the traversal does not trigger. Exploitation is limited to files readable by the PHP process's OS user account. UI:N in the CVSS vector suggests the attacker can self-trigger PDF generation without requiring a second user to act.

Impact

The CVSS 4.0 base score of 5.1 reflects the limited real-world impact: PR:H (high privileges required - FAQ editor role), VC:L (low confidentiality impact), and no integrity or availability impact. These metrics align well with the described behavior: exploitation requires a legitimately credentialed user with content-editing rights, limiting the exposed attack surface to insider threats or scenarios where attacker-controlled accounts exist. EPSS data is not provided in the available intelligence, so exploitation probability cannot be quantified numerically. KEV status is absent, and no POC code is publicly identified - the vulnerability has not been observed in active exploitation campaigns. The risk is therefore best characterized as a post-authentication information disclosure with a meaningful but bounded scope: an attacker can read files accessible to the web server process (e.g., configuration files containing database credentials or API keys), which could enable lateral movement or privilege escalation in a compromised environment. The CVSS vector is internally consistent with the description and raises no conflicts requiring vendor clarification.

Exploit ScenarioDerived

An attacker with a valid phpMyFAQ account holding FAQ editor privileges creates or edits a FAQ entry and embeds an HTML img tag whose src attribute contains a crafted path without the substring 'content' - for example, a relative traversal string targeting /etc/passwd or the application's database configuration file. When PDF export is triggered for that FAQ entry (either by the attacker or by any user with export access), concatenatePaths() processes the img src, strpos() returns false, the path passes unsanitized to file_get_contents(), and the contents of the targeted file are embedded in the generated PDF, which the attacker then downloads. No public exploit code is currently identified, but the attack requires only standard HTTP requests and knowledge of the type-juggling behavior.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 10, 2026

Path traversal in phpMyFAQ's PDF export pipeline allows authenticated FAQ editors to read arbitrary server-side files by storing HTML with crafted image paths that exploit a type-juggling flaw in concatenatePaths(). When the substring 'content' is absent from an attacker-controlled path, strpos() returns false, which PHP silently coerces to integer 0, causing the full unsanitized path to pass through to file_get_contents() without canonicalization. No active exploitation is confirmed (not in CISA KEV), and no public exploit code has been identified at time of analysis, but the root cause is a low-complexity PHP type-juggling antipattern that is straightforward to weaponize once the attack surface is understood.

RemediationAI

Upgrade to phpMyFAQ 4.1.5 or later, which resolves the type-juggling flaw in concatenatePaths() per the vendor security advisory at https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-88g4-74f3-63x9. The exact patch version 4.1.5 is confirmed by the advisory title. If immediate patching is not feasible, consider restricting FAQ editing privileges to the minimum set of trusted users, since exploitation is gated on that role. As an additional compensating control, configure the web server user account to operate under a restrictive filesystem profile (e.g., PHP open_basedir directive set to the application's content directory), which would prevent file_get_contents() from reading outside the permitted path even if the traversal string is constructed - note that open_basedir is a process-level constraint and does not fix the code defect, so it should not be treated as a permanent substitute for patching. Disabling PDF export entirely eliminates this attack surface if the feature is not required by users.

Affected VersionsENISA

phpMyFAQ 0 <4.1.5

Affected Packages

composer phpmyfaq/phpmyfaq fix: 4.1.5
composer thorsten/phpmyfaq fix: 4.1.5
euvd phpmyfaq fix: 4.1.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

phpMyFAQ is an open-source PHP FAQ management system. The vulnerability resides in src/phpMyFAQ/Export/Pdf/Wrapper.php within the concatenatePaths() function, which is responsible for resolving image file paths during PDF generation. The root cause is CWE-22 (Improper Limitation of a Pathname to a Restricted Directory). Specifically, the code uses strpos() to locate the substring 'content' in a user-supplied path; strpos() returns the boolean false when no match is found, and PHP's loose typing coerces false to integer 0 in a numeric context, which the code interprets as a valid offset of 0 - effectively preserving the entire attacker-controlled string as the resolved path. This path is then passed to file_get_contents() with no realpath() normalization, no prefix check, and no directory-containment assertion, allowing path components such as '../' sequences to traverse outside the intended content root. Affected CPE: cpe:2.3:a:phpmyfaq:phpmyfaq:*:*:*:*:*:*:*:* for versions before 4.1.5.

Know when Phpmyfaq gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 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
vuln.today AI 2.7 LOW

High privileges (FAQ editor role) required; network-delivered but post-auth; impact limited to low confidentiality file read with no integrity or availability effect.

3.1 AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Jul 10, 2026 - 16:16 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 81% exploitable
Prevalence
Low
niche open-source FAQ platform, limited enterprise footprint
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

CVE-2025-59943 CRITICAL POC
9.8 Oct 03

Duplicate-email registration handling in phpMyFAQ 4.0.7 through 4.0.13 (and 4.0-nightly-2025-10-03 and earlier) lets una

CVE-2023-5865 CRITICAL POC
9.8 Oct 31

Insufficient Session Expiration in GitHub repository thorsten/phpmyfaq prior to 3.2.2. Rated critical severity (CVSS 9.8

CVE-2023-1886 CRITICAL POC
9.8 Apr 05

Authentication Bypass by Capture-replay in GitHub repository thorsten/phpmyfaq prior to 3.1.12. Rated critical severity

CVE-2023-1753 CRITICAL POC
9.8 Mar 31

Weak Password Requirements in GitHub repository thorsten/phpmyfaq prior to 3.1.12. Rated critical severity (CVSS 9.8), t

CVE-2022-3754 CRITICAL POC
9.8 Oct 29

Weak Password Requirements in GitHub repository thorsten/phpmyfaq prior to 3.1.8. Rated critical severity (CVSS 9.8), th

CVE-2026-46364 CRITICAL POC
9.3 May 15

Unauthenticated SQL injection in phpMyFAQ before 4.1.2 allows remote attackers to extract credentials, admin tokens, and

CVE-2017-15730 HIGH POC
8.8 Oct 22

In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) in admin/stat.ratings.php. Rated high severity (CVS

CVE-2017-15808 HIGH POC
8.8 Oct 23

In phpMyFaq before 2.9.9, there is CSRF in admin/ajax.config.php. Rated high severity (CVSS 8.8), this vulnerability is

CVE-2017-15735 HIGH POC
8.8 Oct 22

In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) for modifying a glossary. Rated high severity (CVSS

CVE-2017-15734 HIGH POC
8.8 Oct 22

In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) in admin/stat.main.php. Rated high severity (CVSS 8

CVE-2024-28107 HIGH POC
8.8 Mar 25

phpMyFAQ is an open source FAQ web application for PHP 8.1+ and MySQL, PostgreSQL and other databases. Rated high severi

CVE-2024-27299 HIGH POC
8.8 Mar 25

phpMyFAQ is an open source FAQ web application for PHP 8.1+ and MySQL, PostgreSQL and other databases. Rated high severi

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy