{"cve":"CVE-2025-35036","nvd":{"published":"2025-06-03T20:15:21.993","modified":"2026-06-17T09:14:14.677","status":"Analyzed","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.","cvss_v4":{"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N","score":6.9},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3},"cwes":["CWE-94"],"references":["https://docs.jboss.org/hibernate/stable/validator/reference/en-US/html_single/#section-hibernateconstraintvalidatorcontext","https://github.com/hibernate/hibernate-validator/commit/05f795bb7cf18856004f40e5042709e550ed0d6e","https://github.com/hibernate/hibernate-validator/commit/254858d9dcc4e7cd775d1b0f47f482218077c5e1","https://github.com/hibernate/hibernate-validator/commit/d2db40b9e7d22c7a0b44d7665242dfc7b4d14d78","https://github.com/hibernate/hibernate-validator/commit/e076293b0ee1bfa97b6e67d05ad9eee1ad77e893"],"products":["redhat:hibernate_validator"],"source":"nvd","synced_at":"2026-10-19T22:02:23.998251710+00:00"},"epss":{"cve":"CVE-2025-35036","score":0.00781,"percentile":0.55966,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-7v6m-28jr-rg84","url":"https://osv.dev/vulnerability/GHSA-7v6m-28jr-rg84","summary":"Hibernate Validator may interpolate user-supplied input in a constraint violation message with Expression Language","modified":"2025-09-12T20:54:10.938701Z","packages":[{"ecosystem":"Maven","name":"org.hibernate.validator:hibernate-validator","purl":"pkg:maven/org.hibernate.validator/hibernate-validator","ranges":["<6.2.0.CR1"],"fixed":["6.2.0.CR1"]},{"ecosystem":"Maven","name":"org.hibernate.validator:hibernate-validator","purl":"pkg:maven/org.hibernate.validator/hibernate-validator","ranges":[">=7.0.0.Alpha1 <7.0.0.CR1"],"fixed":["7.0.0.CR1"]},{"ecosystem":"Maven","name":"org.hibernate:hibernate-validator","purl":"pkg:maven/org.hibernate/hibernate-validator","ranges":["<6.2.0.CR1"],"fixed":["6.2.0.CR1"]},{"ecosystem":"Maven","name":"org.hibernate:hibernate-validator","purl":"pkg:maven/org.hibernate/hibernate-validator","ranges":[">=7.0.0.Alpha1 <7.0.0.CR1"],"fixed":["7.0.0.CR1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}