CVE-2024-34355: Typo3/cms core TYPO3 Vulnerable To An HTML Vulnerability

LOW
Advisory Identifier: GHSA-xjwx-78x7-q6jc
CVSS 3.5
CWE-116 CWE-79
Published
Advisory Summary

CVE-2024-34355 is a LOW (CVSS 3.5) typo3 vulnerable to an html vulnerability (CWE-116: Improper Encoding or Escaping of Output) affecting Typo3/cms core libraries in the Packagist ecosystem. The issue involves typo3 vulnerable to an html injection in the history module. Remediation is available by upgrading affected packages to version 13.1.1.

CVE-2024-34355 at a Glance

CVE Identifier CVE-2024-34355
GHSA Identifier GHSA-xjwx-78x7-q6jc
Severity LOW
CVSS v3.1 Base Score 3.5
CWE Classification CWE-116: Improper Encoding or Escaping of Output
Affected Product Typo3/cms core
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 3.5

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:R/S:U/C:N/I:L/A:N).

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

How to Fix CVE-2024-34355

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

typo3/cms-core fixed: 13.1.1
Upgrade typo3/cms-core to 13.1.1
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 typo3/cms-core

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-34355, inspect your project dependencies for Typo3/cms core:

inspect dependencies for typo3/cms-core

Analyze the terminal output to locate any version of Typo3/cms core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 13.1.1), 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-116: Improper Encoding or Escaping of Output, where the product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. as a result, the intended structure of the message is not preserved. In Typo3/cms core, 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

### Problem The history backend module is vulnerable to HTML injection. Although Content-Security-Policy headers effectively prevent JavaScript execution, adversaries can still inject malicious HTML markup. Exploiting this vulnerability requires a valid backend user account. ### Solution Update to TYPO3 version 13.1.1 that fixes the problem described. ### Credits Thanks to TYPO3 core team member Andreas Kienast who reported this issue and to TYPO3 core & security team Benjamin Franzke who fixed the issue. ### References * [TYPO3-CORE-SA-2024-007](https://typo3.org/security/advisory/typo3-core-sa-2024-007)

CVE-2024-34355 Affected Typo3/cms core Versions

1 component(s)
Fixed Versions:
13.1.1
Product / Package Ecosystem Affected Versions Fixed Version
typo3/cms-core
Packagist
≥ 13.0.0
< 13.1.1
13.1.1

References

Frequently Asked Questions

What is CVE-2024-34355?
CVE-2024-34355 is a security vulnerability in Typo3/cms core involving TYPO3 vulnerable to an HTML Injection in the History Module under CWE-116: Improper Encoding or Escaping of Output.
Which Typo3/cms core versions are affected?
Affected versions include releases prior to 13.1.1 across affected packages: typo3/cms-core.
What version fixes CVE-2024-34355?
Upgrading to 13.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is typo3/cms-core affected?
Yes, typo3/cms-core is affected in releases prior to 13.1.1. Upgrade your dependency to 13.1.1 or later.
What is the CVSS score of CVE-2024-34355?
CVE-2024-34355 has a CVSS v3.1 base score of 3.5 (LOW) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2024-34355?
CVE-2024-34355 is classified under CWE-116: Improper Encoding or Escaping of Output (The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.).
How can I check Packagist dependencies for CVE-2024-34355?
Run the dependency tree command: 'inspect dependencies for typo3/cms-core'. 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-xjwx-78x7-q6jc",
  "modified" : "2024-05-14T20:13:02Z",
  "published" : "2024-05-14T20:13:02Z",
  "aliases" : [ "CVE-2024-34355" ],
  "summary" : "TYPO3 vulnerable to an HTML Injection in the History Module",
  "details" : "### Problem\nThe history backend module is vulnerable to HTML injection. Although Content-Security-Policy headers effectively prevent JavaScript execution, adversaries can still inject malicious HTML markup. Exploiting this vulnerability requires a valid backend user account.\n\n### Solution\nUpdate to TYPO3 version 13.1.1 that fixes the problem described.\n\n### Credits\nThanks to TYPO3 core team member Andreas Kienast who reported this issue and to TYPO3 core & security team Benjamin Franzke who fixed the issue.\n\n### References\n* [TYPO3-CORE-SA-2024-007](https://typo3.org/security/advisory/typo3-core-sa-2024-007)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "typo3/cms-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "13.0.0"
      }, {
        "fixed" : "13.1.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 13.1.0"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/TYPO3/typo3/security/advisories/GHSA-xjwx-78x7-q6jc"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-34355"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/TYPO3/typo3/commit/56afa304ba8b5ad302e15df5def71bcc8d820375"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/TYPO3/typo3"
  }, {
    "type" : "WEB",
    "url" : "https://typo3.org/security/advisory/typo3-core-sa-2024-007"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-116", "CWE-79" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-14T20:13:02Z",
    "nvd_published_at" : "2024-05-14T16:17:24Z"
  }
}