Skip to main content

phpMyFAQ CVE-2026-130342

| EUVDEUVD-2026-126805 LOW
Authorization Bypass Through User-Controlled Key (CWE-639)
2026-11-17 VulnCheck GHSA-xhmv-xh26-ggcp
2.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Authenticate as editor on client instance
  2. Delivery
    Obtain exact bytes of target attachment
  3. Exploit
    Upload matching file to own FAQ
  4. Execution
    Delete own attachment copy
  5. Persist
    Local reference count misreads shared blob
  6. Impact
    Shared blob unlinked, victim file destroyed

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Object-level authorization, IDOR prevention
Exploitation Conditions

Requires all of: (1) a multisite phpMyFAQ installation - optional, and clients must be created by a super-admin, sharing the inherited records.attachmentsPath and storage.* settings; (2) attachment encryption OFF (the default), so blobs are keyed solely by md5(file); (3) the attacker is an authenticated editor on a client instance holding both addattachment and delattachment rights plus edit rights on at least one of their own FAQs (no rights on the victim instance are needed); and (4) the attacker possesses the exact bytes of the target file so its md5 collides - e.g. a public/shared document, a registered account on the victim instance, or an instance with guest downloads enabled. Limiting factors: standalone single-instance installs are unaffected; enabling attachment encryption breaks the shared key; and the attacker cannot replace or read the file (no second-preimage, reads still pass victim permission checks), so impact is destruction only.

Impact

This is a genuinely low-priority issue, and the signals are consistent rather than conflicting. The vendor CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:L/UI:N) and the 2.3 base score agree with the description: exploitation requires an authenticated editor (PR:L), a non-default-but-specific deployment shape, and satisfied attack requirements (AT:P / AC:H) - namely possession of the exact target bytes and a shared MD5. Impact is limited to integrity/availability of attachments (VI:L/VA:L) with no confidentiality loss (VC:N), matching the advisory's reasoning that reads still enforce the victim's own permission checks. The vuln.today Decision label is 'monitor' (not act_now/emergency), there is no CISA KEV listing, and no EPSS score was supplied; absence of EPSS/KEV here is expected for a niche low-severity flaw, not a data conflict. The one caveat worth stating: the public advisory includes a standalone demonstration script, but that script is explicitly NOT a booted phpMyFAQ instance (composer dependencies were unavailable), so it models the storage-key and reference-count logic rather than proving end-to-end exploitation against a live multisite install. Overall this is a high-confidence, low-real-risk defect: reported by VulnCheck, patched by the vendor, relevant only to the subset of operators running multisite with default (unencrypted) attachment storage.

Exploit ScenarioDerived

An authenticated editor on one multisite client instance uploads a file whose bytes exactly match an attachment held by the master or another client (encryption is off by default, so the blob is keyed only by md5), then deletes their own copy. Because the reference-count query (linkedRecords()) counts only the local faqattachment table, it sees a single reference and unlinks the shared blob, silently destroying the victim instance's file while its metadata row remains. A public proof-of-concept reference exists in the GHSA advisory, but it is a storage-logic reproduction script, not verified end-to-end working exploit code against a running instance.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 17, 2026

Multisite phpMyFAQ installations allow an authenticated editor on one client instance to silently destroy attachment files owned by the master instance or by another client. Unencrypted attachments are stored under a key derived solely from md5(file) in a blob store shared by every instance, while the pre-deletion reference check counts rows only in the local faqattachment table; an editor who uploads a copy of the target bytes and then deletes their own copy causes File::delete() to unlink the shared blob, so the victim's metadata row survives but every download fails and nothing is logged. The flaw is fixed in 4.1.12 and 4.2.0-RC.2, a standalone PoC harness is published with the GHSA (it reproduces the key derivation and reference-count SQL against two table prefixes but was not run on a booted instance), there is no confirmed exploitation in the wild and no CISA KEV listing, and the reported decisions signals - CVSS 2.3, priority label 'monitor' - reflect that standalone single-instance deployments are unaffected and the impact is destruction only, since the file cannot be read or replaced.

RemediationAI

Vendor-released patch: upgrade to 4.1.12 (4.1.x branch) or 4.2.0-RC.2 (4.2.0 pre-release branch), per the advisories at https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-3r8v-m4f4-g2wj and the fix commit https://github.com/thorsten/phpMyFAQ/commit/4f0239a3b63b1a7ef5482d2c71c7e163de7f0bdb. The patch moves client instances to their own blob namespace, <records.attachmentsPath>/multisite/<hostname>/, so after upgrading the CHANGELOG explicitly notes that existing client attachment files must be moved there once by hand - schedule that migration with the upgrade, because until the files are relocated the clients' existing attachments will not resolve at their new per-instance paths. Where upgrading immediately is not possible, the preconditions themselves are the practical mitigation: enabling attachment encryption on multisite deployments stops blobs from being keyed solely by md5(file) and thus breaks the shared-key collision, at the cost of encrypting new attachments and changing how existing ones are stored; alternatively, restrict multisite editors from holding delattachment alongside addattachment, since the attack chain requires both capabilities plus edit rights on one of their own FAQs, accepting the loss of legitimate self-service attachment cleanup. Restricting guest downloads does not remove the exposure, because an attacker with a registered account on the victim instance can still obtain the exact bytes needed for the md5 match.

Affected VersionsENISA

phpMyFAQ 0 <4.1.12
phpMyFAQ 4.2.0-alpha <4.2.0-RC.2

Affected Packages

euvd phpmyfaq fix: 4.1.12, 4.2.0-RC.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

The root cause is class CWE-639 (authorization bypass through a user-controlled key) realised as a cross-tenant reference-counting error in the attachment subsystem. In phpMyFAQ's multisite mode each client instance has its own table prefix but inherits configuration verbatim from the master (Instance/Client.php copies faqconfig with INSERT ... SELECT, rewriting only main.referenceURL and layout.templateSet), so records.attachmentsPath and storage.s3.* are identical everywhere. File::getStorage() constructs StorageFactory without a TenantContext, and StorageFactory then falls back to prefix 0/attachments, meaning the filesystem directory or S3 bucket/prefix is literally the same for every instance. AbstractAttachment derives virtualHash = realHash = md5 of the file when encryption is off (the default), so the storage key is a pure content hash with no tenant component. Before unlinking, File::delete() calls linkedRecords(), which issues SELECT COUNT(1) FROM %sfaqattachment WHERE virtual_hash = ? against the current instance's prefix only - it cannot see rows in another instance's table - and only skips deletion when the count is greater than one. Uploading bytes that already exist on another instance rewrites the same key, and deleting the local copy drops the count to one, triggering the storage delete of a blob that still belongs to the master or a sibling client. The upstream commit replaces the inline path logic in Bootstrap.php with AttachmentDirectoryResolver, which appends a 'multisite/<hostname>' namespace for client instances (hostname derived from PMF_MULTI_INSTANCE_CONFIG_DIR, restricted to hostname-valid characters to prevent traversal) while leaving the master instance on the unnamespaced path.

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 2.3 LOW
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
vuln.today AI 4.2 MEDIUM

Authenticated editor (PR:L) acting over the admin web API (AV:N); success needs multisite+unencrypted default config and possession of the exact target bytes (AC:H); only attachment integrity/availability affected, no confidentiality.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

DescriptionCVE.org

phpMyFAQ before 4.1.12 and 4.2.0-alpha before 4.2.0-RC.2 contains an improper reference counting flaw on multisite deployments, allowing editors to delete other instances' attachment files. Because linkedRecords() counts only the local faqattachment table, deleting an attachment with shared md5 content makes File::delete() unlink the shared blob, destroying another instance's files.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
Low
niche open-source FAQ application; optional multisite mode narrows exposure further
Social Media
1
Sightings
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 LOW
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

12
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +12
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0
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