Skip to content

security: fix injection vulnerabilities and unsafe deserialization#60

Merged
ewgsta merged 1 commit into
mainfrom
fix/critical-security-fixes
Jun 21, 2026
Merged

security: fix injection vulnerabilities and unsafe deserialization#60
ewgsta merged 1 commit into
mainfrom
fix/critical-security-fixes

Conversation

@ewgsta

@ewgsta ewgsta commented Jun 21, 2026

Copy link
Copy Markdown
Owner

Summary

  • Fix PowerShell/AppleScript injection in notifier via input sanitization
  • Fix batch file injection in updater by escaping special characters
  • Replace pickle with JSON for provider cache to prevent arbitrary code execution (CVE-2007-4559 related)
  • Add tar path traversal protection with filter='data'
  • Add language code validation in i18n to prevent path traversal
  • Add notify-send existence check and timeouts for Linux/macOS notifications
  • Remove unused Optional import from notifier

Security Issues Addressed

  1. PowerShell Injection (notifier.py): User-controlled title/message were interpolated directly into PowerShell scripts
  2. AppleScript Injection (notifier.py): Same issue with macOS osascript commands
  3. Batch File Injection (updater.py): File paths with special characters could execute arbitrary commands
  4. Pickle Deserialization (registry.py): pickle.load() on cache file allowed arbitrary code execution
  5. Path Traversal (i18n.py): Unvalidated language codes could read arbitrary files
  6. Tar Path Traversal (dependency_manager.py): extractall() without filter parameter

- Fix PowerShell/AppleScript injection in notifier via input sanitization
- Fix batch file injection in updater by escaping special characters
- Replace pickle with JSON for provider cache to prevent arbitrary code execution
- Add tar path traversal protection with filter='data' (CVE-2007-4559)
- Add language code validation in i18n to prevent path traversal
- Add notify-send existence check and timeouts for Linux/macOS notifications
- Remove unused Optional import from notifier

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
@ewgsta ewgsta merged commit 19a55dd into main Jun 21, 2026
0 of 6 checks passed
@ewgsta ewgsta deleted the fix/critical-security-fixes branch June 21, 2026 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant