CVE-2022-4963: SQL injection in Folio Spring Module Core
5.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.24652%
CWE
Published
3/21/2024
Updated
3/21/2024
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| org.folio:spring-module-core | maven | < 2.0.0 | 2.0.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from two key points: 1) dropSchema in HibernateSchemaService.java executed raw SQL with unvalidated schema names, and 2) getSchema in SchemaService.java didn't properly sanitize tenant-derived schema names pre-2.0.0. The commit d374a5f fixed this by adding regex validation ([a-zA-Z0-9_]+) in getSchema and using prepared statements where possible. The vulnerability exists in the interaction between these two functions - unvalidated output from getSchema became dangerous input to dropSchema's SQL commands.