CVE-2020-28622

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 Nef polygon parsing to execute arbitrary code. Systems using CGAL for computational geometry operations are affected.

💻 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 vulnerable. Many CGAL applications may not use this specific feature.

📦 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.

🟠

Likely Case

Application crash leading to denial of service, with potential for limited code execution in the context of the vulnerable application.

🟢

If Mitigated

Application crash without code execution if memory protections (ASLR, DEP) are effective, but service disruption still occurs.

🌐 Internet-Facing: MEDIUM
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploitation requires crafting malicious polygon files and convincing users/processes to parse them. No public exploit code is known.

🛠️ 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

Implement strict validation of polygon files before processing with CGAL

Sandbox parsing

all

Run CGAL polygon parsing in isolated containers or sandboxes

🧯 If You Can't Patch

  • Disable Nef polygon parsing functionality if not required
  • Implement network segmentation to isolate vulnerable systems

🔍 How to Verify

Check if Vulnerable:

Check CGAL version: dpkg -l | grep libcgal or check package manager for CGAL version

Check Version:

cgal_create_cmake_script --version or check package manager

Verify Fix Applied:

Verify CGAL version is 5.1.2 or later and applications have been recompiled

📡 Detection & Monitoring

Log Indicators:

  • Application crashes when processing polygon files
  • Memory access violation errors in application logs

Network Indicators:

  • Unexpected polygon file transfers to systems using CGAL

SIEM Query:

source="application.log" AND ("segmentation fault" OR "access violation") AND process="*cgal*"

🔗 References

📤 Share & Export