Description
An issue in xiandafu beetl 3.20.2 allows a remote attacker to execute arbitrary code via the type.new function and the property reflection mechanism
Published: 2026-07-23
Score: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability resides in the xiandafu Beetl template engine version 3.20.2. It allows a remote attacker to invoke the type.new function in conjunction with the property reflection mechanism to execute arbitrary code. This breach can lead to full compromise of the system executing the templated code, providing the attacker with the same privileges as the process running the engine. The weakness corresponds to CWE‑917, an improper handling of user‑provided data that results in code execution.

Affected Systems

The affected product is the open‑source template engine Beetl, provided by xiandafu, version 3.20.2. No other vendors or versions are explicitly identified as vulnerable in the current details.

Risk and Exploitability

The CVSS score is 9.8, indicating a critical severity. The EPSS score is less than 1 %, suggesting that the probability of exploitation discovered in the wild is presently very low, and the vulnerability is not listed in the CISA KEV catalog. Nonetheless, the flaw can be triggered remotely through a template input that an attacker controls. A successful exploit would grant full code execution on the host and can be accomplished without any special privileges or local access.

Generated by OpenCVE AI on August 4, 2026 at 15:38 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Obtain and apply a newer Beetl release that removes the vulnerability, or apply the vendor’s patch if available.
  • If an update is not possible, disable or remove the type.new function and the property reflection capability from the template environment.
  • Implement a whitelist that restricts available template functions to only those needed, blocking arbitrary class instantiation.
  • Enable logging of template execution and monitor for suspicious activity, applying additional access controls to prevent unauthorized template processing.

Generated by OpenCVE AI on August 4, 2026 at 15:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 04 Aug 2026 16:00:00 +0000

Type Values Removed Values Added
Title Arbitrary Code Execution via type.new in Beetl Template Engine

Sun, 02 Aug 2026 17:45:00 +0000

Type Values Removed Values Added
Title Arbitrary Code Execution via type.new in Beetl Template Engine

Sat, 01 Aug 2026 04:00:00 +0000

Type Values Removed Values Added
Title Arbitrary Code Execution via type.new in Beetl 3.20.2

Sun, 26 Jul 2026 05:15:00 +0000

Type Values Removed Values Added
Title Arbitrary Code Execution via type.new in Beetl 3.20.2

Fri, 24 Jul 2026 20:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-917
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 24 Jul 2026 01:00:00 +0000

Type Values Removed Values Added
First Time appeared Xiandafu
Xiandafu beetl
Vendors & Products Xiandafu
Xiandafu beetl

Thu, 23 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
Description An issue in xiandafu beetl 3.20.2 allows a remote attacker to execute arbitrary code via the type.new function and the property reflection mechanism
References

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-07-24T19:26:42.120Z

Reserved: 2026-06-08T00:00:00.000Z

Link: CVE-2026-52439

cve-icon Vulnrichment

Updated: 2026-07-24T19:26:03.951Z

cve-icon NVD

Status : Deferred

Published: 2026-07-23T21:17:05.200

Modified: 2026-07-28T16:23:19.783

Link: CVE-2026-52439

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T15:45:03Z

Weaknesses
  • CWE-917

    Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')