CVE-2024-28109: Insecure Transformerfactory Configuration

The application instantiates an XML TransformerFactory without enabling XMLConstants.FEATURE_SECURE_PROCESSING. This unsafe default configuration allows the execution of arbitrary Java extension functions embedded within XSL stylesheets, leading to Remote Code Execution (RCE). Ensure that FEATURE_SECURE_PROCESSING is set to true.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Java
greprules fetch cve-2024-28109-insecure-transformerfactory-configuration --engine opengrep

Description

The application instantiates an XML TransformerFactory without enabling XMLConstants.FEATURE_SECURE_PROCESSING. This unsafe default configuration allows the execution of arbitrary Java extension functions embedded within XSL stylesheets, leading to Remote Code Execution (RCE). Ensure that FEATURE_SECURE_PROCESSING is set to true.