CVE-2020-10693: Improper Input Validation in Hibernate Validator

Summary

04/06/2021
Yes i
Moderate
5.3

CVE-2020-10693: Improper Input Validation in Hibernate Validator. Affects org.hibernate.validator:hibernate-validator across 2 version ranges.

< 6.0.20.Final >= 6.1.0.Final, < 6.1.5.Final

Fixed in 6.0.20.Final or 6.1.5.Final, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2020-10693 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Hibernate Validator is a popular Java library used for bean validation. It provides a set of annotations and APIs to validate objects and their properties. This vulnerability affects Hibernate Validator versions 6.1.0.Final to 6.1.4.Final. The library is commonly used in Java applications to ensure data integrity and enforce validation rules. However, a flaw in the message interpolation processor allows invalid EL expressions to be evaluated as if they were valid. This can bypass input sanitation controls and potentially lead to security vulnerabilities when handling user-controlled data in error messages.

Vulnerability Detail

The vulnerability (CVE-2020-10693) in Hibernate Validator allows attackers to bypass input sanitation controls by exploiting a bug in the message interpolation processor. This bug enables the evaluation of invalid EL expressions as if they were valid. As a result, developers' efforts to sanitize user-controlled data in error messages can be circumvented. Attackers can potentially inject malicious code or perform other unauthorized actions by exploiting this vulnerability. The impact of this vulnerability depends on the specific implementation and usage of Hibernate Validator in the affected application.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 6.0.20.Final 6.0.20.Final
  • >= 6.1.0.Final, < 6.1.5.Final 6.1.5.Final

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

As a workaround, developers can manually sanitize user-controlled data in error messages by properly escaping or stripping any potentially dangerous characters or expressions. However, this approach is error-prone and may not provide complete protection. It is strongly recommended to apply the official fix by upgrading to the latest version of Hibernate Validator.

Conclusion

The vulnerability in Hibernate Validator allows attackers to bypass input sanitation controls and potentially exploit the application. It is crucial to upgrade to the latest version of Hibernate Validator (6.1.5.Final or later) to mitigate this vulnerability. Developers should also ensure that their project dependencies are regularly updated to include the latest security patches. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.hibernate.validator:hibernate-validator →

Share this vulnerability

FAQ

Hibernate Validator is a Java library used for bean validation. It provides annotations and APIs to validate objects and their properties.

This vulnerability allows attackers to bypass input sanitation controls and potentially inject malicious code or perform unauthorized actions by exploiting a bug in the message interpolation processor of Hibernate Validator.

Versions 6.1.0.Final to 6.1.4.Final of Hibernate Validator are affected by this vulnerability.

To fix this vulnerability, upgrade to Hibernate Validator version 6.1.5.Final or later by updating your project dependencies.

A workaround is to manually sanitize user-controlled data in error messages, but it is recommended to apply the official fix by upgrading to the latest version of Hibernate Validator.

Related vulnerabilities

Recent vulnerabilities recorded for org.hibernate.validator:hibernate-validator.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 6.0.20.Final 6.0.20.Final
  • >= 6.1.0.Final, < 6.1.5.Final 6.1.5.Final

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback