{"answers":{"affected":"","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-41042 exists.","fix":"No fix has been published for CVE-2026-41042 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-41042 is a critical code injection vulnerability in Apache Gravitino, published on 8 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-41042 and fix it if it is affected.\n\nWhat it is: CVE-2026-41042 is a critical code injection vulnerability in Apache Gravitino, published on 8 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-41042 exists.\n\nAffected product: Apache Gravitino. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2026-41042/ (Markdown: https://insights.sbomify.com/CVE-2026-41042/index.md)","id":"CVE-2026-41042","markdown":"https://insights.sbomify.com/CVE-2026-41042/index.md","name":"CVE-2026-41042","record":{"aliases":["GHSA-2q68-xwfj-2rpc"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Apache Gravitino","requires_auth":"none","summary":"Unauthenticated attackers can execute arbitrary Java code on Apache Gravitino servers by supplying a malicious H2 JDBC URL to the testConnection API.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[],"cvss":{"score":9.1,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"description":"Unauthenticated callers can supply a malicious H2 JDBC URL through the testConnection API, which executes arbitrary Java code on the server via H2's INIT parameter. Vulnerability in Apache Gravitino.\n\nThis issue affects Apache Gravitino: before 1.2.1.\n\nUsers are recommended to upgrade to version 1.2.1, which fixes the issue.\n\nThis issue only happens when using H2, and H2 is mainly used for testing and local development. Also, Gravitino is typically deployed in the internal environment, so the severity is low.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2026-08-17","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":1,"refs":[{"date":"2026-08-17T11:15:58Z","kind":"github_poc","ref":"https://github.com/Lulztigre/cve-2026-41042","stars":0,"title":"POC for CVE-2026-41042"},{"date":null,"kind":"nuclei","ref":"http/cves/2026/CVE-2026-41042.yaml","stars":null,"title":"Apache Gravitino \u003c 1.2.1 - Unauthenticated Remote Code Execution"}],"tier":"weaponised"},"has_fix":null,"headline":"Code injection in Apache Gravitino","id":"CVE-2026-41042","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":0,"n_references":1,"next":{"headline":"Apache ActiveMQ, Apache ActiveMQ Web: ActiveMQ Web Console - XSS vulnerability when browsing queues","id":"CVE-2026-41043"},"packages":[],"prev":{"headline":"Path traversal in Apache Gravitino","id":"CVE-2026-41041"},"products":["Apache Gravitino"],"published":"2026-07-08","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-07-08","vendors":["Apache Software Foundation"]},"summary":"Unauthenticated attackers can execute arbitrary Java code on Apache Gravitino servers by supplying a malicious H2 JDBC URL to the testConnection API.","url":"https://insights.sbomify.com/CVE-2026-41042/"}