{"answers":{"affected":"5 open source packages ship an affected version, including code.sajari.com/docconv and github.com/sajari/docconv. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-4643 in the wild and no public exploit code.","fix":"Upgrade code.sajari.com/docconv to 1.3.5 or later.","what":"CVE-2022-4643 is a medium-severity command injection vulnerability in docconv, published on 21 Dec 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2022-4643 and fix it if it is affected.\n\nWhat it is: CVE-2022-4643 is a medium-severity command injection vulnerability in docconv, published on 21 Dec 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2022-4643 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- code.sajari.com/docconv (Go): affected from 1.1.0; fixed in 1.3.5\n- code.sajari.com/docconv (Go): affected from 1.1.0; fixed in 1.3.5\n- code.sajari.com/docconv (Go): affected from 1.1.0; fixed in 1.3.5\n- github.com/sajari/docconv (Go): affected all versions; fixed in 1.2.1\n- github.com/sajari/docconv (Go): affected all versions; fixed in 1.2.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-2022-4643/ (Markdown: https://insights.sbomify.com/CVE-2022-4643/index.md)","id":"CVE-2022-4643","markdown":"https://insights.sbomify.com/CVE-2022-4643/index.md","name":"CVE-2022-4643","record":{"aliases":["GHSA-6m4h-hfpp-x8cx","GO-2022-1184"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Go document conversion library","requires_auth":"none","summary":"Remote attackers can execute arbitrary OS commands via the ConvertPDFImages function in the docconv library.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulDB","cpe":[{"product":"docconv","vendor":"search"}],"cvss":{"score":6.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/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"}],"description":"A vulnerability was found in docconv up to 1.2.0. It has been declared as critical. This vulnerability affects the function ConvertPDFImages of the file pdf_ocr.go. The manipulation of the argument path leads to os command injection. The attack can be initiated remotely. Upgrading to version 1.2.1 is able to address this issue. The name of the patch is b19021ade3d0b71c89d35cb00eb9e589a121faa5. It is recommended to upgrade the affected component. VDB-216502 is the identifier assigned to this vulnerability.","ecosystems":["Go"],"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":"docconv pdf_ocr.go ConvertPDFImages os command injection","id":"CVE-2022-4643","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"command_injection","year":"2022"},"n_packages":5,"n_references":4,"next":{"headline":"Open Redirect in ikus060/rdiffweb","id":"CVE-2022-4644"},"packages":[{"ecosystem":"Go","fixed":["1.3.5"],"introduced":["1.1.0"],"last_affected":[],"package":"code.sajari.com/docconv","purl":null,"source":"GHSA-6m4h-hfpp-x8cx"},{"ecosystem":"Go","fixed":["1.3.5"],"introduced":["1.1.0"],"last_affected":[],"package":"code.sajari.com/docconv","purl":"pkg:golang/code.sajari.com/docconv","source":"GHSA-6m4h-hfpp-x8cx"},{"ecosystem":"Go","fixed":["1.3.5"],"introduced":["1.1.0"],"last_affected":[],"package":"code.sajari.com/docconv","purl":"pkg:golang/code.sajari.com/docconv","source":"GO-2022-1184"},{"ecosystem":"Go","fixed":["1.2.1"],"introduced":["0"],"last_affected":[],"package":"github.com/sajari/docconv","purl":null,"source":"GHSA-6m4h-hfpp-x8cx"},{"ecosystem":"Go","fixed":["1.2.1"],"introduced":["0"],"last_affected":[],"package":"github.com/sajari/docconv","purl":"pkg:golang/github.com/sajari/docconv","source":"GHSA-6m4h-hfpp-x8cx"}],"prev":{"headline":"tatoeba2 Profile Name cross site scripting","id":"CVE-2022-4642"},"products":["docconv"],"published":"2022-12-21","related":[{"cvss_score":4.3,"headline":"docconv XMLToText memory allocation","id":"CVE-2022-4741","kev_date_added":null,"published":"2022-12-25"}],"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":"Go Vulnerability Database","prefix":"GO"},{"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":["n/a"]},"summary":"Remote attackers can execute arbitrary OS commands via the ConvertPDFImages function in the docconv library.","url":"https://insights.sbomify.com/CVE-2022-4643/"}