p PatchFirst

CVE-2026-57961

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

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 5.1 · Medium · EPSS 0.4% · Fix available

Published
Updated

Stack: php

Affected products and versions

  • phpmyfaq

    Versions
    • ≥ 0, < 4.1.5: Affected (semver)
    • 4.1.5: Not affected (semver)

    Update to 4.1.5

  • thorsten/phpmyfaq Packagist

    Versions
    • 4.0.0
    • 4.0.0-RC
    • 4.0.0-RC.2
    • 4.0.0-RC.3
    • 4.0.0-RC.4
    • 4.0.0-RC.5
    • 4.0.0-alpha
    • 4.0.0-alpha.2
    • 4.0.0-alpha.3
    • 4.0.0-alpha.4
    • 4.0.0-beta
    • 4.0.0-beta.2
    • 4.0.1
    • 4.0.10
    • 4.0.11
    • 4.0.12
    • 4.0.13
    • 4.0.14
    • 4.0.15
    • 4.0.16
    • 4.0.18
    • 4.0.19
    • 4.0.2
    • 4.0.3
    • 4.0.4
    • 4.0.5
    • 4.0.6
    • 4.0.7
    • 4.0.8
    • 4.0.9
    • 4.1.0
    • 4.1.0-RC
    • 4.1.0-RC.2
    • 4.1.0-RC.4
    • 4.1.0-RC.5
    • 4.1.0-RC.6
    • 4.1.0-RC.7
    • 4.1.0-alpha
    • 4.1.0-alpha.2
    • 4.1.0-alpha.3
    • 4.1.0-beta
    • 4.1.0-beta.2
    • 4.1.1
    • 4.1.2
    • 4.1.3
    • 4.1.4
    Affected ranges
    • ECOSYSTEM: ≥ 4.0.0-alpha, < 4.1.5

    Update to 4.1.5

  • phpmyfaq/phpmyfaq Packagist

    Versions
    • 4.0.0
    • 4.0.0-RC
    • 4.0.0-RC.2
    • 4.0.0-RC.3
    • 4.0.0-RC.4
    • 4.0.0-RC.5
    • 4.0.0-alpha
    • 4.0.0-alpha.2
    • 4.0.0-alpha.3
    • 4.0.0-alpha.4
    • 4.0.0-beta
    • 4.0.0-beta.2
    • 4.0.1
    • 4.0.10
    • 4.0.11
    • 4.0.12
    • 4.0.13
    • 4.0.14
    • 4.0.15
    • 4.0.16
    • 4.0.18
    • 4.0.19
    • 4.0.2
    • 4.0.3
    • 4.0.4
    • 4.0.5
    • 4.0.6
    • 4.0.7
    • 4.0.8
    • 4.0.9
    • 4.1.0
    • 4.1.0-RC
    • 4.1.0-RC.2
    • 4.1.0-RC.4
    • 4.1.0-RC.5
    • 4.1.0-RC.6
    • 4.1.0-RC.7
    • 4.1.0-alpha
    • 4.1.0-alpha.2
    • 4.1.0-alpha.3
    • 4.1.0-beta
    • 4.1.0-beta.2
    • 4.1.1
    • 4.1.2
    • 4.1.3
    • 4.1.4
    Affected ranges
    • ECOSYSTEM: ≥ 4.0.0-alpha, < 4.1.5

    Update to 4.1.5

Original sources

Check your server →