CVE-2017-7536: High severity redhat Hibernate Validator vulnerability

Published Jun 27, 2017
·
Updated

A vulnerability which allows for a potential privilege escalation was found in the Hibernate Validator. If a security manager is present and HV itself is allowed to access private members reflectively as per the SM's configuration, that'll allow calling code without that permission to get hold of private state. The attack vector is to declare a constraint on a private member using XML, validate an invalid instance of that type and access the private member value via ConstraintViolation#getInvalidValue().

Other sources

In Hibernate Validator 5.2.x before 5.2.5 final, 5.3.x, and 5.4.x, it was found that when the security manager's reflective permissions, which allows it to access the private members of the class, are granted to Hibernate Validator, a potential privilege escalation can occur. By allowing the calling code to access those private members without the permission an attacker may be able to validate an invalid instance and access the private member value via ConstraintViolation#getInvalidValue().

MITRE

Affected Software

16 affected componentsFixes available
redhat/hibernate-validator<4.3.4.
4.3.4.
redhat/hibernate-validator<5.3.5.
5.3.5.
redhat Hibernate Validator>=5.2.0<5.2.5
redhat Hibernate Validator>=5.3.0<5.3.6
redhat Hibernate Validator>=5.4.0<5.4.2
redhat Satellite=6.4
redhat Satellite Capsule=6.4
redhat JBoss Enterprise Application Platform=6.0.0
redhat JBoss Enterprise Application Platform=6.4.0
redhat Enterprise Linux=5.0
redhat Enterprise Linux=6.0
redhat Enterprise Linux=7.0
redhat JBoss Enterprise Application Platform=7.0
redhat JBoss Enterprise Application Platform=7.1
redhat Virtualization=4.0
redhat Virtualization Host=4.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/hibernate-validator to a version that resolves this vulnerability.

    Fixed in 4.3.4.
  2. Upgrade

    Upgrade redhat/hibernate-validator to a version that resolves this vulnerability.

    Fixed in 5.3.5.
  3. Upgrade

    Upgrade Hibernate Validator to a version that resolves this vulnerability.

    Fixed in 5.2.5 final
  4. Upgrade

    Upgrade Hibernate Validator to a version that resolves this vulnerability.

    Fixed in 5.3.x
  5. Upgrade

    Upgrade Hibernate Validator to a version that resolves this vulnerability.

    Fixed in 5.4.x
  6. Compensating control

    If a Security Manager is present, ensure Hibernate Validator is not granted reflective permissions that allow it to access private members of its classes (i.e., do not grant HV the SecurityManager configuration permissions described as allowing it to access private members reflectively).

Event History

Jun 27, 2017
Data Sourced
via Red Hat·04:26 PM
DescriptionSeverityAffected Software
Jan 10, 2018
CVE Published
via MITRE·03:00 PM
Data Sourced
via MITRE·03:00 PM
DescriptionWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2017-7536?

CVE-2017-7536 is classified as a potential privilege escalation vulnerability.

2

How do I fix CVE-2017-7536?

To mitigate CVE-2017-7536, update Hibernate Validator to version 5.3.6 or later.

3

Which versions of Hibernate Validator are affected by CVE-2017-7536?

Hibernate Validator versions prior to 5.3.6 and 4.3.4 are affected by CVE-2017-7536.

4

Is CVE-2017-7536 relevant to Red Hat products?

Yes, CVE-2017-7536 affects multiple Red Hat products that utilize vulnerable versions of Hibernate Validator.

5

Can CVE-2017-7536 be exploited without a security manager?

No, CVE-2017-7536 requires a security manager configured to allow reflective access to private members.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203