CVE-2026-39903Simple Machines Forum Authorization Bypass via AttachmentApprove.php
Simple Machines Forum 2.1 prior to commit 7d048f8 and 3.0 prior to commit a7875e8 contains an authorization bypass vulnerability in Sources/Actions/AttachmentApprove.php where a single-character operator error causes the permission check to always pass regardless of user permissions. An authenticated low-privileged user can approve, reject, or delete any pending attachments on any board without holding the required approve_posts permission, bypass moderation queues for their own uploads, and enumerate and delete other users' pending attachments.
What to do
None of the Linux distributions or Windows releases we track list an affected package for this CVE. Check the vendor-reported products below.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
What the vendor says
As published in the CVE record by VulnCheck, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- SimpleMachines SMF: affected: 2.1.0 to 2.1.7, 7d048f8d66aab9af51cd6ee110fbad103cf673e8 not affected, 3.0.0, a7875e876a647572dd4c45da881b875092caac3d not affected
Vendor advisories:
- https://github.com/SimpleMachines/SMF/pull/9182 (patch)
- https://github.com/SimpleMachines/SMF/pull/9181 (patch)
- https://github.com/SimpleMachines/SMF/commit/7d048f8d66aab9af51cd6ee110fbad103cf673e8 (patch)
- https://github.com/SimpleMachines/SMF/commit/a7875e876a647572dd4c45da881b875092caac3d (patch)
References
- https://github.com/SimpleMachines/SMF/pull/9182
- https://github.com/SimpleMachines/SMF/pull/9181
- https://github.com/SimpleMachines/SMF/commit/7d048f8d66aab9af51cd6ee110fbad103cf673e8
- https://github.com/SimpleMachines/SMF/commit/a7875e876a647572dd4c45da881b875092caac3d
- https://www.vulncheck.com/advisories/simple-machines-forum-authorization-bypass-via-attachmentapprove-php
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.