2026-03-26 6:21CVE-2026-4747freebsd
PUBLISHED5.2CWE-121

Remote code execution via RPCSEC_GSS packet validation

Each RPCSEC_GSS data packet is validated by a routine which checks a signature in the packet. This routine copies a portion of the packet into a stack buffer, but fails to ensure that the buffer is sufficiently large, and a malicious client can trigger a stack overflow. Notably, this does not require the client to authenticate itself first.

As kgssapi.ko's RPCSEC_GSS implementation is vulnerable, remote code execution in the kernel is possible by an authenticated user that is able to send packets to the kernel's NFS server while kgssapi.ko is loaded into the kernel.

In userspace, applications which have librpcgss_sec loaded and run an RPC server are vulnerable to remote code execution from any client able to send it packets. We are not aware of any such applications in the FreeBSD base system.

Problem type

Affected products

FreeBSD

FreeBSD

< p5 - AFFECTED

< p1 - AFFECTED

< p10 - AFFECTED

< p11 - AFFECTED

References

JSON source

https://cveawg.mitre.org/api/cve/CVE-2026-4747
Click to expand
{
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "cveMetadata": {
    "cveId": "CVE-2026-4747",
    "assignerOrgId": "63664ac6-956c-4cba-a5d0-f46076e16109",
    "assignerShortName": "freebsd",
    "dateUpdated": "2026-03-26T13:30:42.498Z",
    "dateReserved": "2026-03-24T03:57:38.500Z",
    "datePublished": "2026-03-26T06:21:12.735Z",
    "state": "PUBLISHED"
  },
  "containers": {
    "cna": {
      "providerMetadata": {
        "orgId": "63664ac6-956c-4cba-a5d0-f46076e16109",
        "shortName": "freebsd",
        "dateUpdated": "2026-03-26T06:21:12.735Z"
      },
      "datePublic": "2026-03-26T05:00:00.000Z",
      "title": "Remote code execution via RPCSEC_GSS packet validation",
      "descriptions": [
        {
          "lang": "en",
          "value": "Each RPCSEC_GSS data packet is validated by a routine which checks a signature in the packet.  This routine copies a portion of the packet into a stack buffer, but fails to ensure that the buffer is sufficiently large, and a malicious client can trigger a stack overflow.  Notably, this does not require the client to authenticate itself first.\n\nAs kgssapi.ko's RPCSEC_GSS implementation is vulnerable, remote code execution in the kernel is possible by an authenticated user that is able to send packets to the kernel's NFS server while kgssapi.ko is loaded into the kernel.\n\nIn userspace, applications which have librpcgss_sec loaded and run an RPC server are vulnerable to remote code execution from any client able to send it packets.  We are not aware of any such applications in the FreeBSD base system."
        }
      ],
      "affected": [
        {
          "vendor": "FreeBSD",
          "product": "FreeBSD",
          "modules": [
            "rpcsec_gss"
          ],
          "defaultStatus": "unknown",
          "versions": [
            {
              "version": "15.0-RELEASE",
              "status": "affected",
              "versionType": "release",
              "lessThan": "p5"
            },
            {
              "version": "14.4-RELEASE",
              "status": "affected",
              "versionType": "release",
              "lessThan": "p1"
            },
            {
              "version": "14.3-RELEASE",
              "status": "affected",
              "versionType": "release",
              "lessThan": "p10"
            },
            {
              "version": "13.5-RELEASE",
              "status": "affected",
              "versionType": "release",
              "lessThan": "p11"
            }
          ]
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "lang": "en",
              "description": "CWE-121: Stack-based Buffer Overflow",
              "cweId": "CWE-121",
              "type": "CWE"
            }
          ]
        }
      ],
      "references": [
        {
          "url": "https://security.freebsd.org/advisories/FreeBSD-SA-26:08.rpcsec_gss.asc",
          "tags": [
            "vendor-advisory"
          ]
        }
      ],
      "credits": [
        {
          "lang": "en",
          "value": "Nicholas Carlini using Claude, Anthropic",
          "type": "finder"
        }
      ]
    },
    "adp": [
      {
        "providerMetadata": {
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP",
          "dateUpdated": "2026-03-26T13:30:42.498Z"
        },
        "title": "CISA ADP Vulnrichment",
        "metrics": [
          {
            "cvssV3_1": {
              "version": "3.1",
              "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
              "attackVector": "NETWORK",
              "attackComplexity": "LOW",
              "privilegesRequired": "LOW",
              "userInteraction": "NONE",
              "scope": "UNCHANGED",
              "confidentialityImpact": "HIGH",
              "integrityImpact": "HIGH",
              "availabilityImpact": "HIGH",
              "baseScore": 8.8,
              "baseSeverity": "HIGH"
            }
          },
          {}
        ]
      }
    ]
  }
}