← Back to SOC feed Coverage →

Detects error messages caused by the exploitation of the React Server Remote Code Execution Vulnerability (CVE-2025-5518

yara HIGH signature-base
exploitflorian-roth
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at signature-base →
Retrieved: 2026-08-07T11:00:00Z · Confidence: medium

Hunt Hypothesis

This hunt hypothesis targets adversaries exploiting the React Server Remote Code Execution vulnerability (CVE-2025-5518) in Next.js applications to execute arbitrary code through specific error message patterns. Proactively hunting for these indicators within Azure Sentinel is critical because successful exploitation allows attackers to gain immediate command-line access, potentially leading to full system compromise before standard alerts trigger.

YARA Rule

rule EXPL_RCE_React_Server_Next_JS_CVE_2025_66478_Errors_Dec25 {
   meta:
      description = "Detects error messages caused by the exploitation of the React Server Remote Code Execution Vulnerability (CVE-2025-55182) in Next.js applications (CVE-2025-66478). This can also be caused by vulnerability scanning."
      author = "Florian Roth"
      reference = "https://github.com/Malayke/Next.js-RSC-RCE-Scanner-CVE-2025-66478"
      date = "2025-12-05"
      score = 65
      id = "6baeb522-6299-56a2-be27-21c6b668439b"
   strings:
      $s1 = "[Error: NEXT_REDIRECT]"
      $s2 = "digest: 'uid=0(root) gid=0(root)"
   condition:
      all of them
}

Deployment Notes

This YARA rule can be deployed in the following contexts:

This rule contains 2 string patterns in its detection logic.

References

False Positive Guidance

Here are 3-5 specific false positive scenarios for the Detects error messages caused by the exploitation of the React Server Remote Code Execution Vulnerability (CVE-2025-5518) rule, along with suggested filters and exclusions:

Original source: https://github.com/Neo23x0/signature-base/blob/main/yara/react_pocs_indicators_dec25.yar