CVE-2020-5245
Java vulnerability analysis and mitigation

Overview

Dropwizard-Validation before versions 1.3.19 and 2.0.2 contained a server-side template injection vulnerability in its self-validating feature that could allow arbitrary code execution on the host system with the privileges of the Dropwizard service account. The vulnerability was discovered in early 2020 and tracked as CVE-2020-5245. The issue specifically affected the @SelfValidating feature which allowed attackers to inject arbitrary Java Expression Language (EL) expressions (GitHub Advisory).

Technical details

The vulnerability existed in the ViolationCollector component of dropwizard-validation, which failed to properly escape Java Expression Language (EL) expressions in validation messages. This allowed attackers to inject malicious EL expressions that could be executed when using the self-validating feature through @SelfValidating and @SelfValidation annotations. The issue was fixed by implementing proper escaping of EL expressions in the ViolationCollector class (GitHub Commit).

Impact

The vulnerability could allow attackers to execute arbitrary code on the host system with the same privileges as the Dropwizard service account. This remote code execution capability posed a significant security risk to systems running vulnerable versions of the software (GitHub Advisory).

Mitigation and workarounds

The primary mitigation is to upgrade to dropwizard-validation version 1.3.19 or 2.0.2 which contain the fix. For users unable to upgrade, a workaround involves properly sanitizing any messages added to the ViolationCollector in methods annotated with @SelfValidation by escaping relevant characters such as '$'. The fix implemented in the patched versions includes proper escaping of EL expressions in the ViolationCollector class (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-15104MEDIUM6.9
  • JavaScriptJavaScript
  • vnu-jar
NoNoJan 16, 2026
CVE-2026-1002MEDIUM6.9
  • JavaJava
  • pki-resteasy-jackson2-provider
NoYesJan 15, 2026
CVE-2025-66169MEDIUM5.3
  • JavaJava
  • org.apache.camel:camel-neo4j
NoYesJan 14, 2026
CVE-2026-0858MEDIUM5.1
  • JavaJava
  • net.sourceforge.plantuml:plantuml
NoYesJan 16, 2026
CVE-2026-0976LOW3.7
  • JavaJava
  • keycloak
NoYesJan 15, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management