CVE-2026-43937 Details
Description
YetAnotherForum.NET (YAF.NET) is a C# ASP.NET forum. Prior to 4.0.5, Any admin OnPost… handler executes its side effects before the ResultFilterAttribute rewrites the response to a 302 to /Info/4. The most impactful abuse is /Admin/RunSql, whose OnPostRunQuery binds Editor from the POST body and passes it straight to IDbAccess.RunSql with no caller check, yielding arbitrary SQL execution for any low-privileged user. This vulnerability is fixed in 4.0.5.
An authorization bypass vulnerability has been identified in YetAnotherForum.NET (YAF.NET) versions prior to 4.0.5. The issue arises because the only admin authorization check is applied after the page handler has executed, allowing low-privileged users to exploit this timing flaw. The most significant impact is found in the '/Admin/RunSql' endpoint, where the 'OnPostRunQuery' handler directly executes SQL commands from the POST body without proper validation. This oversight enables arbitrary SQL execution for users with minimal privileges.
To address this vulnerability, update to YetAnotherForum.NET version 4.0.5 or later. Additionally, convert the 'PageSecurityCheckAttribute' to an 'IAsyncPageFilter' to ensure admin checks are performed before any handler actions. Implement an ASP.NET Core authorization policy for added security, restrict access to the 'RunSql' admin page, and audit other admin authorization logics to prevent similar issues.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 12, 2026CISA-ADP
Assessed May 12, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/YAFNET/YAFNET/security/advisories/GHSA-xhw7-j96h-c3g5 | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/YAFNET/YAFNET/security/advisories/GHSA-xhw7-j96h-c3g5 | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-841 | Improper Enforcement of Behavioral Workflow | [email protected] |
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| YetAnotherForum.NET | <= 4.0.4 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 12, 2026 | CVE Modified | CISA-ADP |
| May 12, 2026 | New CVE Received | [email protected] |
Volerion