{"id":"CVE-2022-4643","published":"2022-12-21T00:00:00Z","modified":"2024-08-03T01:48:38Z","title":"docconv pdf_ocr.go ConvertPDFImages os command injection","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01801,"percentile":0.79051,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://vuldb.com/?id.216502","tags":["technical-description","vdb-entry"]},{"url":"https://github.com/sajari/docconv/pull/110","tags":["related"]},{"url":"https://github.com/sajari/docconv/commit/b19021ade3d0b71c89d35cb00eb9e589a121faa5","tags":["mitigation","patch"]},{"url":"https://github.com/sajari/docconv/releases/tag/v1.2.1","tags":["mitigation"]}],"priority":{"score":20.2,"factors":[{"name":"EPSS percentile","points":15.81},{"name":"CVSS severity","points":4.41}]},"affectedVersions":[{"vendor":"n/a","product":"docconv","versions":["1.0","1.1","1.2"]}],"affected":[{"ecosystem":"Go","package":"github.com/sajari/docconv","vulnerableRanges":["<1.2.1"],"patched":["1.2.1"],"from":["GHSA-6m4h-hfpp-x8cx"],"provenance":"source"},{"ecosystem":"Go","package":"code.sajari.com/docconv","vulnerableRanges":[">=1.1.0, <1.3.5"],"patched":["1.3.5"],"from":["GHSA-6m4h-hfpp-x8cx","GO-2022-1184"],"provenance":"source"}],"summary":{"text":"The flaw is an OS command injection in the ConvertPDFImages function of pdf_ocr.go in docconv, affecting versions up to 1.2.0, where the path argument is not properly neutralised before being used in an operating system command. An attacker can exploit it remotely without authentication, though the attack vector metadata indicates user interaction is required and the flaw is fixed in version 1.2.1.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:15:42Z"},"euvd":{"id":"EUVD-2022-7535","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-4741","published":"2022-12-25","fixed":"1.2.1","kev":false,"link":{"from":"CVE-2022-4741","to":"CVE-2022-4643","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:code.sajari.com/docconv","fromFixed":"1.2.1","toFixed":"1.3.5","daysApart":-4}]}},{"cve":"CVE-2022-4643","published":"2022-12-21","fixed":"1.3.5","kev":false}],"package":"Go:code.sajari.com/docconv"}}