Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-6761

CVE-2025-6761: Kingdee Cloud-Starry-Sky RCE Vulnerability

CVE-2025-6761 is a critical remote code execution flaw in Kingdee Cloud-Starry-Sky Enterprise Edition affecting versions 6.x through 9.0 via the Freemarker Engine. This article covers technical details, impact, and mitigation.

Published: April 21, 2026

CVE-2025-6761 Overview

A critical Server-Side Template Injection (SSTI) vulnerability has been identified in Kingdee Cloud-Starry-Sky Enterprise Edition affecting versions 6.x through 9.0. The vulnerability exists in the Freemarker template engine component, specifically within the plugin.buildMobilePopHtml function located in the DynamicForm4Action.class file. This flaw allows remote attackers to inject malicious template directives that can be processed by the Freemarker engine, potentially leading to unauthorized code execution.

The vulnerability stems from improper neutralization of special elements used in the template engine (CWE-791), enabling attackers to craft malicious payloads that bypass intended security controls. The exploit has been publicly disclosed, increasing the urgency for organizations using affected versions to apply available patches.

Critical Impact

Remote attackers can exploit the Freemarker template engine to inject malicious templates, potentially compromising confidentiality, integrity, and availability of the affected Kingdee Cloud-Starry-Sky Enterprise Edition systems.

Affected Products

  • Kingdee Cloud-Starry-Sky Enterprise Edition 6.x
  • Kingdee Cloud-Starry-Sky Enterprise Edition 7.x
  • Kingdee Cloud-Starry-Sky Enterprise Edition 8.x
  • Kingdee Cloud-Starry-Sky Enterprise Edition 9.0

Discovery Timeline

  • 2025-06-27 - CVE-2025-6761 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-6761

Vulnerability Analysis

This vulnerability represents a Server-Side Template Injection (SSTI) flaw in the Freemarker Engine component of Kingdee Cloud-Starry-Sky Enterprise Edition. The affected function plugin.buildMobilePopHtml within the \k3\o2o\bos\webapp\action\DynamicForm4Action.class file fails to properly sanitize user-controlled input before processing it through the Freemarker template engine.

Freemarker is a powerful Java-based template engine commonly used for generating dynamic HTML content. When template expressions are not properly restricted, attackers can inject arbitrary Freemarker directives that the engine will execute. This can lead to arbitrary class instantiation, method invocation, and potentially full remote code execution on the underlying server.

The network-based attack vector means that exploitation can occur remotely without requiring any user interaction or authentication, making this vulnerability particularly dangerous for internet-facing deployments of the affected software.

Root Cause

The root cause of CVE-2025-6761 is the improper neutralization of special elements used in the Freemarker template engine (CWE-791). The vulnerable function processes user-supplied data as template content without implementing adequate restrictions on which Freemarker built-ins and classes can be accessed. This allows attackers to leverage Freemarker's powerful introspection capabilities to instantiate arbitrary Java classes and invoke methods, bypassing the intended sandboxing of the template environment.

Attack Vector

The attack can be launched remotely against the Kingdee Cloud-Starry-Sky Enterprise Edition application. An attacker can submit a specially crafted request to the DynamicForm4Action endpoint containing malicious Freemarker template directives. When the plugin.buildMobilePopHtml function processes this input, the Freemarker engine evaluates the injected expressions, allowing the attacker to:

  1. Access internal Java classes through Freemarker's built-in methods
  2. Instantiate arbitrary objects using class loaders
  3. Execute system commands through Java's Runtime class
  4. Read sensitive files or exfiltrate data from the server

The vulnerability does not require authentication, making it exploitable by any remote attacker who can reach the affected endpoint.

Detection Methods for CVE-2025-6761

Indicators of Compromise

  • Unusual HTTP requests to the DynamicForm4Action endpoint containing Freemarker template syntax such as ${, <#, or ?new
  • Web server logs showing requests with encoded template injection payloads targeting the mobile popup HTML functionality
  • Unexpected process spawning from the Java/Tomcat process running Kingdee Cloud-Starry-Sky
  • File system access patterns indicating attempts to read sensitive configuration files

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect and block Freemarker template injection patterns in HTTP requests
  • Monitor application logs for requests containing suspicious Freemarker syntax like freemarker.template.utility.Execute, ?new, or class reflection patterns
  • Deploy runtime application self-protection (RASP) solutions to detect template injection attempts
  • Review access logs for the \k3\o2o\bos\webapp\action\ path for anomalous request patterns

Monitoring Recommendations

  • Enable detailed logging on the Kingdee Cloud-Starry-Sky application server to capture all requests to the DynamicForm4Action component
  • Set up alerts for HTTP requests containing template injection indicators targeting the affected endpoints
  • Monitor for outbound network connections from the application server that may indicate post-exploitation activity
  • Implement file integrity monitoring on critical system files to detect unauthorized modifications

How to Mitigate CVE-2025-6761

Immediate Actions Required

  • Upgrade Kingdee Cloud-Starry-Sky Enterprise Edition to the patched version that sets Freemarker to ALLOWS_NOTHING_RESOLVER
  • If immediate patching is not possible, restrict network access to the affected DynamicForm4Action endpoint using firewall rules
  • Implement WAF rules to filter requests containing Freemarker template syntax
  • Review application logs for any evidence of prior exploitation attempts

Patch Information

Kingdee has released a security update that addresses this vulnerability by configuring the Freemarker engine with ALLOWS_NOTHING_RESOLVER. This setting prevents the template engine from parsing or instantiating any Java classes, effectively neutralizing template injection attacks. Organizations should obtain the patched version through Kingdee's official channels or reference the detailed advisory information.

For additional technical details about this vulnerability, refer to VulDB entry #314072.

Workarounds

  • Implement strict input validation on all parameters passed to the DynamicForm4Action endpoint, rejecting any input containing Freemarker template syntax
  • Deploy a reverse proxy or WAF in front of the application to filter malicious template injection attempts before they reach the vulnerable component
  • If the mobile popup HTML functionality is not required, consider disabling or removing access to the affected endpoint entirely
  • Implement network segmentation to limit the blast radius if the application is compromised
bash
# Example WAF rule to block Freemarker template injection patterns
# Block requests containing common Freemarker injection syntax
SecRule ARGS "@rx (\$\{|<#|freemarker\.template|\.getClass\(\)|\.exec\()" \
    "id:100001,phase:2,deny,status:403,log,msg:'Potential Freemarker Template Injection'"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechFreemarker

  • SeverityMEDIUM

  • CVSS Score6.9

  • EPSS Probability0.09%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-791
  • Technical References
  • Kingdee VIP Link

  • Kingdee School Details

  • VulDB CTI #314072

  • VulDB #314072

  • VulDB Submission #601207
  • Related CVEs
  • CVE-2025-70830: Datart Freemarker SSTI RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English