CVE-2026-22189

9.8 CRITICAL

📋 TL;DR

This CVE describes a critical stack-based buffer overflow vulnerability in Panda3D's egg-mkfont tool. Attackers can exploit this by supplying an excessively long glyph pattern string, potentially leading to arbitrary code execution. All users running Panda3D versions up to 1.10.16 are affected.

💻 Affected Systems

Products:
  • Panda3D
Versions: All versions up to and including 1.10.16
Operating Systems: Linux, Windows, macOS
Default Config Vulnerable: ⚠️ Yes
Notes: The vulnerability is in the egg-mkfont command-line tool, which may be used during game/application development or asset processing pipelines.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Remote code execution with full system compromise, allowing attackers to install malware, steal data, or pivot to other systems.

🟠

Likely Case

Denial of service through application crashes, with potential for limited code execution depending on memory layout and exploit sophistication.

🟢

If Mitigated

Application crash without code execution if exploit attempts fail or memory protections are enabled.

🌐 Internet-Facing: MEDIUM
🏢 Internal Only: HIGH

🎯 Exploit Status

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

The vulnerability requires attacker control of the -gp parameter, which could come from user input, configuration files, or automated processing pipelines.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 1.10.17 or later

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

Restart Required: No

Instructions:

1. Check current Panda3D version using 'panda3d --version' or similar. 2. Update to version 1.10.17 or later via package manager or direct download. 3. Recompile any applications using Panda3D with the updated version.

🔧 Temporary Workarounds

Disable or restrict egg-mkfont usage

all

Remove execute permissions from egg-mkfont binary or restrict its use to trusted users only

chmod -x /path/to/egg-mkfont

Input validation wrapper

linux

Create a wrapper script that validates glyph pattern length before passing to egg-mkfont

#!/bin/bash
if [ ${#1} -gt 100 ]; then echo 'Glyph pattern too long'; exit 1; fi
egg-mkfont -gp "$1" "$@"

🧯 If You Can't Patch

  • Implement strict input validation for all user-supplied glyph patterns
  • Run egg-mkfont in a sandboxed environment with minimal privileges

🔍 How to Verify

Check if Vulnerable:

Check if egg-mkfont exists and test with a long glyph pattern: 'egg-mkfont -gp $(printf 'A%.0s' {1..500}) test.egg'

Check Version:

panda3d --version 2>/dev/null || egg-mkfont --version 2>/dev/null || grep -i version /usr/share/doc/panda3d*/changelog*

Verify Fix Applied:

After updating, attempt the same test with a long glyph pattern - application should handle it gracefully or reject input

📡 Detection & Monitoring

Log Indicators:

  • Segmentation fault or access violation logs from egg-mkfont
  • Unusually long command-line arguments to egg-mkfont

Network Indicators:

  • N/A - local vulnerability

SIEM Query:

process_name='egg-mkfont' AND (cmd_line_length>500 OR exit_code=139 OR exit_code=0xC0000005)

🔗 References

📤 Share & Export