{"answers":{"affected":"2 open source packages ship an affected version, including @diez/generation. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-32830 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2021-32830 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-32830 is a low-severity command injection vulnerability in diez, published on 17 Aug 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2021-32830 and fix it if it is affected.\n\nWhat it is: CVE-2021-32830 is a low-severity command injection vulnerability in diez, published on 17 Aug 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2021-32830 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @diez/generation (npm): affected all versions up to 10.6.0; no fix listed\n- @diez/generation (npm): affected all versions up to 10.6.0; no fix listed\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-32830/ (Markdown: https://insights.sbomify.com/CVE-2021-32830/index.md)","id":"CVE-2021-32830","markdown":"https://insights.sbomify.com/CVE-2021-32830/index.md","name":"CVE-2021-32830","record":{"aliases":["GHSA-8c3f-x5f9-6h62"],"analysis":{"component_type":"library","fix_type":"no_fix_stated","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Diez generation library","requires_auth":"low_privilege","summary":"The @diez/generation library allows remote code execution via command injection in the locateFont method when called with untrusted input.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"diez","vendor":"haikuforteams"}],"cvss":{"score":3.9,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"},{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"The @diez/generation npm package is a client for Diez. The locateFont method of @diez/generation has a command injection vulnerability. Clients of the @diez/generation library are unlikely to be aware of this, so they might unwittingly write code that contains a vulnerability. This issue may lead to remote code execution if a client of the library calls the vulnerable method with untrusted input. All versions of this package are vulnerable as of the writing of this CVE.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"Command injection in @diez/generation","id":"CVE-2021-32830","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"command_injection","year":"2021"},"n_packages":2,"n_references":3,"next":{"headline":"Code injection in total.js","id":"CVE-2021-32831"},"packages":[{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["10.6.0"],"package":"@diez/generation","purl":null,"source":"GHSA-8c3f-x5f9-6h62"},{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["10.6.0"],"package":"@diez/generation","purl":"pkg:npm/%40diez/generation","source":"GHSA-8c3f-x5f9-6h62"}],"prev":{"headline":"Post-authentication Remote Code Execution (RCE) in ZStack REST API","id":"CVE-2021-32829"},"products":["diez"],"published":"2021-08-17","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":"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":["diez"]},"summary":"The @diez/generation library allows remote code execution via command injection in the locateFont method when called with untrusted input.","url":"https://insights.sbomify.com/CVE-2021-32830/"}