{"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-4741 in the wild and no public exploit code.","fix":"Upgrade code.sajari.com/docconv to 1.2.1 or later.","what":"CVE-2022-4741 is a medium-severity vulnerability in docconv, published on 25 Dec 2022."},"fix_prompt":"Check this codebase for CVE-2022-4741 and fix it if it is affected.\n\nWhat it is: CVE-2022-4741 is a medium-severity vulnerability in docconv, published on 25 Dec 2022. \nExploitation: There is no known exploitation of CVE-2022-4741 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- code.sajari.com/docconv (Go): affected all versions; fixed in 1.2.1\n- code.sajari.com/docconv (Go): affected all versions; fixed in 1.2.1\n- code.sajari.com/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- 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-4741/ (Markdown: https://insights.sbomify.com/CVE-2022-4741/index.md)","id":"CVE-2022-4741","markdown":"https://insights.sbomify.com/CVE-2022-4741/index.md","name":"CVE-2022-4741","record":{"aliases":["GHSA-qvx2-59g8-8hph","GO-2022-1188"],"analysis":null,"analysis_generated_by":null,"assigner":"VulDB","cpe":[{"product":"docconv","vendor":"search"}],"cvss":{"score":4.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-789","name":"Memory Allocation with Excessive Size Value"}],"description":"A vulnerability was found in docconv up to 1.2.0 and classified as problematic. This issue affects the function ConvertDocx/ConvertODT/ConvertPages/ConvertXML/XMLToText. The manipulation leads to uncontrolled memory allocation. The attack may be initiated remotely. Upgrading to version 1.2.1 is able to address this issue. The name of the patch is 42bcff666855ab978e67a9041d0cdea552f20301. It is recommended to upgrade the affected component. The associated identifier of this vulnerability is VDB-216779.","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 XMLToText memory allocation","id":"CVE-2022-4741","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":null,"year":"2022"},"n_packages":5,"n_references":5,"next":{"headline":"json-pointer index.js set prototype pollution","id":"CVE-2022-4742"},"packages":[{"ecosystem":"Go","fixed":["1.2.1"],"introduced":["0"],"last_affected":[],"package":"code.sajari.com/docconv","purl":null,"source":"GHSA-qvx2-59g8-8hph"},{"ecosystem":"Go","fixed":["1.2.1"],"introduced":["0"],"last_affected":[],"package":"code.sajari.com/docconv","purl":"pkg:golang/code.sajari.com/docconv","source":"GHSA-qvx2-59g8-8hph"},{"ecosystem":"Go","fixed":["1.2.1"],"introduced":["0"],"last_affected":[],"package":"code.sajari.com/docconv","purl":"pkg:golang/code.sajari.com/docconv","source":"GO-2022-1188"},{"ecosystem":"Go","fixed":["1.2.1"],"introduced":["0"],"last_affected":[],"package":"github.com/sajari/docconv","purl":null,"source":"GHSA-qvx2-59g8-8hph"},{"ecosystem":"Go","fixed":["1.2.1"],"introduced":["0"],"last_affected":[],"package":"github.com/sajari/docconv","purl":"pkg:golang/github.com/sajari/docconv","source":"GHSA-qvx2-59g8-8hph"}],"prev":{"headline":"kkFileView picturesPreview setWatermarkAttribute cross site scripting","id":"CVE-2022-4740"},"products":["docconv"],"published":"2022-12-25","related":[{"cvss_score":6.3,"headline":"docconv pdf_ocr.go ConvertPDFImages os command injection","id":"CVE-2022-4643","kev_date_added":null,"published":"2022-12-21"}],"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":null,"url":"https://insights.sbomify.com/CVE-2022-4741/"}