CVE-2020-28632

8.8 HIGH

📋 TL;DR

This vulnerability in CGAL library allows remote code execution through specially crafted polygon files. Attackers can exploit out-of-bounds read and type confusion vulnerabilities in the Nef polygon-parsing functionality. Systems using CGAL for computational geometry operations are affected.

💻 Affected Systems

Products:
  • CGAL (Computational Geometry Algorithms Library)
Versions: CGAL-5.1.1 and earlier
Operating Systems: Linux, Unix-like systems, Windows
Default Config Vulnerable: ⚠️ Yes
Notes: Applications using CGAL's Nef polygon-parsing functionality are vulnerable when processing untrusted input files.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Full system compromise with attacker gaining arbitrary code execution privileges on the affected system.

🟠

Likely Case

Application crash leading to denial of service, with potential for remote code execution in specific configurations.

🟢

If Mitigated

Application crash without code execution if memory protections are enabled.

🌐 Internet-Facing: MEDIUM
🏢 Internal Only: LOW

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ⚠️ Yes
Complexity: MEDIUM

Exploitation requires specially crafted polygon files and knowledge of the vulnerable parsing functionality.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: CGAL-5.1.2 and later

Vendor Advisory: https://www.cgal.org/

Restart Required: Yes

Instructions:

1. Update CGAL to version 5.1.2 or later. 2. Recompile applications using CGAL. 3. Restart affected services.

🔧 Temporary Workarounds

Input validation

all

Validate polygon files before processing with CGAL

Disable Nef polygon parsing

all

Disable or restrict use of Nef polygon functionality if not required

🧯 If You Can't Patch

  • Implement strict input validation for polygon files
  • Run CGAL applications with reduced privileges and memory protection mechanisms

🔍 How to Verify

Check if Vulnerable:

Check CGAL version with: cgal_version or examine package manager output

Check Version:

cgal_version || dpkg -l | grep libcgal || rpm -qa | grep -i cgal

Verify Fix Applied:

Verify CGAL version is 5.1.2 or later

📡 Detection & Monitoring

Log Indicators:

  • Application crashes when processing polygon files
  • Memory access violation errors

Network Indicators:

  • Unexpected file uploads to CGAL applications

SIEM Query:

Application:CGAL AND (EventID:1000 OR SegmentationFault)

🔗 References

📤 Share & Export