Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2026-4747: Remote Code Execution in FreeBSD RPCSEC_GSS Packet Validation

Published Mar 26, 2026 · Updated 14 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days2 mentions · peak 1 in a dayToday
CVSS8.8High · v3.1
EPSS3.5%89th percentile
CISA KEVNoNot listed
In the wildReported1 exploitation record in Mallory
Vendor
Freebsd
IdentifiersCVE-2026-4747CWE-121 · Stack-based Buffer Overflow

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

2 exploits validated by Mallory's analysis.

View more in app →
CVE-2026-4747Repository contains a small Python exploit scaffold plus extensive Markdown documentation for CVE-2026-4747, described as a FreeBSD kernel stack buffer overflow in kgssapi.ko reachable through NFS RPCSEC_GSS authentication. Structure is: README.md with high-level exploit narrative and setup/mitigation notes, write-up.md with detailed vulnerability and exploitation methodology, claude-prompts.txt containing prompt/session history used to develop the exploit, and exploit.py as the only executable entry point. The main exploit capability is remote kernel RCE against vulnerable FreeBSD NFS servers on TCP/2049, with the intended post-exploitation outcome being a root reverse shell. The Python code defines a target profile database with hardcoded kernel addresses/gadgets for FreeBSD 14.4-RELEASE-AMD64, a simple ROP chain builder, and logic intended to generate a payload that calls pmap_change_prot on kernel BSS memory before staging shellcode. It accepts a victim IP, callback IP, and callback port. However, the implementation is incomplete: shellcode is a placeholder NOP sequence, RPC packet transmission is commented out, and there is even a likely bug using log.success(), which standard Python logging does not provide. So the repository is best characterized as an operational exploit concept/documentation set with a partial exploit scaffold rather than a turnkey weaponized tool. The write-up and README provide the substantive exploit intelligence: the vulnerable function copies attacker-controlled RPCSEC_GSS credential data into a 128-byte stack buffer without proper bounds checking, enabling overwrite of saved registers and return address in kernel context. The documented attack path requires RPCSEC_GSS/Kerberos handling to reach the vulnerable code path, and the exploit strategy uses repeated overflow packets to build/write shellcode into kernel BSS, pivot execution, invoke kernel helpers such as kproc_create, and ultimately exec /bin/sh to obtain a uid 0 reverse shell. Fingerprintable targets and artifacts include NFS on TCP/2049, Kerberos/KDC port 88 (with example forwarding to 8888), /bin/sh, /etc/krb5.conf, /boot/loader.conf, /etc/exports, and hardcoded kernel addresses for the supported target profile.kaleth4 · Disclosed Apr 9, 2026 · markdown · python · network · webOperationalCVE-2026-4747-Repository contains a README and a single Python exploit script. The README documents CVE-2026-4747 as a stack buffer overflow in FreeBSD's kgssapi.ko RPCSEC_GSS handling and explains the lab setup, exploitation strategy, and operational constraints. The main code is exploit.py, a standalone Python 3 exploit using gssapi plus raw socket/RPC helpers to attack an NFS service over RPCSEC_GSS. Core capability: the exploit performs remote kernel code execution against a vulnerable FreeBSD NFS server. It uses a 15-round attack because the overflowed credential/XDR field cannot carry the full payload in one request. Round 1 uses a ROP chain to call pmap_change_prot on kernel .bss to make it RWX. Rounds 2-14 use repeated ROP write primitives to copy shellcode into kernel memory. Final round writes the tail of the shellcode and transfers execution to it. The shellcode pivots to a controlled stack in .bss, clears DR7, calls kproc_create to spawn a kernel worker context, then uses exec_alloc_args/exec_args_add_* and kern_execve to run /bin/sh -c with a reverse-shell one-liner. The result is an interactive root shell connecting back to the attacker. The exploit is highly target-specific and operational rather than generic: it hardcodes kernel base, .bss addresses, gadget offsets, and function offsets for FreeBSD 14.4-RELEASE amd64 GENERIC with no KASLR variation. It also assumes the target exposes NFS on TCP/2049 with RPCSEC_GSS enabled and that the attacker has a valid Kerberos ticket for the configured realm/SPN. The README further notes that 2+ CPUs are effectively required because each round consumes an NFS worker thread and the exploit needs enough surviving threads to complete all 15 rounds. Repository structure is minimal and purpose-built: README.md provides vulnerability background, setup instructions for a vulnerable FreeBSD/Kerberos/NFS lab, and a walkthrough of the multi-stage ROP/shellcode design; exploit.py is the only executable entry point and contains constants, XDR/RPC helpers, shellcode generation, exploit delivery logic, listener setup, and interactive shell handling.kaleth4 · Disclosed Apr 10, 2026 · python · markdown · network · webOperational
Exposure surface

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.

VendorProductType
FreebsdFreebsdoperating_system
FAQ

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.
Activity feed

Recent activity

141 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
codebyNews · Oct 25, 2026ИИ-агенты в пентесте: scope violation и guardrailsA stack buffer overflow during RPCSEC_GSS packet-signature validation in FreeBSD's kgssapi.ko kernel module, caused by copying incoming packet data without checking its size. According to the article's account of NVD, triggering the overflow does not require prior authentication, but achieving kernel-level remote code execution requires an authenticated user capable of sending RPCSEC_GSS packets. The reported CVSS v3.1 score is 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H). Multiple FreeBSD versions are affected; the article defers the exact version list to the official advisory. Claims of autonomous scanning and successful exploit development are explicitly presented as requiring verification.Read more ↗bugflationNews · Aug 17, 2026Anthropic's CVD ledger leaves eleven qualifying cards model-unspecified - BugflationA vulnerability identifier referenced as having an independent primary source that names Mythos; the supplied content provides no technical vulnerability details.Read more ↗postquantumNews · Jul 29, 2026AI Can Hack Everything? Do the Math FirstA remote code execution vulnerability in FreeBSD’s NFS server that can grant unauthenticated root access; cited as an example of AI-assisted autonomous exploitation.Read more ↗codebyNews · Jul 22, 2026CVE-2026-42511: 21-летняя RCE в FreeBSD dhclientA separate FreeBSD remote code execution vulnerability mentioned only for comparison; described as a stack-based buffer overflow in kgssapi.ko.Read more ↗
+21 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity114Community discussion across Reddit, Mastodon, and other social sources.