CVE-2026-4747: Remote Code Execution in FreeBSD RPCSEC_GSS Packet Validation
- Vendor
- Freebsd
CVE-2026-4747 is a stack-based buffer overflow in FreeBSD's RPCSEC_GSS signature-validation implementation. The svc_rpc_gss_validate() function reconstructs an RPC header in a 128-byte stack buffer, placing 32 bytes of fixed header fields before copying a client-controlled credential body without checking the remaining capacity. Credential bodies exceeding 96 bytes overflow the buffer; the RPC credential limit of 400 bytes permits up to 304 bytes of stack overwrite. The overflow can be triggered before client authentication and can lead to remote kernel code execution on affected NFS servers with the kernel GSS-API module loaded. Userspace RPC servers loading the affected RPCSEC_GSS library are also vulnerable to remote code execution, although no such applications are identified in the FreeBSD base system.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation against the kernel NFS server can provide kernel-privileged code execution and complete host compromise, including root access and loss of confidentiality, integrity, and availability. Stack corruption can also cause kernel panics or service disruption. Exploitation of an affected userspace RPC server permits code execution with that process's privileges. Unauthenticated remote-root exploitation has been reported for particular FreeBSD NFS configurations; this should not be interpreted as universal exploitability of every NFS deployment.
Mitigation
If you can’t patch tonight, do this now.
If RPCSEC_GSS is not required, unload kgssapi.ko and prevent it from being loaded again. Restrict network access to NFS and affected userspace RPC services to necessary, trusted clients, or disable those services until patched. Monitor for malformed or oversized RPCSEC_GSS requests, repeated validation failures, and unexpected NFS-related kernel panics. Network restrictions reduce exposure but do not protect against an attacker operating through an allowed client.
Remediation
Patch, then assume compromise.
Apply the updates associated with FreeBSD-SA-26:08.rpcsec_gss. Fixed release levels are FreeBSD 13.5-RELEASE-p11, 14.3-RELEASE-p10, 14.4-RELEASE-p1, and 15.0-RELEASE-p5, or later applicable patched releases. The correction rejects credential lengths exceeding the stack buffer's remaining capacity before copying. Ensure the corrected kernel component and affected userspace library are deployed and active; restart affected services and reboot as required to replace vulnerable loaded code.
Exploits
2 exploits validated by Mallory's analysis.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-4747 exploited in the wild?
- Yes. As of Nov 5, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2026-4747?
- Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2026-4747, the earliest disclosed Apr 9, 2026.
- Is there a patch for CVE-2026-4747?
- Apply the updates associated with FreeBSD-SA-26:08.rpcsec_gss. Fixed release levels are FreeBSD 13.5-RELEASE-p11, 14.3-RELEASE-p10, 14.4-RELEASE-p1, and 15.0-RELEASE-p5, or later applicable patched releases.
- What products are affected by CVE-2026-4747?
- Freebsd.
- How severe is CVE-2026-4747?
- CVE-2026-4747 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 3.5% (89th percentile) as of Nov 5, 2026.
Recent activity
141 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.