/

CVE-2026-72589

Severity:

CRITICAL RISK

(9.8)

OS Command Injection (CWE-78) in Crontab-UI Import

CVE-2026-72589

Deferred

Vulnerability type

Category:

OS Command Injection

CWE:

CWE-78

Impact:

Arbitrary Command Execution

Severity:

CRITICAL RISK

(9.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

A critical OS command injection vulnerability in Crontab-UI allows an unauthenticated remote attacker to execute arbitrary system commands through the crontab database import functionality. The risk arises when a crafted database file is submitted to the import endpoint and accepted without adequate validation or content restrictions.

Affected context

The vulnerability occurs in Crontab-UI deployments that expose the /import endpoint and permit unauthenticated users to submit crontab database files. The issue is present when imported .db content can overwrite application data without sufficient validation, allowing attacker-controlled values to reach command execution paths.

Exploit preconditions

  • Attack surface: HTTP POST /import endpoint
  • Required access: No authentication, if the endpoint is externally reachable without access controls
  • Trigger point: Import processing of a crafted crontab database file
  • Why exploitation is possible: The application accepts and processes attacker-controlled database content without adequately validating its structure or restricting values that may be used in system command operations

Why this happens

The underlying bug is an OS command injection flaw mapped to CWE-78. Application-controlled data from an imported database file is insufficiently separated from operating-system command construction or execution. When untrusted values are incorporated into command operations without strict validation and safe execution patterns, attackers may influence the commands run by the application.

Potential impact

  • Attackers may execute arbitrary operating-system commands with the application's privileges
  • The host or container running Crontab-UI could be compromised
  • Sensitive files, credentials, and environment data may be accessed
  • Scheduled jobs or application data could be modified
  • The vulnerable service could be used for lateral movement or further system compromise

General mitigation guidance

Mitigation generally focuses on removing shell interpretation from application workflows and reducing trust in imported files.

Common defensive patterns include:

  • Prefer direct process APIs with fixed argument arrays instead of shell command construction
  • Apply strict allowlist validation to imported file structure, fields, and values
  • Treat uploaded database files as untrusted and isolate import processing
  • Require authentication and authorization for administrative import operations
  • Run the service with least-privilege operating-system and filesystem permissions
  • Use secure-by-default upload handling, bounded file sizes, and restricted file types
  • Avoid allowing imported content to overwrite application databases without integrity and schema checks

How teams detect issues like this

Detection approaches may include:

  • Static analysis for string concatenation, interpolation, or formatting used in shell execution APIs
  • Code review checks for uploaded or imported values reaching process-spawning functions
  • Tests that submit malformed and unexpected database fields to import handlers
  • Web access monitoring for unusual requests to /import, especially unauthenticated submissions
  • Policy enforcement requiring authentication, schema validation, and bounded uploads for administrative endpoints
  • Runtime monitoring for unexpected child processes, command interpreters, or filesystem changes initiated by the service

Automated code review and application security tools may help identify command execution paths that process untrusted input.

Sources

SourceLink
github.comgithub.com/alseambusher/crontab-ui
github.comgithub.com/alseambusher/crontab-ui/blob/master/crontab.js

Frequently asked

questions

Yes. Where the import endpoint is reachable over the network and lacks authentication, an attacker may submit a crafted database file remotely.

The described vulnerability does not require authentication when the affected /import endpoint is exposed without access controls. Deployment-specific network protections may change the reachable scope.

Prevent imported data from reaching shell interpretation or dynamic command construction. Use fixed executable paths and argument arrays, together with strict schema and value validation.

Protect administrative endpoints with authentication and authorization, treat imported files as untrusted, enforce allowlist-based validation, and monitor services for unexpected process execution.

Find out what's already
exploitable in your codebase.