{"answers":{"affected":"4 open source packages ship an affected version, including org.hibernate:hibernate-core. It affects 5 products.","exploited":"There is no known exploitation of CVE-2020-25638 in the wild and no public exploit code.","fix":"Upgrade org.hibernate:hibernate-core to a fixed version for your release line: 5.3.20.Final or 5.4.24.Final.","what":"CVE-2020-25638 is a high-severity SQL injection vulnerability in Debian Debian Linux, published on 2 Dec 2020. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2020-25638 and fix it if it is affected.\n\nWhat it is: CVE-2020-25638 is a high-severity SQL injection vulnerability in Debian Debian Linux, published on 2 Dec 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2020-25638 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.hibernate:hibernate-core (Maven): affected all versions; fixed in 5.3.20.Final\n- org.hibernate:hibernate-core (Maven): affected all versions; fixed in 5.3.20.Final\n- org.hibernate:hibernate-core (Maven): affected from 5.4.0.Final; fixed in 5.4.24.Final\n- org.hibernate:hibernate-core (Maven): affected from 5.4.0.Final; fixed in 5.4.24.Final\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2020-25638/ (Markdown: https://insights.sbomify.com/CVE-2020-25638/index.md)","id":"CVE-2020-25638","markdown":"https://insights.sbomify.com/CVE-2020-25638/index.md","name":"CVE-2020-25638","record":{"aliases":["CLSA-2026-1768435720","CLSA-2026-1779842927","DEBIAN-CVE-2020-25638","DLA-2512-1","DSA-4908-1","GHSA-j8jw-g6fq-mp7h","RHSA-2020:5175","SUSE-SU-2022:0225-1","SUSE-SU-2022:0593-1","UBUNTU-CVE-2020-25638","USN-6845-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Hibernate ORM library","requires_auth":"none","summary":"SQL injection in Hibernate JPA Criteria API allows attackers to access unauthorized data or modify information via unsanitized literals in SQL comments.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"hibernate_orm","vendor":"hibernate"},{"product":"communications_cloud_native_core_console","vendor":"oracle"},{"product":"retail_customer_management_and_segmentation_foundation","vendor":"oracle"},{"product":"quarkus","vendor":"quarkus"}],"cvss":{"score":7.4,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"description":"A flaw was found in hibernate-core in versions prior to and including 5.4.23.Final. A SQL injection in the implementation of the JPA Criteria API can permit unsanitized literals when a literal is used in the SQL comments of the query. This flaw could allow an attacker to access unauthorized information or possibly conduct further attacks. The highest threat from this vulnerability is to data confidentiality and integrity.","ecosystems":["Maven","Red Hat:jboss_enterprise_application_platform:7.3::el6","Red Hat:jboss_enterprise_application_platform:7.3::el7","Red Hat:jboss_enterprise_application_platform:7.3::el8","SUSE:Manager Server Module 4.1","SUSE:Manager Server Module 4.2"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"SQL injection in hibernate-core","id":"CVE-2020-25638","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"debian:debian_linux","products":["debian:debian_linux","oracle:retail_customer_management_and_segmentation_foundation"],"type":"sql_injection","year":"2020"},"n_packages":71,"n_references":8,"next":{"headline":"Null dereference in kernel","id":"CVE-2020-25639"},"packages":[{"ecosystem":"Maven","fixed":["5.3.20.Final"],"introduced":["0"],"last_affected":[],"package":"org.hibernate:hibernate-core","purl":null,"source":"GHSA-j8jw-g6fq-mp7h"},{"ecosystem":"Maven","fixed":["5.3.20.Final"],"introduced":["0"],"last_affected":[],"package":"org.hibernate:hibernate-core","purl":"pkg:maven/org.hibernate/hibernate-core","source":"GHSA-j8jw-g6fq-mp7h"},{"ecosystem":"Maven","fixed":["5.4.24.Final"],"introduced":["5.4.0.Final"],"last_affected":[],"package":"org.hibernate:hibernate-core","purl":null,"source":"GHSA-j8jw-g6fq-mp7h"},{"ecosystem":"Maven","fixed":["5.4.24.Final"],"introduced":["5.4.0.Final"],"last_affected":[],"package":"org.hibernate:hibernate-core","purl":"pkg:maven/org.hibernate/hibernate-core","source":"GHSA-j8jw-g6fq-mp7h"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:7.3::el6","fixed":["0:5.3.18-2.Final_redhat_00002.1.el6eap"],"introduced":["0"],"last_affected":[],"package":"eap7-hibernate","purl":"pkg:rpm/redhat/eap7-hibernate","source":"RHSA-2020:5175"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:7.3::el6","fixed":["0:5.3.18-2.Final_redhat_00002.1.el6eap"],"introduced":["0"],"last_affected":[],"package":"eap7-hibernate-core","purl":"pkg:rpm/redhat/eap7-hibernate-core","source":"RHSA-2020:5175"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:7.3::el6","fixed":["0:5.3.18-2.Final_redhat_00002.1.el6eap"],"introduced":["0"],"last_affected":[],"package":"eap7-hibernate-entitymanager","purl":"pkg:rpm/redhat/eap7-hibernate-entitymanager","source":"RHSA-2020:5175"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:7.3::el6","fixed":["0:5.3.18-2.Final_redhat_00002.1.el6eap"],"introduced":["0"],"last_affected":[],"package":"eap7-hibernate-envers","purl":"pkg:rpm/redhat/eap7-hibernate-envers","source":"RHSA-2020:5175"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:7.3::el6","fixed":["0:5.3.18-2.Final_redhat_00002.1.el6eap"],"introduced":["0"],"last_affected":[],"package":"eap7-hibernate-java8","purl":"pkg:rpm/redhat/eap7-hibernate-java8","source":"RHSA-2020:5175"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:7.3::el7","fixed":["0:5.3.18-2.Final_redhat_00002.1.el7eap"],"introduced":["0"],"last_affected":[],"package":"eap7-hibernate","purl":"pkg:rpm/redhat/eap7-hibernate","source":"RHSA-2020:5175"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:7.3::el7","fixed":["0:5.3.18-2.Final_redhat_00002.1.el7eap"],"introduced":["0"],"last_affected":[],"package":"eap7-hibernate-core","purl":"pkg:rpm/redhat/eap7-hibernate-core","source":"RHSA-2020:5175"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:7.3::el7","fixed":["0:5.3.18-2.Final_redhat_00002.1.el7eap"],"introduced":["0"],"last_affected":[],"package":"eap7-hibernate-entitymanager","purl":"pkg:rpm/redhat/eap7-hibernate-entitymanager","source":"RHSA-2020:5175"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:7.3::el7","fixed":["0:5.3.18-2.Final_redhat_00002.1.el7eap"],"introduced":["0"],"last_affected":[],"package":"eap7-hibernate-envers","purl":"pkg:rpm/redhat/eap7-hibernate-envers","source":"RHSA-2020:5175"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:7.3::el7","fixed":["0:5.3.18-2.Final_redhat_00002.1.el7eap"],"introduced":["0"],"last_affected":[],"package":"eap7-hibernate-java8","purl":"pkg:rpm/redhat/eap7-hibernate-java8","source":"RHSA-2020:5175"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:7.3::el8","fixed":["0:5.3.18-2.Final_redhat_00002.1.el8eap"],"introduced":["0"],"last_affected":[],"package":"eap7-hibernate","purl":"pkg:rpm/redhat/eap7-hibernate","source":"RHSA-2020:5175"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:7.3::el8","fixed":["0:5.3.18-2.Final_redhat_00002.1.el8eap"],"introduced":["0"],"last_affected":[],"package":"eap7-hibernate-core","purl":"pkg:rpm/redhat/eap7-hibernate-core","source":"RHSA-2020:5175"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:7.3::el8","fixed":["0:5.3.18-2.Final_redhat_00002.1.el8eap"],"introduced":["0"],"last_affected":[],"package":"eap7-hibernate-entitymanager","purl":"pkg:rpm/redhat/eap7-hibernate-entitymanager","source":"RHSA-2020:5175"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:7.3::el8","fixed":["0:5.3.18-2.Final_redhat_00002.1.el8eap"],"introduced":["0"],"last_affected":[],"package":"eap7-hibernate-envers","purl":"pkg:rpm/redhat/eap7-hibernate-envers","source":"RHSA-2020:5175"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:7.3::el8","fixed":["0:5.3.18-2.Final_redhat_00002.1.el8eap"],"introduced":["0"],"last_affected":[],"package":"eap7-hibernate-java8","purl":"pkg:rpm/redhat/eap7-hibernate-java8","source":"RHSA-2020:5175"},{"ecosystem":"SUSE:Manager Server Module 4.1","fixed":["5.3.7-3.6.1"],"introduced":["0"],"last_affected":[],"package":"hibernate5","purl":"pkg:rpm/suse/hibernate5\u0026distro=SUSE%20Manager%20Server%20Module%204.1","source":"SUSE-SU-2022:0225-1"},{"ecosystem":"SUSE:Manager Server Module 4.1","fixed":["4.1.10-3.25.2"],"introduced":["0"],"last_affected":[],"package":"mgr-libmod","purl":"pkg:rpm/suse/mgr-libmod\u0026distro=SUSE%20Manager%20Server%20Module%204.1","source":"SUSE-SU-2022:0225-1"},{"ecosystem":"SUSE:Manager Server Module 4.1","fixed":["4.1.6-2.12.2"],"introduced":["0"],"last_affected":[],"package":"mgr-osad","purl":"pkg:rpm/suse/mgr-osad\u0026distro=SUSE%20Manager%20Server%20Module%204.1","source":"SUSE-SU-2022:0225-1"},{"ecosystem":"SUSE:Manager Server Module 4.1","fixed":["0.3.5-3.15.1"],"introduced":["0"],"last_affected":[],"package":"prometheus-formula","purl":"pkg:rpm/suse/prometheus-formula\u0026distro=SUSE%20Manager%20Server%20Module%204.1","source":"SUSE-SU-2022:0225-1"},{"ecosystem":"SUSE:Manager Server Module 4.1","fixed":["3000.3-6.18.1"],"introduced":["0"],"last_affected":[],"package":"py27-compat-salt","purl":"pkg:rpm/suse/py27-compat-salt\u0026distro=SUSE%20Manager%20Server%20Module%204.1","source":"SUSE-SU-2022:0225-1"},{"ecosystem":"SUSE:Manager Server Module 4.1","fixed":["4.1.16-4.33.2"],"introduced":["0"],"last_affected":[],"package":"spacecmd","purl":"pkg:rpm/suse/spacecmd\u0026distro=SUSE%20Manager%20Server%20Module%204.1","source":"SUSE-SU-2022:0225-1"},{"ecosystem":"SUSE:Manager Server Module 4.1","fixed":["4.1.11-3.18.2"],"introduced":["0"],"last_affected":[],"package":"spacewalk-admin","purl":"pkg:rpm/suse/spacewalk-admin\u0026distro=SUSE%20Manager%20Server%20Module%204.1","source":"SUSE-SU-2022:0225-1"},{"ecosystem":"SUSE:Manager Server Module 4.1","fixed":["4.1.30-4.47.2"],"introduced":["0"],"last_affected":[],"package":"spacewalk-backend","purl":"pkg:rpm/suse/spacewalk-backend\u0026distro=SUSE%20Manager%20Server%20Module%204.1","source":"SUSE-SU-2022:0225-1"},{"ecosystem":"SUSE:Manager Server Module 4.1","fixed":["4.1.20-3.25.2"],"introduced":["0"],"last_affected":[],"package":"spacewalk-certs-tools","purl":"pkg:rpm/suse/spacewalk-certs-tools\u0026distro=SUSE%20Manager%20Server%20Module%204.1","source":"SUSE-SU-2022:0225-1"},{"ecosystem":"SUSE:Manager Server Module 4.1","fixed":["4.1.11-4.18.2"],"introduced":["0"],"last_affected":[],"package":"spacewalk-client-tools","purl":"pkg:rpm/suse/spacewalk-client-tools\u0026distro=SUSE%20Manager%20Server%20Module%204.1","source":"SUSE-SU-2022:0225-1"},{"ecosystem":"SUSE:Manager Server Module 4.1","fixed":["4.1.43-3.63.1"],"introduced":["0"],"last_affected":[],"package":"spacewalk-java","purl":"pkg:rpm/suse/spacewalk-java\u0026distro=SUSE%20Manager%20Server%20Module%204.1","source":"SUSE-SU-2022:0225-1"},{"ecosystem":"SUSE:Manager Server Module 4.1","fixed":["4.1.5-3.9.1"],"introduced":["0"],"last_affected":[],"package":"spacewalk-reports","purl":"pkg:rpm/suse/spacewalk-reports\u0026distro=SUSE%20Manager%20Server%20Module%204.1","source":"SUSE-SU-2022:0225-1"},{"ecosystem":"SUSE:Manager Server Module 4.1","fixed":["4.1.10-3.15.2"],"introduced":["0"],"last_affected":[],"package":"spacewalk-setup","purl":"pkg:rpm/suse/spacewalk-setup\u0026distro=SUSE%20Manager%20Server%20Module%204.1","source":"SUSE-SU-2022:0225-1"},{"ecosystem":"SUSE:Manager Server Module 4.1","fixed":["4.1.19-3.27.2"],"introduced":["0"],"last_affected":[],"package":"spacewalk-utils","purl":"pkg:rpm/suse/spacewalk-utils\u0026distro=SUSE%20Manager%20Server%20Module%204.1","source":"SUSE-SU-2022:0225-1"},{"ecosystem":"SUSE:Manager Server Module 4.1","fixed":["4.1.31-3.39.1"],"introduced":["0"],"last_affected":[],"package":"spacewalk-web","purl":"pkg:rpm/suse/spacewalk-web\u0026distro=SUSE%20Manager%20Server%20Module%204.1","source":"SUSE-SU-2022:0225-1"},{"ecosystem":"SUSE:Manager Server Module 4.1","fixed":["4.1.4-4.6.2"],"introduced":["0"],"last_affected":[],"package":"suseRegisterInfo","purl":"pkg:rpm/suse/suseRegisterInfo\u0026distro=SUSE%20Manager%20Server%20Module%204.1","source":"SUSE-SU-2022:0225-1"},{"ecosystem":"SUSE:Manager Server Module 4.1","fixed":["4.1.32-3.42.2"],"introduced":["0"],"last_affected":[],"package":"susemanager","purl":"pkg:rpm/suse/susemanager\u0026distro=SUSE%20Manager%20Server%20Module%204.1","source":"SUSE-SU-2022:0225-1"},{"ecosystem":"SUSE:Manager Server Module 4.1","fixed":["4.1-11.49.2"],"introduced":["0"],"last_affected":[],"package":"susemanager-doc-indexes","purl":"pkg:rpm/suse/susemanager-doc-indexes\u0026distro=SUSE%20Manager%20Server%20Module%204.1","source":"SUSE-SU-2022:0225-1"},{"ecosystem":"SUSE:Manager Server Module 4.1","fixed":["4.1-11.49.1"],"introduced":["0"],"last_affected":[],"package":"susemanager-docs_en","purl":"pkg:rpm/suse/susemanager-docs_en\u0026distro=SUSE%20Manager%20Server%20Module%204.1","source":"SUSE-SU-2022:0225-1"},{"ecosystem":"SUSE:Manager Server Module 4.1","fixed":["4.1.24-3.39.2"],"introduced":["0"],"last_affected":[],"package":"susemanager-schema","purl":"pkg:rpm/suse/susemanager-schema\u0026distro=SUSE%20Manager%20Server%20Module%204.1","source":"SUSE-SU-2022:0225-1"},{"ecosystem":"SUSE:Manager Server Module 4.1","fixed":["4.1.32-3.54.1"],"introduced":["0"],"last_affected":[],"package":"susemanager-sls","purl":"pkg:rpm/suse/susemanager-sls\u0026distro=SUSE%20Manager%20Server%20Module%204.1","source":"SUSE-SU-2022:0225-1"}],"prev":{"headline":"Use after free in libvirt","id":"CVE-2020-25637"},"products":["hibernate-core"],"published":"2020-12-02","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-23","vendors":["n/a"]},"summary":"SQL injection in Hibernate JPA Criteria API allows attackers to access unauthorized data or modify information via unsanitized literals in SQL comments.","url":"https://insights.sbomify.com/CVE-2020-25638/"}