CVE-2026-0603 — Updated!
★ CVE-2026-0603 Hibernate SQL Injection PoC ★https://github.com/user-attachments/assets/2e7c3a89-e 2026-9-2 21:30:53 Author: kitploit.com(查看原文) 阅读量:10 收藏

★ CVE-2026-0603 Hibernate SQL Injection PoC ★

https://github.com/user-attachments/assets/2e7c3a89-e26f-48cd-af0b-8b82d32ce71f


CVE-2026-0603 is a Second-Order SQL Injection vulnerability in Hibernate ORM, a widely used Java ORM framework.
When a user-supplied string primary key containing a malicious SQL payload is used in a bulk DELETE or UPDATE operation, Hibernate inserts the value directly into the WHERE clause without sanitization, causing unintended mass deletion or modification of database records.


CategoryVersion
VulnerableHibernate ORM 5.2.8 ≤ version ≤ 5.6.15
PatchedNo official patch (5.6.x EOL)

  • Mass deletion of records across multiple tables
  • Mass modification of records across multiple tables
  • Potential exfiltration of sensitive data from the database

docker build -t cve-2026-0603-hibernate-vuln .
docker run --rm -it -p 8080:8080 --name hibernate-vuln cve-2026-0603-hibernate-vuln

After starting the vulnerable environment, follow the steps below to reproduce the attack.

Step 1. Register with a malicious username

Step 2. Trigger update or delete

Click the update or delete button on the registered account.

Step 3. Confirm all user data is affected

Verify that the DELETE or UPDATE query was applied to all rows, not just the registered account. For DELETE, all records across both tables are removed. For UPDATE, all records are modified with the attacker-supplied values.


  • Remove the InlineIdsOrClauseBulkIdStrategy setting from application.yml
  • If InlineIdsOrClauseBulkIdStrategy must be used, apply strict whitelist-based input validation on any user-supplied primary key values to reject SQL control characters

Read more


文章来源: https://kitploit.com/en/posts/github-eqstlab-cve-2026-0603-46203d1dd80b85c79589aaa93310e600f764748ffbc3adcd988ac00d2f4bfc1f
如有侵权请联系:admin#unsafe.sh