{"answers":{"affected":"5 open source packages ship an affected version, including org.apache.systemds:systemds and systemds. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-26477 in the wild and no public exploit code.","fix":"Upgrade org.apache.systemds:systemds to 2.2.2 or later.","what":"CVE-2022-26477 is a high-severity denial of service vulnerability in Apache SystemDS, published on 27 Jun 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-26477 and fix it if it is affected.\n\nWhat it is: CVE-2022-26477 is a high-severity denial of service vulnerability in Apache SystemDS, published on 27 Jun 2022. 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-2022-26477 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.systemds:systemds (Maven): affected all versions; fixed in 2.2.2\n- org.apache.systemds:systemds (Maven): affected all versions; fixed in 2.2.2\n- systemds (PyPI): affected all versions; fixed in 2.2.2\n- systemds (PyPI): affected all versions; fixed in 2.2.2\n- systemds (PyPI): affected all versions; fixed in 2.2.2\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-2022-26477/ (Markdown: https://insights.sbomify.com/CVE-2022-26477/index.md)","id":"CVE-2022-26477","markdown":"https://insights.sbomify.com/CVE-2022-26477/index.md","name":"CVE-2022-26477","record":{"aliases":["GHSA-m43h-hfrq-x8wx","PYSEC-2022-222"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache SystemDS","requires_auth":"none","summary":"An attacker can cause CPU exhaustion in Apache SystemDS by tampering with serialized data, leading to a denial of service.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"systemds","vendor":"apache"}],"cvss":{"score":7.5,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"description":"The Security Team noticed that the termination condition of the for loop in the readExternal method is a controllable variable, which, if tampered with, may lead to CPU exhaustion. As a fix, we added an upper bound and termination condition in the read and write logic. We classify it as a \"low-priority but useful improvement\". SystemDS is a distributed system and needs to serialize/deserialize data but in many code paths (e.g., on Spark broadcast/shuffle or writing to sequence files) the byte stream is anyway protected by additional CRC fingerprints. In this particular case though, the number of decoders is upper-bounded by twice the number of columns, which means an attacker would need to modify two entries in the byte stream in a consistent manner. By adding these checks robustness was strictly improved with almost zero overhead. These code changes are available in versions higher than 2.2.1.","ecosystems":["Maven","PyPI"],"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":"Denial of service in readExternal method","id":"CVE-2022-26477","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"denial_of_service","year":"2022"},"n_packages":5,"n_references":2,"next":{"headline":"Auth bypass in n/a","id":"CVE-2022-26479"},"packages":[{"ecosystem":"Maven","fixed":["2.2.2"],"introduced":["0"],"last_affected":[],"package":"org.apache.systemds:systemds","purl":null,"source":"GHSA-m43h-hfrq-x8wx"},{"ecosystem":"Maven","fixed":["2.2.2"],"introduced":["0"],"last_affected":[],"package":"org.apache.systemds:systemds","purl":"pkg:maven/org.apache.systemds/systemds","source":"GHSA-m43h-hfrq-x8wx"},{"ecosystem":"PyPI","fixed":["2.2.2"],"introduced":["0"],"last_affected":[],"package":"systemds","purl":null,"source":"GHSA-m43h-hfrq-x8wx"},{"ecosystem":"PyPI","fixed":["2.2.2"],"introduced":["0"],"last_affected":[],"package":"systemds","purl":"pkg:pypi/systemds","source":"GHSA-m43h-hfrq-x8wx"},{"ecosystem":"PyPI","fixed":["2.2.2"],"introduced":["0"],"last_affected":[],"package":"systemds","purl":"pkg:pypi/systemds","source":"PYSEC-2022-222"}],"prev":{"headline":"Hardcoded credentials in Spectrum Power 4","id":"CVE-2022-26476"},"products":["Apache SystemDS"],"published":"2022-06-27","related":[],"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":"PyPA Advisory Database","prefix":"PYSEC"},{"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["Apache Software Foundation"]},"summary":"An attacker can cause CPU exhaustion in Apache SystemDS by tampering with serialized data, leading to a denial of service.","url":"https://insights.sbomify.com/CVE-2022-26477/"}