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).

Exploitability

The vulnerability could be exploited by injecting malicious Java EL expressions when using the self-validating feature. The attack vector required the application to use the @SelfValidating feature, making it somewhat limited in scope but still serious for affected systems (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-2026-73644CRITICAL9.6
  • Java logoJava
  • org.openidentityplatform.opendj:opendj-server-legacy
NoYesAug 13, 2026
CVE-2026-73507HIGH7.5
  • Java logoJava
  • datahub-upgrade-fips
NoYesAug 13, 2026
CVE-2026-73495HIGH7.4
  • Java logoJava
  • org.http4s:blaze-http_2.13
NoYesAug 12, 2026
CVE-2026-73508MEDIUM5.3
  • Java logoJava
  • trino
NoYesAug 13, 2026
CVE-2026-48791LOW2
  • Java logoJava
  • dev.sigstore:sigstore-java
NoYesAug 13, 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