{"answers":{"affected":"3 open source packages ship an affected version, including slo-generator. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-22557 exists.","fix":"Upgrade slo-generator to 2.0.1 or later.","what":"CVE-2021-22557 is a medium-severity code injection vulnerability in Google LLC SLO Generator, published on 4 Oct 2021. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-22557 and fix it if it is affected.\n\nWhat it is: CVE-2021-22557 is a medium-severity code injection vulnerability in Google LLC SLO Generator, published on 4 Oct 2021. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-22557 exists.\n\nAffected packages and fixed versions:\n- slo-generator (PyPI): affected all versions; fixed in 2.0.1\n- slo-generator (PyPI): affected all versions; fixed in 2.0.1\n- slo-generator (PyPI): affected all versions; fixed in 2.0.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-22557/ (Markdown: https://insights.sbomify.com/CVE-2021-22557/index.md)","id":"CVE-2021-22557","markdown":"https://insights.sbomify.com/CVE-2021-22557/index.md","name":"CVE-2021-22557","record":{"aliases":["GHSA-j28r-j54m-gpc4","PYSEC-2021-429"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"SLO Generator library","requires_auth":"low_privilege","summary":"Attackers can execute arbitrary code by providing a crafted YAML payload to the SLO Generator library.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Google","cpe":[{"product":"slo_generator","vendor":"google"}],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"},{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"SLO generator allows for loading of YAML files that if crafted in a specific format can allow for code execution within the context of the SLO Generator. We recommend upgrading SLO Generator past https://github.com/google/slo-generator/pull/173","ecosystems":["PyPI"],"exploits":{"exploitdb":1,"first_seen":"2021-10-07","github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[{"date":"2021-10-07","kind":"exploitdb","ref":"50385","stars":null,"title":"Google SLO-Generator 2.0.0 - Code Execution"}],"tier":"weaponised"},"has_fix":true,"headline":"Code execution in SLO Generator via YAML Payload","id":"CVE-2021-22557","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"code_injection","year":"2021"},"n_packages":3,"n_references":2,"next":{"headline":"Memory Overread in libjxl","id":"CVE-2021-22563"},"packages":[{"ecosystem":"PyPI","fixed":["2.0.1"],"introduced":["0"],"last_affected":[],"package":"slo-generator","purl":null,"source":"GHSA-j28r-j54m-gpc4"},{"ecosystem":"PyPI","fixed":["2.0.1"],"introduced":["0"],"last_affected":[],"package":"slo-generator","purl":"pkg:pypi/slo-generator","source":"GHSA-j28r-j54m-gpc4"},{"ecosystem":"PyPI","fixed":["2.0.1"],"introduced":["0"],"last_affected":[],"package":"slo-generator","purl":"pkg:pypi/slo-generator","source":"PYSEC-2021-429"}],"prev":{"headline":"Integer Overflow in Fuchsia Kernel","id":"CVE-2021-22556"},"products":["SLO Generator"],"published":"2021-10-04","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)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["Google LLC"]},"summary":"Attackers can execute arbitrary code by providing a crafted YAML payload to the SLO Generator library.","url":"https://insights.sbomify.com/CVE-2021-22557/"}