{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-8357 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2026-8357 is a medium-severity memory corruption vulnerability in The Document Foundation LibreOffice, published on 15 Jun 2026. 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-2026-8357 and fix it if it is affected.\n\nWhat it is: CVE-2026-8357 is a medium-severity memory corruption vulnerability in The Document Foundation LibreOffice, published on 15 Jun 2026. 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-2026-8357 in the wild and no public exploit code.\n\nAffected product: The Document Foundation LibreOffice. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2026-8357/ (Markdown: https://insights.sbomify.com/CVE-2026-8357/index.md)","id":"CVE-2026-8357","markdown":"https://insights.sbomify.com/CVE-2026-8357/index.md","name":"CVE-2026-8357","record":{"aliases":["ALSA-2026:35839","ALSA-2026:36832","DEBIAN-CVE-2026-8357","GHSA-j779-pcc6-8c5f","RHSA-2026:35839","RHSA-2026:36832","RHSA-2026:43423","RHSA-2026:43424","RHSA-2026:43425","RHSA-2026:43460","RHSA-2026:43461","RHSA-2026:46387","RLSA-2026:35839","RLSA-2026:36832","UBUNTU-CVE-2026-8357"],"analysis":{"component_type":"desktop_application","fix_type":"patch","impacts":["code_execution","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"LibreOffice Calc","requires_auth":"none","summary":"A heap buffer overflow in LibreOffice Calc allows attackers to execute arbitrary code or cause a crash by providing a specially crafted spreadsheet with a long formula.","user_interaction":"required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Document Fdn.","cpe":[],"cvss":{"score":5.4,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N/E:P","version":"4.0"},"cwes":[{"id":"CWE-131","name":"Incorrect Calculation of Buffer Size"},{"id":"CWE-787","name":"Out-of-bounds Write"},{"id":"CWE-193","name":"Off-by-one Error"}],"description":"LibreOffice Calc compiles cell formulas when opening a spreadsheet. A heap buffer overflow existed when compiling a very long formula made up of many opening tokens. The array that tracks nesting depth was allocated one element too small for that worst case, so such a formula wrote one element past its end. In fixed versions the array is sized to hold the largest possible nesting.","ecosystems":["AlmaLinux:8","AlmaLinux:9","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:8::crb","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::crb","Red Hat:rhel_aus:8.4::appstream","Red Hat:rhel_aus:8.6::appstream","Red Hat:rhel_e4s:8.8::appstream","Red Hat:rhel_e4s:9.2::appstream","Red Hat:rhel_e4s:9.4::appstream","Red Hat:rhel_eus:9.6::appstream","Red Hat:rhel_eus:9.6::crb","Red Hat:rhel_eus_long_life:8.4::appstream","Red Hat:rhel_eus_long_life:8.6::appstream","Red Hat:rhel_tus:8.8::appstream","Rocky Linux:8","Rocky Linux:9"],"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":"Heap buffer overflow in Calc formula compilation","id":"CVE-2026-8357","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"memory_corruption","year":"2026"},"n_packages":2523,"n_references":1,"next":{"headline":"Heap buffer overflow in spreadsheet tracked-changes import","id":"CVE-2026-8358"},"packages":[{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"autocorr-af","purl":"pkg:rpm/almalinux/autocorr-af","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"autocorr-bg","purl":"pkg:rpm/almalinux/autocorr-bg","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"autocorr-ca","purl":"pkg:rpm/almalinux/autocorr-ca","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"autocorr-cs","purl":"pkg:rpm/almalinux/autocorr-cs","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"autocorr-da","purl":"pkg:rpm/almalinux/autocorr-da","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"autocorr-de","purl":"pkg:rpm/almalinux/autocorr-de","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"autocorr-en","purl":"pkg:rpm/almalinux/autocorr-en","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"autocorr-es","purl":"pkg:rpm/almalinux/autocorr-es","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"autocorr-fa","purl":"pkg:rpm/almalinux/autocorr-fa","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"autocorr-fi","purl":"pkg:rpm/almalinux/autocorr-fi","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"autocorr-fr","purl":"pkg:rpm/almalinux/autocorr-fr","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"autocorr-ga","purl":"pkg:rpm/almalinux/autocorr-ga","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"autocorr-hr","purl":"pkg:rpm/almalinux/autocorr-hr","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"autocorr-hu","purl":"pkg:rpm/almalinux/autocorr-hu","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"autocorr-is","purl":"pkg:rpm/almalinux/autocorr-is","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"autocorr-it","purl":"pkg:rpm/almalinux/autocorr-it","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"autocorr-ja","purl":"pkg:rpm/almalinux/autocorr-ja","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"autocorr-ko","purl":"pkg:rpm/almalinux/autocorr-ko","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"autocorr-lb","purl":"pkg:rpm/almalinux/autocorr-lb","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"autocorr-lt","purl":"pkg:rpm/almalinux/autocorr-lt","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"autocorr-mn","purl":"pkg:rpm/almalinux/autocorr-mn","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"autocorr-nl","purl":"pkg:rpm/almalinux/autocorr-nl","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"autocorr-pl","purl":"pkg:rpm/almalinux/autocorr-pl","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"autocorr-pt","purl":"pkg:rpm/almalinux/autocorr-pt","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"autocorr-ro","purl":"pkg:rpm/almalinux/autocorr-ro","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"autocorr-ru","purl":"pkg:rpm/almalinux/autocorr-ru","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"autocorr-sk","purl":"pkg:rpm/almalinux/autocorr-sk","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"autocorr-sl","purl":"pkg:rpm/almalinux/autocorr-sl","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"autocorr-sr","purl":"pkg:rpm/almalinux/autocorr-sr","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"autocorr-sv","purl":"pkg:rpm/almalinux/autocorr-sv","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"autocorr-tr","purl":"pkg:rpm/almalinux/autocorr-tr","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"autocorr-vi","purl":"pkg:rpm/almalinux/autocorr-vi","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"autocorr-zh","purl":"pkg:rpm/almalinux/autocorr-zh","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"libreoffice","purl":"pkg:rpm/almalinux/libreoffice","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"libreoffice-base","purl":"pkg:rpm/almalinux/libreoffice-base","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"libreoffice-calc","purl":"pkg:rpm/almalinux/libreoffice-calc","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"libreoffice-core","purl":"pkg:rpm/almalinux/libreoffice-core","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"libreoffice-data","purl":"pkg:rpm/almalinux/libreoffice-data","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"libreoffice-draw","purl":"pkg:rpm/almalinux/libreoffice-draw","source":"ALSA-2026:35839"},{"ecosystem":"AlmaLinux:8","fixed":["1:6.4.7.2-21.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"libreoffice-emailmerge","purl":"pkg:rpm/almalinux/libreoffice-emailmerge","source":"ALSA-2026:35839"}],"prev":{"headline":"Stack buffer overflow in PPT presentation import","id":"CVE-2026-8356"},"products":["LibreOffice"],"published":"2026-06-15","related":[],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-28","vendors":["The Document Foundation"]},"summary":"A heap buffer overflow in LibreOffice Calc allows attackers to execute arbitrary code or cause a crash by providing a specially crafted spreadsheet with a long formula.","url":"https://insights.sbomify.com/CVE-2026-8357/"}