CVE-2024-29686: Wintercms/winter Winter CMS Server-Side Template Injection Vulnerability

HIGH
Advisory Identifier: GHSA-8r5j-gm3j-cx9c
CVSS 8.8
CWE-97 CWE-75
Published
Advisory Summary

CVE-2024-29686 is a HIGH (CVSS 8.8) winter cms server-side template injection vulnerability (CWE-97: Improper Neutralization of Server-Side Includes (SSI) Within a Web Page) affecting Wintercms/winter libraries in the Packagist ecosystem. The issue involves winter cms server-side template injection (ssti) vulnerability. Remediation is available in the latest vendor maintenance releases.

CVE-2024-29686 at a Glance

CVE Identifier CVE-2024-29686
GHSA Identifier GHSA-8r5j-gm3j-cx9c
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-97: Improper Neutralization of Server-Side Includes (SSI) Within a Web Page
Affected Product Wintercms/winter
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 8.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2024-29686

To remediate this vulnerability, upgrade all affected Wintercms/winter dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

wintercms/winter fixed: Latest secure release
Upgrade wintercms/winter to Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for wintercms/winter

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-29686, inspect your project dependencies for Wintercms/winter:

inspect dependencies for wintercms/winter

Analyze the terminal output to locate any version of Wintercms/winter in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-97: Improper Neutralization of Server-Side Includes (SSI) Within a Web Page, where the product generates a web page, but does not neutralize or incorrectly neutralizes user-controllable input that could be interpreted as a server-side include (ssi) directive. In Wintercms/winter, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Server-side Template Injection (SSTI) vulnerability in Winter CMS v.1.2.3 allows a remote attacker to execute arbitrary code via a crafted payload to the CMS Pages field and Plugin components.

CVE-2024-29686 Affected Wintercms/winter Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
wintercms/winter
Packagist
≤ 1.2.3

References

Frequently Asked Questions

What is CVE-2024-29686?
CVE-2024-29686 is a security vulnerability in Wintercms/winter involving Winter CMS Server-Side Template Injection (SSTI) vulnerability under CWE-97: Improper Neutralization of Server-Side Includes (SSI) Within a Web Page.
Which Wintercms/winter versions are affected?
Affected versions include releases prior to current release patches across affected packages: wintercms/winter.
What version fixes CVE-2024-29686?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is wintercms/winter affected?
Yes, wintercms/winter is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2024-29686?
CVE-2024-29686 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2024-29686?
CVE-2024-29686 is classified under CWE-97: Improper Neutralization of Server-Side Includes (SSI) Within a Web Page (The product generates a web page, but does not neutralize or incorrectly neutralizes user-controllable input that could be interpreted as a server-side include (SSI) directive.).
How can I check Packagist dependencies for CVE-2024-29686?
Run the dependency tree command: 'inspect dependencies for wintercms/winter'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-8r5j-gm3j-cx9c",
  "modified" : "2024-08-02T15:59:38Z",
  "published" : "2024-03-29T18:30:42Z",
  "aliases" : [ "CVE-2024-29686" ],
  "summary" : "Winter CMS Server-Side Template Injection (SSTI) vulnerability",
  "details" : "Server-side Template Injection (SSTI) vulnerability in Winter CMS v.1.2.3 allows a remote attacker to execute arbitrary code via a crafted payload to the CMS Pages field and Plugin components.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "wintercms/winter"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.2.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-29686"
  }, {
    "type" : "WEB",
    "url" : "https://forum.ksec.co.uk/t/webapps-winter-cms-1-2-3-server-side-template-injection-ssti-authenticated/2779"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/wintercms/winter"
  }, {
    "type" : "WEB",
    "url" : "https://wintercms.com/docs/v1.2/docs/cms/themes#template-structure"
  }, {
    "type" : "WEB",
    "url" : "https://www.exploit-db.com/exploits/51893"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-75", "CWE-97" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-03-29T20:15:38Z",
    "nvd_published_at" : "2024-03-29T16:15:08Z"
  }
}