CVE-2020-35635
Description
A code execution vulnerability exists in the Nef polygon-parsing functionality of CGAL libcgal CGAL-5.1.1 in Nef_S2/SNC_io_parser.h SNC_io_parser::read_sface() store_sm_boundary_item() Sloop_of OOB read. A specially crafted malformed file can lead to an out-of-bounds read and type confusion, which could lead to code execution. An attacker can provide malicious input to trigger this vulnerability.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
An out-of-bounds read and type confusion in CGAL's Nef polygon parser can lead to code execution when processing a malicious file.
Vulnerability
The vulnerability exists in the Nef polygon-parsing functionality of CGAL libcgal version 5.1.1, specifically in Nef_S2/SNC_io_parser.h within the SNC_io_parser::read_sface() and store_sm_boundary_item() functions [1]. The code performs an out-of-bounds read during parsing of a specially crafted malformed .nef3 file, leading to a type confusion condition. This affects the handling of Nef polygons, which are geometric shapes supported by CGAL [1].
Exploitation
An attacker can trigger this vulnerability by providing a malicious malformed .nef3 file to an application or library that uses CGAL to parse such files. No authentication or user interaction beyond loading the file is required, as the bug is reachable through the standard file parsing path [1]. The attacker must craft the file to cause the parser to read beyond the bounds of an array, leading to type confusion [1].
Impact
Successful exploitation can lead to arbitrary code execution with the privileges of the process using CGAL. The out-of-bounds read and type confusion allow an attacker to corrupt memory and potentially execute arbitrary code [1]. The CVSS score of 10.0 indicates a critical severity with network attack vector, low attack complexity, no privileges required, and no user interaction, with impacts on confidentiality, integrity, and availability [1].
Mitigation
The Gentoo security advisory recommends upgrading to CGAL version 5.4.1 or later [2]. As of the publication date (2021-08-30), the fix is available in the latest upstream release. Users should update their CGAL library to the patched version to mitigate this vulnerability. No workaround is known aside from updating [2].
AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
2- CGAL/libcgaldescription
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
3- security.gentoo.org/glsa/202305-34mitrevendor-advisory
- lists.debian.org/debian-lts-announce/2022/12/msg00011.htmlmitremailing-list
- talosintelligence.com/vulnerability_reports/TALOS-2020-1225mitre
News mentions
0No linked articles in our index yet.