Description
Microweber CMS through 2.0.20 contains a server-side template injection vulnerability that allows authenticated administrators to achieve arbitrary OS command execution by injecting Twig expressions into mail templates. Attackers can exploit the unsandboxed Twig environment in TwigView::render(), which lacks SandboxExtension or a SecurityPolicy, to inject malicious expressions such as filter('system') into mail template bodies stored unsanitized in the database, causing automatic payload execution on each subsequent application event that triggers a mail dispatch.
Published: 2026-07-24
Score: 8.6 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Microweber CMS versions up to 2.0.20 allow an authenticated administrator to inject arbitrary Twig expressions into mail template bodies stored unsanitized in the database. When a mail event is triggered, the unsandboxed Twig environment rendered by TwigView::render() executes the malicious expression, enabling the attacker to run system commands with the web server’s privileges. This is a classic code‑execution flaw categorized as CWE‑94 and can compromise confidentiality, integrity, and availability of the host system.

Affected Systems

The affected product is Microweber CMS, offered by the microweber vendor. All releases up to and including 2.0.20 are vulnerable. The issue impacts the default mail template functionality and persists across administrative sessions until the product is updated.

Risk and Exploitability

The CVSS score of 8.6 indicates high severity, while the EPSS score of less than 1 % suggests a very low probability of exploitation in the wild. The vulnerability is not listed in CISA’s KEV catalog. Exploitation requires authentication as an administrator and relies on the ability to edit mail templates. Because the flaw is in template rendering rather than network‑level exposure, the attacker must first achieve administrative access, possibly through credential compromise or other weaknesses. Once a trusted user creates or edits a mail template containing a malicious Twig expression, it will be executed automatically each time a mail dispatch occurs, providing a persistent foothold.

Generated by OpenCVE AI on August 3, 2026 at 19:53 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Microweber CMS to version 2.0.21 or later, where the Twig rendering path has been secured.
  • If an immediate upgrade is not possible, disable the mail template editing feature or restrict it to a minimal set of trusted administrators.
  • Implement application‑level sanitation of template contents, ensuring that unsandboxed Twig expressions cannot be stored in the database.
  • Monitor application logs for unexpected Twig syntax or system command execution patterns.

Generated by OpenCVE AI on August 3, 2026 at 19:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 28 Jul 2026 01:30:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:microweber:microweber:*:*:*:*:*:*:*:*

Sat, 25 Jul 2026 01:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Fri, 24 Jul 2026 22:45:00 +0000

Type Values Removed Values Added
First Time appeared Microweber
Microweber microweber
Vendors & Products Microweber
Microweber microweber

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

Type Values Removed Values Added
Description Microweber CMS through 2.0.20 contains a server-side template injection vulnerability that allows authenticated administrators to achieve arbitrary OS command execution by injecting Twig expressions into mail templates. Attackers can exploit the unsandboxed Twig environment in TwigView::render(), which lacks SandboxExtension or a SecurityPolicy, to inject malicious expressions such as filter('system') into mail template bodies stored unsanitized in the database, causing automatic payload execution on each subsequent application event that triggers a mail dispatch.
Title Microweber CMS 2.0.20 Server-Side Template Injection via Mail Templates
Weaknesses CWE-94
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 8.6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Microweber Microweber
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-28T01:06:10.301Z

Reserved: 2026-07-22T20:26:09.979Z

Link: CVE-2026-65693

cve-icon Vulnrichment

Updated: 2026-07-25T00:54:15.979Z

cve-icon NVD

Status : Deferred

Published: 2026-07-24T16:16:55.360

Modified: 2026-07-28T20:37:39.353

Link: CVE-2026-65693

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T20:00:13Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')