CVE-2025-31119
Published: 03 April 2025
Summary
CVE-2025-31119 is a high-severity Unsafe Reflection (CWE-470) vulnerability. Its CVSS base score is 7.6 (High).
Operationally, ranked in the top 20.3% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.
Deeper analysis
generator-jhipster-entity-audit is a JHipster module that adds entity audit support and an audit log page. Prior to version 5.9.1, the module contains an unsafe reflection flaw when the Javers Entity Audit Framework is selected. The issue stems from code paths in JaversEntityAuditResource that accept attacker-controlled input to resolve and invoke classes, enabling remote code execution if malicious classes are present on the classpath.
An attacker must first place malicious classes on the classpath and then obtain access to the exposed REST endpoints. With those conditions met, crafted requests to the affected endpoints can trigger arbitrary class loading and method invocation, resulting in full remote code execution under the privileges of the application process.
The project security advisory GHSA-7rmp-3g9f-cvq8 and the accompanying patch release state that the vulnerability is fixed in generator-jhipster-entity-audit 5.9.1. Users are advised to upgrade immediately and to verify that only trusted classes reside on the application classpath.
EPSS for the CVE rose from a low baseline to a recorded peak of 0.0375, indicating that exploitation interest increased after public disclosure.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2025-9738
Vulnerability details
generator-jhipster-entity-audit is a JHipster module to enable entity audit and audit log page. Prior to 5.9.1, generator-jhipster-entity-audit allows unsafe reflection when having Javers selected as Entity Audit Framework. If an attacker manages to place some malicious classes into the classpath…
more
and also has access to these REST interface for calling the mentioned REST endpoints, using these lines of code can lead to unintended remote code execution. This vulnerability is fixed in 5.9.1.
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Externally controlled class or code selection can be resolved and invoked inside the chamber, surfacing unsafe reflection without system impact.