Skip to content
Heist/ feed
Back to feed
High

YAF.NET: Pre-Handler Authorization Bypass on Admin Pages Enabling Blind SQL Execution via `/Admin/RunSql`

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-43937
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 12:52 UTC · Revision 1

Source evidence

YAF.NET: Pre-Handler Authorization Bypass on Admin Pages Enabling Blind SQL Execution via `/Admin/RunSql`

core-osv · Original source

Published 12 May 2026, 14:00 UTC

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.

osv:CVE-2026-43937
Complete source record
{
  "id": "8a4fbbf5635b16f10e809870010ae1caa368f44441a5496269a393ac5ab5a9ac",
  "url": "https://osv.dev/vulnerability/CVE-2026-43937",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "YAF.NET: Pre-Handler Authorization Bypass on Admin Pages Enabling Blind SQL Execution via `/Admin/RunSql`",
    "summary": "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.",
    "evidence": "osv:CVE-2026-43937",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-43937",
      "aliases": [
        "CVE-2026-43937",
        "GHSA-xhw7-j96h-c3g5"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/yafnet/yafnet",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3cb0ee7fbc01f8d3e84eaddf55350aced2dd4bfc"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "4.0.5"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "4.0.5"
                      }
                    ],
                    "source": "DESCRIPTION"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v4.0.4",
            "v4.0.3",
            "v4.0.2",
            "v4.0.1",
            "v4.0.0",
            "v4.0.0-rc.4",
            "v4.0.0-rc.3",
            "v4.0.0-rc.2",
            "v4.0.0-rc.1",
            "v4.0.0-beta.7",
            "v4.0.0-beta.3",
            "v4.0.0-beta.1",
            "3.1.13.0",
            "v3.1.10",
            "v3.1.9",
            "v3.1.8",
            "v3.1.7",
            "v3.1.6",
            "v3.1.5",
            "v3.1.4",
            "v3.1.3",
            "v3.1.2",
            "v3.1.1",
            "v3.1.0",
            "v3.0.2",
            "v2.3.1.0",
            "v2.3.0.5-beta.1",
            "v2.3.0.4",
            "v2.3.0.4-beta.1",
            "v2.3.0.0",
            "v2.3.0.0-rc.5",
            "v2.3.0.0-rc.4",
            "v2.3.0.0-rc.3",
            "v2.3.0.0-rc.2",
            "v2.3.0.0-rc.1",
            "v2.3.0.0-beta.4",
            "v2.3.0.0-beta.3",
            "v2.3.0.0-beta.2",
            "v2.3.0.0-BETA1",
            "v2.2.4.19",
            "v2.2.4.18",
            "v2.2.4.10",
            "v2.2.4.9",
            "v2.2.4.8",
            "v2.2.4.7",
            "v2.2.4.6",
            "v2.2.4.5",
            "v2.2.4.4",
            "v2.2.4.3",
            "v2.2.4.2",
            "v2.2.4.1",
            "v2.2.4.0",
            "v2.2.4.0-nightly",
            "v2.2.3",
            "v2.2.3.0-nightly.118",
            "v2.2.3.0-nightly.115",
            "v2.2.2",
            "v2.2.2.0-nightly.76",
            "v2.2.1",
            "v2.2.1.0-nightly.20",
            "v2.2.0",
            "v2.2.0-rc.1",
            "v2.2.0-beta.1",
            "v2.1.2-beta.1",
            "v2.1.2",
            "v2.1",
            "v2.0.0",
            "release_2_0_0_RC1",
            "release_1_9_6_1_RTW",
            "release_1_9_6_FINAL",
            "release_1_9_6_RC1",
            "release_1_9_6_BETA1",
            "release_1_9_5_5_RTW",
            "release_1_9_5_5_BETA",
            "release_1_9_5_RC1",
            "release_1_9_4_FINAL",
            "release_1_9_4_BETA",
            "release_1_0_2",
            "aspnet20a",
            "complete2",
            "complete",
            "release_0_9_9b",
            "release_0_9_9",
            "yaf_dnn2",
            "release_0_9_8B",
            "release_0_9_8",
            "release_0_9_7",
            "release_0_9_6",
            "release_0_9_5",
            "release_0_9_4",
            "release_0_9_3",
            "release_0_9_2",
            "release_0_9_1",
            "release_0_9_0",
            "release_0_8_2",
            "release_0_8_1",
            "start"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-43937.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:50.689643959Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/43xxx/CVE-2026-43937.json",
        "https://github.com/YAFNET/YAFNET/security/advisories/GHSA-xhw7-j96h-c3g5",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-43937"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-841",
          "CWE-89"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/43xxx/CVE-2026-43937.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-43937",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 519345,
  "published_at": "2026-05-12T14:00:35.599+00:00"
}