Vulnerability · Published Nov 7, 2024 · Assigned by redhat
CVE-2023-1932Hibernate-validator: rendering of invalid html with safehtml leads to html injection and xss
Medium 6.1
In plain English
A medium-severity cross-site scripting in A-MQ Clients 2 from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 43% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
A flaw was found in hibernate-validator's 'isValid' method in the org.hibernate.validator.internal.constraintvalidators.hv.SafeHtmlValidator class, which can be bypassed by omitting the tag ending in a less-than character. Browsers may render an invalid html, allowing HTML injection or Cross-Site-Scripting (XSS) attacks.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libhibernate-validator-java | no fix listed | DEBIAN-CVE-2023-1932 |
| Debian:13 | libhibernate-validator-java | no fix listed | DEBIAN-CVE-2023-1932 |
| Debian:14 | libhibernate-validator-java | no fix listed | DEBIAN-CVE-2023-1932 |
| Maven | org.hibernate.validator:hibernate-validator | 6.2.0.Final | GHSA-x83m-pf6f-pf9g |
| Maven | org.hibernate:hibernate-validator | 6.2.0.Final | GHSA-x83m-pf6f-pf9g |
| Ubuntu:22.04:LTS | libhibernate-validator-java | no fix listed | UBUNTU-CVE-2023-1932 |
| Ubuntu:24.04:LTS | libhibernate-validator-java | no fix listed | UBUNTU-CVE-2023-1932 |
| Ubuntu:25.10 | libhibernate-validator-java | no fix listed | UBUNTU-CVE-2023-1932 |
| Ubuntu:26.04:LTS | libhibernate-validator-java | no fix listed | UBUNTU-CVE-2023-1932 |
| Ubuntu:26.10 | libhibernate-validator-java | no fix listed | UBUNTU-CVE-2023-1932 |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
References
- https://access.redhat.com/security/cve/CVE-2023-1932 vdb-entry, x_refsource_REDHAT
- RHBZ#1809444 issue-tracking, x_refsource_REDHAT