# What is CVE-2025-35036?

> CVE-2025-35036 is a high-severity flaw (CVSS 7.3) in Hibernate Validator from Red Hat, published on 3 June 2025. It is not on the list of flaws known to be exploited today. The latest forecast puts its chance of use in the next 30 days at 0.7%. If you run an affected version, plan in the vendor’s fix.

Canonical page: https://www.precursorintelligence.com/what-is/cve-2025-35036

## At a glance

- **Verdict:** Plan it in. No sign of exploitation and a low forecast. Patch it in your normal update cycle.
- **Precursor Intelligence risk score:** 46 out of 100 (Medium); action: Plan remediation. Kept up to date as the evidence changes.
- **Severity:** High (CVSS 7.3 out of 10)
- **Known to be exploited:** No, not on the list of flaws known to be exploited today
- **Chance of use in the next 30 days:** 0.7% (latest exploit-likelihood forecast)
- **Published:** 3 June 2025
- **Record last updated:** 18 September 2025
- **Main product:** Hibernate Validator from Red Hat
- **Affected products:** 1

## What is CVE-2025-35036? In plain terms

It can be attacked from anywhere on the internet without logging in, and nobody has to click anything. If it works, the attacker can read some data, change some data and slow it down.

### The official description

Hibernate Validator before 6.2.0 and 7.0.0, by default and depending how it is used, may interpolate user-supplied input in a constraint violation message with Expression Language. This could allow an attacker to access sensitive information or execute arbitrary Java code. Hibernate Validator as of 6.2.0 and 7.0.0 no longer interpolates custom constraint violation messages with Expression Language and strongly recommends not allowing user-supplied input in constraint violation messages. CVE-2020-5245 and CVE-2025-4428 are examples of related, downstream vulnerabilities involving Expression Language intepolation of user-supplied data.

### What kind of flaw is it?

- CWE-94: Improper Control of Generation of Code ('Code Injection')

### How an attack on it works

- Where an attacker can be: Anywhere on the internet
- How hard it is to pull off: Easy: no special conditions
- Login needed first: No login needed
- Does someone have to click: No, nobody has to do anything
- What an attacker gets: Can read some data, change some data and slow it down

Severity vector: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`

## Is CVE-2025-35036 being exploited? Not that we know of

It is not on the list of flaws known to be exploited today. The latest forecast puts the chance of it being used in the next 30 days at 0.7%. That can change at any time, which is why we keep watching.

Exploit likelihood over the last 7 days: 0.7%, 0.7%, 0.7%, 0.7%, 0.7%, 0.7%, 0.7%.

### Timeline

- 3 June 2025: Published
- 18 September 2025: Record last updated

### How Precursor Intelligence ranks it

CVE-2025-35036 scores **46 out of 100 (Medium)**, with the action "Plan remediation".

Every published flaw gets a risk score from 0 to 100, kept up to date as the evidence changes. Four things go into the score, from the one that counts most to the ones that count less:

- Evidence it is being exploited: biggest factor
- How severe it is: strong factor
- How widely exposed it is: smaller factor
- Threat activity around it: smaller factor

85 and above is Critical. Anything confirmed as exploited is always marked for an emergency patch, whatever its score. When this flaw matches software you track, it lands in your list with its score and the reasons behind it.

## Who is affected by CVE-2025-35036?

The published record lists 1 product. Versions are as published: "before 6.2.0" means every version up to, but not including, 6.2.0.

- [Hibernate Validator](https://www.precursorintelligence.com/product/redhat/hibernate_validator) by [Red Hat](https://www.precursorintelligence.com/vendors/redhat) (Application): before 6.2.0

## How do I fix CVE-2025-35036?

1. **Check whether you run it.** Compare your versions with the affected products above. Not sure what you run? Precursor Intelligence can work it out from your public website, or you can pick it from a list.
2. **Apply the vendor’s fix.** Install the update named in the vendor’s advisory. We’ve put the advisories and patch notes first in the list.
3. **If you can’t patch today.** Follow any mitigation the vendor publishes, and limit who can reach the affected system from the internet until the update is in.
4. **Keep an eye on it.** Track the product and we tell you as soon as we spot this flaw on the list of exploited flaws, or a jump in its exploit likelihood.

### References

- [github.com](https://github.com/hibernate/hibernate-validator/commit/05f795bb7cf18856004f40e5042709e550ed0d6e) (Patch)
- [github.com](https://github.com/hibernate/hibernate-validator/commit/254858d9dcc4e7cd775d1b0f47f482218077c5e1) (Patch)
- [github.com](https://github.com/hibernate/hibernate-validator/commit/d2db40b9e7d22c7a0b44d7665242dfc7b4d14d78) (Patch)
- [github.com](https://github.com/hibernate/hibernate-validator/commit/e076293b0ee1bfa97b6e67d05ad9eee1ad77e893) (Patch)
- [docs.jboss.org](https://docs.jboss.org/hibernate/stable/validator/reference/en-US/html_single/#section-hibernateconstraintvalidatorcontext) (Product)
- [github.com](https://github.com/hibernate/hibernate-validator/compare/6.1.7.Final...6.2.0.Final) (Release notes)
- [github.com](https://github.com/hibernate/hibernate-validator/pull/1138) (Issue tracking)
- [hibernate.atlassian.net](https://hibernate.atlassian.net/browse/HV-1816) (Issue tracking)
- [hibernate.org](https://hibernate.org/validator/documentation/migration-guide/#6-2-0-cr1) (Release notes)
- [in.relation.to](https://in.relation.to/2021/01/06/hibernate-validator-700-62-final-released/#expression-language) (Release notes)
- [labs.watchtowr.com](https://labs.watchtowr.com/expression-payloads-meet-mayhem-cve-2025-4427-and-cve-2025-4428/) (Not applicable)
- [cve.org](https://www.cve.org/CVERecord?id=CVE-2020-5245) (Not applicable)
- [cve.org](https://www.cve.org/CVERecord?id=CVE-2025-4428) (Not applicable)

## Questions

### What is CVE-2025-35036?

CVE-2025-35036 is a high-severity flaw in Hibernate Validator from Red Hat, published on 3 June 2025. It can be attacked from anywhere on the internet without logging in, and nobody has to click anything. If it works, the attacker can read some data, change some data and slow it down.

### How serious is CVE-2025-35036?

It scores 7.3 out of 10 on the CVSS severity scale, which is high. Our risk score for CVE-2025-35036 is 46 out of 100, which is Medium. Its action is "Plan remediation". No sign of exploitation and a low forecast. Patch it in your normal update cycle.

### Is CVE-2025-35036 being exploited?

It is not on the list of flaws known to be exploited today. The latest forecast puts the chance of it being used in the next 30 days at 0.7%. That can change at any time, which is why we keep watching.

### Which versions does CVE-2025-35036 affect?

For Hibernate Validator from Red Hat: before 6.2.0.

### How do I fix CVE-2025-35036?

Install the update the vendor names in its advisory, linked first under "How do I fix" on this page. If you can't patch today, follow the vendor's mitigation and limit who can reach the affected system from the internet.

## Does CVE-2025-35036 affect you?

Precursor Intelligence keeps checking for you:

- **Tell us what you run.** Pick your software from a list, or let us work it out from your website.
- **We match it to every flaw.** Over 400,000 published flaws, checked against your list.
- **Ranked by real-world risk.** Every flaw gets a 0 to 100 risk score, kept up to date, led by evidence criminals are using it.
- **Told as soon as we know.** An alert by email, in the app or by webhook to your own tools.

Start free (no card, nothing to install): https://www.precursorintelligence.com/register
Book a demo: https://www.precursorintelligence.com/contact

