CVE-2020-35631
Description
Multiple code execution vulnerabilities exists in the Nef polygon-parsing functionality of CGAL libcgal CGAL-5.1.1. 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 any of these vulnerabilities. An oob read vulnerability exists in Nef_S2/SNC_io_parser.h SNC_io_parser::read_sface() SD.link_as_face_cycle().
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
An out-of-bounds read in CGAL's Nef polygon parser can be exploited via a malformed file to achieve arbitrary code execution.
Vulnerability
An out-of-bounds read vulnerability exists in the Nef polygon-parsing functionality of CGAL libcgal, specifically in the SNC_io_parser::read_sface() function within Nef_S2/SNC_io_parser.h. The flaw occurs when parsing a specially crafted malformed .nef3 file, leading to an out-of-bounds read and type confusion. This vulnerability affects CGAL version 5.1.1 and is part of a larger set of code execution issues in the Nef polygon parsing code [1].
Exploitation
An attacker can exploit this vulnerability by providing a maliciously crafted .nef3 file to an application that uses the CGAL library to parse Nef polygons. No authentication or special network position is required; the attacker only needs to deliver the file (e.g., via a web upload or file sharing). The parsing process triggers an out-of-bounds read in read_sface(), which can then lead to type confusion and ultimately arbitrary code execution [1].
Impact
Successful exploitation allows an attacker to execute arbitrary code in the context of the application using CGAL. This can lead to full compromise of the affected system, including data disclosure, modification, or denial of service. The CVSSv3 score is 10.0, indicating critical severity with network attack vector, low complexity, and no privileges required [1].
Mitigation
The vulnerability is fixed in CGAL version 5.4.1, as recommended by the Gentoo security advisory (GLSA 202305-34) [2]. Users should upgrade to CGAL 5.4.1 or later. No known workaround exists for earlier versions. The affected version 5.1.1 is no longer supported, so upgrading is essential [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 Project/libcgalv5Range: CGAL-5.1.1
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.