VYPR
Unrated severityNVD Advisory· Published Aug 30, 2021· Updated Apr 23, 2025

CVE-2020-35634

CVE-2020-35634

Description

A code execution vulnerability exists in the Nef polygon-parsing functionality of CGAL libcgal CGAL-5.1.1. An oob read vulnerability exists in Nef_S2/SNC_io_parser.h SNC_io_parser::read_sface() sfh->boundary_entry_objects Sloop_of. 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 (Nef_S2/SNC_io_parser.h) allows remote code execution through a specially crafted malformed file.

Vulnerability

An out-of-bounds read vulnerability exists in the Nef_S2/SNC_io_parser.h file of CGAL libcgal, specifically in the SNC_io_parser::read_sface() function when processing sfh->boundary_entry_objects Sloop_of entries. The bug occurs due to improper validation of array indices (CWE-129) [1]. Internally, the code parses a specially crafted malformed .nef3 file and reads beyond allocated memory, leading to type confusion. The vulnerability affects CGAL-5.1.1 and likely earlier versions [1]. It is one of multiple similar issues in the Nef polygon-parsing functionality [1].

Exploitation

An attacker only needs to supply a maliciously crafted .nef3 file (or similar Nef polygon input) to a target application that uses CGAL's Nef parsing routines. No authentication or special network position is required, as the parsing is typically done on user-provided files. The attacker crafts the file to trigger an out-of-bounds read during the read_sface operation, causing type confusion in the object that is subsequently used in the program's execution flow [1].

Impact

Successful exploitation can lead to arbitrary code execution with the privileges of the process using CGAL. The out-of-bounds read and resulting type confusion allow the attacker to overwrite or hijack internal data structures, leading to full compromise of the application (confidentiality, integrity, availability) [1]. The CVSSv3 score is 10.0 with network attack vector and no privileges required, indicating critical impact [1].

Mitigation

The CGAL project has addressed this and related issues in versions after 5.1.1. The Gentoo security advisory recommends upgrading to >=sci-mathematics/cgal-5.4.1 for the Gentoo distribution [2]. For other environments, users should update to a CGAL release that includes the fix (e.g., CGAL-5.4.1 or later) [2]. No known workaround exists other than upgrading [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

3

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

3

News mentions

0

No linked articles in our index yet.