CVE-2020-28628

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 to execute arbitrary code on affected systems. Any application using CGAL for polygon parsing is potentially vulnerable.

💻 Affected Systems

Products:
  • CGAL (Computational Geometry Algorithms Library)
Versions: CGAL-5.1.1 and earlier versions with Nef polygon functionality
Operating Systems: Linux, Unix-like systems, Windows
Default Config Vulnerable: ⚠️ Yes
Notes: Only applications using CGAL's Nef polygon parsing functionality are affected. Many scientific, engineering, and CAD applications may incorporate this library.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Full system compromise with attacker gaining complete control over the affected system, potentially leading to data theft, ransomware deployment, or lateral movement within the network.

🟠

Likely Case

Application crash leading to denial of service, with potential for limited code execution depending on application context and memory protections.

🟢

If Mitigated

Application crash without code execution if modern exploit mitigations (ASLR, DEP) are effective, though information disclosure may still occur.

🌐 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. No public exploits have been reported.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: CGAL-5.1.2 and later

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

Restart Required: Yes

Instructions:

1. Identify applications using CGAL library. 2. Update CGAL to version 5.1.2 or later. 3. Recompile applications with updated library. 4. Restart affected services.

🔧 Temporary Workarounds

Input validation

all

Implement strict validation of polygon file inputs before processing with CGAL

Library isolation

linux

Run CGAL-dependent applications in sandboxed or containerized environments

docker run --security-opt=no-new-privileges -v /path/to/data:/data app-container

🧯 If You Can't Patch

  • Implement network segmentation to isolate systems using CGAL
  • Deploy application allowlisting to prevent unauthorized execution of CGAL-dependent applications

🔍 How to Verify

Check if Vulnerable:

Check CGAL version with: dpkg -l | grep libcgal (Debian/Ubuntu) or rpm -qa | grep -i cgal (RHEL/CentOS)

Check Version:

cgal_create_CMakeLists --version 2>/dev/null | head -1

Verify Fix Applied:

Verify CGAL version is 5.1.2 or higher using version check command

📡 Detection & Monitoring

Log Indicators:

  • Application crashes when processing polygon files
  • Memory access violation errors in application logs
  • Unexpected process termination of CGAL-dependent applications

Network Indicators:

  • Unusual network connections from CGAL-dependent applications
  • Large polygon file uploads to vulnerable endpoints

SIEM Query:

source="application.logs" AND ("segmentation fault" OR "access violation" OR "CGAL") AND polygon

🔗 References

📤 Share & Export