Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hibernate-validator-5.2.1.Final.jar: 2 vulnerabilities (highest severity is: 7.0) reachable #18

Open
mend-for-github-com bot opened this issue Apr 18, 2023 · 0 comments
Labels
Mend: dependency security vulnerability Security vulnerability detected by Mend

Comments

@mend-for-github-com
Copy link

mend-for-github-com bot commented Apr 18, 2023

Vulnerable Library - hibernate-validator-5.2.1.Final.jar

Hibernate's Bean Validation (JSR-303) reference implementation.

Library home page: http://hibernate.org/validator

Path to dependency file: /pom.xml

Path to vulnerable library: /Users/alexmaybaum/.m2/repository/org/hibernate/hibernate-validator/5.2.1.Final/hibernate-validator-5.2.1.Final.jar

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (hibernate-validator version) Remediation Possible** Reachability
CVE-2017-7536 High 7.0 hibernate-validator-5.2.1.Final.jar Direct 4.3.4.Final,5.3.6.Final,5.4.2.Final

Reachable

CVE-2020-10693 Medium 5.3 hibernate-validator-5.2.1.Final.jar Direct org.hibernate.validator:hibernate-validator:6.0.19.Final,org.hibernate.validator:hibernate-validator:6.1.3.Final,org.hibernate.validator:hibernate-validator:7.0.0.Alpha1

Reachable

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2017-7536

Vulnerable Library - hibernate-validator-5.2.1.Final.jar

Hibernate's Bean Validation (JSR-303) reference implementation.

Library home page: http://hibernate.org/validator

Path to dependency file: /pom.xml

Path to vulnerable library: /Users/alexmaybaum/.m2/repository/org/hibernate/hibernate-validator/5.2.1.Final/hibernate-validator-5.2.1.Final.jar

Dependency Hierarchy:

  • hibernate-validator-5.2.1.Final.jar (Vulnerable Library)

Found in base branch: vp-rem

Reachability Analysis

This vulnerability is potentially reachable

com.visualpathit.account.validator.UserValidator (Application)
  -> org.springframework.validation.beanvalidation.LocalValidatorFactoryBean (Extension)
   -> org.springframework.validation.beanvalidation.LocalValidatorFactoryBean$HibernateValidatorDelegate (Extension)
    -> org.hibernate.validator.internal.util.privilegedactions.LoadClass (Extension)
    ...
      -> org.hibernate.validator.internal.engine.ValidatorFactoryImpl (Extension)
       -> org.hibernate.validator.internal.engine.ValidatorImpl (Extension)
        -> ❌ org.hibernate.validator.internal.util.privilegedactions.GetDeclaredField (Vulnerable Component)

Vulnerability Details

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

Publish Date: 2018-01-10

URL: CVE-2017-7536

CVSS 3 Score Details (7.0)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Local
    • Attack Complexity: High
    • Privileges Required: Low
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: High
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-7536

Release Date: 2018-01-10

Fix Resolution: 4.3.4.Final,5.3.6.Final,5.4.2.Final

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2020-10693

Vulnerable Library - hibernate-validator-5.2.1.Final.jar

Hibernate's Bean Validation (JSR-303) reference implementation.

Library home page: http://hibernate.org/validator

Path to dependency file: /pom.xml

Path to vulnerable library: /Users/alexmaybaum/.m2/repository/org/hibernate/hibernate-validator/5.2.1.Final/hibernate-validator-5.2.1.Final.jar

Dependency Hierarchy:

  • hibernate-validator-5.2.1.Final.jar (Vulnerable Library)

Found in base branch: vp-rem

Reachability Analysis

This vulnerability is potentially reachable

com.visualpathit.account.validator.UserValidator (Application)
  -> org.springframework.validation.beanvalidation.LocalValidatorFactoryBean (Extension)
   -> org.springframework.validation.beanvalidation.LocalValidatorFactoryBean$HibernateValidatorDelegate (Extension)
    -> org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator (Extension)
    ...
      -> org.hibernate.validator.internal.engine.messageinterpolation.parser.TokenCollector (Extension)
       -> org.hibernate.validator.internal.engine.messageinterpolation.parser.BeginState (Extension)
        -> ❌ org.hibernate.validator.internal.engine.messageinterpolation.parser.MessageState (Vulnerable Component)

Vulnerability Details

A flaw was found in Hibernate Validator version 6.1.2.Final. A bug in the message interpolation processor enables invalid EL expressions to be evaluated as if they were valid. This flaw allows attackers to bypass input sanitation (escaping, stripping) controls that developers may have put in place when handling user-controlled data in error messages.

Publish Date: 2020-05-06

URL: CVE-2020-10693

CVSS 3 Score Details (5.3)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: Low
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://hibernate.atlassian.net/browse/HV-1758

Release Date: 2020-05-06

Fix Resolution: org.hibernate.validator:hibernate-validator:6.0.19.Final,org.hibernate.validator:hibernate-validator:6.1.3.Final,org.hibernate.validator:hibernate-validator:7.0.0.Alpha1

⛑️ Automatic Remediation will be attempted for this issue.


⛑️Automatic Remediation will be attempted for this issue.

@mend-for-github-com mend-for-github-com bot added the Mend: dependency security vulnerability Security vulnerability detected by Mend label Apr 18, 2023
@mend-local-app mend-local-app bot changed the title hibernate-validator-5.2.1.Final.jar: 2 vulnerabilities (highest severity is: 7.0) reachable hibernate-validator-5.2.1.Final.jar: 2 vulnerabilities (highest severity is: 7.0) May 2, 2023
@mend-local-app mend-local-app bot changed the title hibernate-validator-5.2.1.Final.jar: 2 vulnerabilities (highest severity is: 7.0) hibernate-validator-5.2.1.Final.jar: 2 vulnerabilities (highest severity is: 7.0) reachable May 3, 2023
@mend-local-app mend-local-app bot changed the title hibernate-validator-5.2.1.Final.jar: 2 vulnerabilities (highest severity is: 7.0) reachable hibernate-validator-5.2.1.Final.jar: 1 vulnerabilities (highest severity is: 5.3) reachable Jul 5, 2023
@mend-local-app mend-local-app bot changed the title hibernate-validator-5.2.1.Final.jar: 1 vulnerabilities (highest severity is: 5.3) reachable hibernate-validator-5.2.1.Final.jar: 2 vulnerabilities (highest severity is: 7.0) reachable Jul 11, 2023
@mend-local-app mend-local-app bot changed the title hibernate-validator-5.2.1.Final.jar: 2 vulnerabilities (highest severity is: 7.0) reachable hibernate-validator-5.2.1.Final.jar: 2 vulnerabilities (highest severity is: 7.0) unreachable Feb 26, 2024
@mend-local-app mend-local-app bot changed the title hibernate-validator-5.2.1.Final.jar: 2 vulnerabilities (highest severity is: 7.0) unreachable hibernate-validator-5.2.1.Final.jar: 2 vulnerabilities (highest severity is: 7.0) reachable May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mend: dependency security vulnerability Security vulnerability detected by Mend
Projects
None yet
Development

No branches or pull requests

0 participants