{"answers":{"affected":"5 open source packages ship an affected version, including org.apache.maven:maven-compat, maven and org.apache.maven:maven-core. It affects 4 products.","exploited":"There is no known exploitation of CVE-2021-26291 in the wild and no public exploit code.","fix":"Upgrade org.apache.maven:maven-compat to 3.8.1 or later.","what":"CVE-2021-26291 is a critical vulnerability in Oracle Financial Services Analytical Applications Infrastructure, published on 23 Apr 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-26291 and fix it if it is affected.\n\nWhat it is: CVE-2021-26291 is a critical vulnerability in Oracle Financial Services Analytical Applications Infrastructure, published on 23 Apr 2021. 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-2021-26291 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.maven:maven-compat (Maven): affected all versions; fixed in 3.8.1\n- org.apache.maven:maven-compat (Maven): affected all versions; fixed in 3.8.1\n- maven (Bitnami): affected all versions; fixed in 3.8.1\n- org.apache.maven:maven-core (Maven): affected all versions; fixed in 3.8.1\n- org.apache.maven:maven-core (Maven): affected all versions; fixed in 3.8.1\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-2021-26291/ (Markdown: https://insights.sbomify.com/CVE-2021-26291/index.md)","id":"CVE-2021-26291","markdown":"https://insights.sbomify.com/CVE-2021-26291/index.md","name":"CVE-2021-26291","record":{"aliases":["BIT-maven-2021-26291","CLSA-2026-1786433114","DEBIAN-CVE-2021-26291","GHSA-2f88-5hg8-9x2x","MGASA-2023-0230","OESA-2021-1276","UBUNTU-CVE-2021-26291","USN-5245-1","openSUSE-SU-2024:11042-1"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Java build tool","requires_auth":"none","summary":"Maven follows HTTP repositories defined in dependencies by default, allowing attackers to inject malicious code via compromised or spoofed repositories.","user_interaction":"not_required","vuln_class":"supply_chain"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"maven","vendor":"apache"},{"product":"financial_services_analytical_applications_infrastructure","vendor":"oracle"},{"product":"goldengate_big_data_and_application_adapters","vendor":"oracle"},{"product":"quarkus","vendor":"quarkus"}],"cvss":{"score":9.1,"severity":"critical","source":"nvd","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-346","name":"Origin Validation Error"}],"description":"Apache Maven will follow repositories that are defined in a dependency’s Project Object Model (pom) which may be surprising to some users, resulting in potential risk if a malicious actor takes over that repository or is able to insert themselves into a position to pretend to be that repository. Maven is changing the default behavior in 3.8.1+ to no longer follow http (non-SSL) repository references by default. More details available in the referenced urls. If you are currently using a repository manager to govern the repositories used by your builds, you are unaffected by the risks present in the legacy behavior, and are unaffected by this vulnerability and change to default behavior. See this link for more information about repository management: https://maven.apache.org/repository-management.html","ecosystems":["Bitnami","Maven"],"exploits":{"exploitdb":0,"first_seen":"2025-02-19","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-02-19T15:33:37Z","kind":"github_poc","ref":"https://github.com/jpmartins/MinimalReproducer","stars":0,"title":"Context of CVE-2021-26291 minimal replicator"}],"tier":"poc_unverified"},"has_fix":true,"headline":"block repositories using http by default","id":"CVE-2021-26291","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"oracle:financial_services_analytical_applications_infrastructure","products":["oracle:financial_services_analytical_applications_infrastructure"],"type":"supply_chain","year":"2021"},"n_packages":5,"n_references":44,"next":{"headline":"Path traversal in n/a","id":"CVE-2021-26293"},"packages":[{"ecosystem":"Bitnami","fixed":["3.8.1"],"introduced":["0"],"last_affected":[],"package":"maven","purl":"pkg:bitnami/maven","source":"BIT-maven-2021-26291"},{"ecosystem":"Maven","fixed":["3.8.1"],"introduced":["0"],"last_affected":[],"package":"org.apache.maven:maven-compat","purl":null,"source":"GHSA-2f88-5hg8-9x2x"},{"ecosystem":"Maven","fixed":["3.8.1"],"introduced":["0"],"last_affected":[],"package":"org.apache.maven:maven-compat","purl":"pkg:maven/org.apache.maven/maven-compat","source":"GHSA-2f88-5hg8-9x2x"},{"ecosystem":"Maven","fixed":["3.8.1"],"introduced":["0"],"last_affected":[],"package":"org.apache.maven:maven-core","purl":null,"source":"GHSA-2f88-5hg8-9x2x"},{"ecosystem":"Maven","fixed":["3.8.1"],"introduced":["0"],"last_affected":[],"package":"org.apache.maven:maven-core","purl":"pkg:maven/org.apache.maven/maven-core","source":"GHSA-2f88-5hg8-9x2x"}],"prev":{"headline":"Information disclosure vulnerability in Alarm clock module","id":"CVE-2021-26281"},"products":["Apache Maven"],"published":"2021-04-23","related":[{"cvss_score":5.8,"headline":"Security feature bypass in n/a","id":"CVE-2013-0253","kev_date_added":null,"published":"2013-04-09"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"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":"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["Apache Software Foundation"]},"summary":"Maven follows HTTP repositories defined in dependencies by default, allowing attackers to inject malicious code via compromised or spoofed repositories.","url":"https://insights.sbomify.com/CVE-2021-26291/"}