Back to blog

When a Job Parameter Becomes LD_PRELOAD: Cronicle's CVE-2026-85076

Cronicle copied event parameters into a job's environment, letting non-admins set NODE_OPTIONS or LD_PRELOAD. What the fix changes and how to audit it.

CronGuard TeamCron Job Monitoring Experts
6 min read
A code editor on a dark screen showing JavaScript in a monospaced font, an if statement comparing widths and heights above green comments, with the right edge blurred out of focus

Nine Cronicle releases in one month

Cronicle shipped nine releases between 1 and 28 November 2026, 0.9.141 through 0.9.149. Nearly all are security fixes. On 5 November, in the middle of that run, the CVE record for CVE-2026-85076 went public. The bug itself was fixed in July, in 0.9.124.

The record calls it an incomplete fix for CVE-2026-39401, the update_event bug from When a Scheduled Job Can Rewrite Its Own Alerts. That one abused a job's output. This one abuses its input. Anyone allowed to run a job could also pick the environment variables it started with.

How a parameter turned into an environment variable

An admin defines a Cronicle plugin, and the plugin declares its parameters. Events store values for them. At launch, lib/job.js uppercases every parameter key and writes it into the child process environment.

Before 0.9.124 nobody compared those keys with the plugin's list. Per the GitHub advisory, the API only checked that params was an object. Parameters were also applied after the admin-defined plugin variables. On a collision, the user won.

The request in the advisory

The proof of concept needs only the run_events privilege:

POST /api/app/run_event/v1
{"id": "EVENT_ID", "params": {"node_options": "--require=/tmp/evil.js"}}

node_options becomes NODE_OPTIONS, and every Node.js process the job starts loads /tmp/evil.js first. The same trick works through create_event and update_event, so create_events or edit_events was enough too.

Why these variable names are dangerous

The advisory names LD_PRELOAD, PATH, NODE_OPTIONS, BASH_ENV and PYTHONPATH. Every one of them decides which code runs. LD_PRELOAD loads a shared object ahead of every other library. BASH_ENV names a file that non-interactive bash executes before your script. PATH picks which binary a bare pg_dump resolves to.

The dynamic linker does offer some protection. ld.so(8) ignores slash-containing LD_PRELOAD paths in secure-execution mode, which exists for set-user-ID programs. A scheduler that switches to the job's user and runs an ordinary script never enters that mode. And the advisory's scenario is exactly that switch: an event running as an account with more privileges than the user triggering it.

Two naming conventions in one file

lib/job.js already had the safe pattern. Job metadata lands in the environment with a prefix: JOB_ID, JOB_LOG. Plugin parameters went in bare.

Rundeck prefixes everything. Its docs say each context variable is uppercased, punctuation becomes an underscore, and RD_ goes in front. An option called path reaches the script as RD_OPTION_PATH. It cannot become PATH. The advisory proposed a PARAM_ prefix along the same lines. Cronicle chose to validate keys against the plugin's declared parameters instead.

What the fix changes in your running jobs

Create and update calls now fail loudly

create_event and update_event reject any key the plugin does not declare, with the error Unknown Plugin parameter. Deploy scripts that build events through the API with extra keys will start failing. Good. You will notice.

Stored extras are dropped without a word

At launch the patched code copies only declared parameters, and hidden ones always take the plugin's value. An older event carrying an undeclared key keeps running on schedule. The variable is just gone.

If the script read it and fell back to a default, it now exits 0 with the wrong result. Make missing inputs fatal:

#!/bin/bash
set -euo pipefail

# Abort with a clear message instead of quietly using a default.
: "${REPORT_DAYS:?REPORT_DAYS is not set; check the plugin parameters}"

/usr/local/bin/build-report --days "$REPORT_DAYS"

# Only a complete run checks in. A missing parameter means no ping.
curl -fsS --retry 3 "$CRONGUARD_PING_URL"

November's releases hit the same seam

Read the November changelog in order. Most fixes concern what a non-admin may send while running or editing a job:

0.9.141  Nov 1   Restrict run_event overrides to prevent plugin substitution
0.9.143  Nov 7   Restrict job update APIs to a strict property allowlist
                 fetch_delete_job_log: disallow path traversal
0.9.144  Nov 7   Prevent script parameter overrides in run_event
0.9.145  Nov 7   Keep job log watch tokens from authorizing cluster broadcasts
0.9.149  Nov 28  Replace static job log tokens with scoped, expiring credentials

Run Now executes code by design. The permission model is the only thing between "may start this job" and "may decide what it executes".

Auditing a Cronicle install

Upgrade to the current release

Install 0.9.149 or later. Stopping at 0.9.124 closes this CVE and leaves the November run_event fixes out.

Count who holds run, create and edit rights

Any of the three was enough here. Treat run_events as permission to execute code as the event's user, because until July that is what it was.

Diff your events against their plugins first

Export the schedule and compare each event's parameter keys with what its plugin declares. An extra key is either a variable your job needs and is about to lose, or a trace of someone using this bug. Look at it before you upgrade.

Check your own tooling

Built a wrapper that turns form fields or API arguments into environment variables? Prefix them or allowlist them. A job's environment is part of its code.

Frequently asked questions about Cronicle parameter injection

What did CVE-2026-85076 allow? Before Cronicle 0.9.124, an authenticated non-admin with the run_events, create_events or edit_events privilege could add undeclared keys to an event's parameters. Cronicle uppercased those keys and applied them to the job's environment after the admin-defined plugin variables, so a key such as node_options could set NODE_OPTIONS and make the job load attacker-chosen code.

Which Cronicle version fixes it? The fix shipped in 0.9.124 on 17 July 2026, while the CVE record was only published on 5 November. Cronicle released nine more security-focused versions in November, so upgrade to 0.9.149 or later.

Why are LD_PRELOAD, BASH_ENV and NODE_OPTIONS dangerous in a job environment? Each of them decides which code runs before the job's own logic. The dynamic linker only restricts LD_PRELOAD in secure-execution mode for set-user-ID programs, and a scheduler running an ordinary script under another user does not trigger that mode.

Can upgrading Cronicle break existing jobs? Yes. Create and update calls now reject undeclared parameter keys, and at launch only plugin-defined parameters reach the job. An event that relied on an undeclared key runs without that variable, and a script that falls back to a default may exit 0 with a wrong result.

How do other schedulers avoid this problem? Rundeck prefixes every option it exports, so an option called path reaches the script as RD_OPTION_PATH and can never replace PATH. Cronicle now validates parameter keys against the plugin's declared list instead.

Further reading


Conclusion: In Cronicle, the right to run a job came with the right to choose its environment, and once LD_PRELOAD or NODE_OPTIONS are in reach, that means choosing its code. The patch also quietly strips variables some jobs relied on. So upgrade, diff stored events first, and let an external check-in tell you which jobs stopped finishing.

Sources: GitHub advisory GHSA-9w42-v8cj-68gq, CVE-2026-85076, Cronicle releases, ld.so(8), Bash startup files and the Rundeck job variables reference.

Share

Related posts

Close-up of a black screen showing a green ubuntu@ubuntu:~$ shell prompt followed by a cursor, with the left edge of the text out of focus
DevOpsThe crontab-ui CVEs: A Web UI for Your Crontab Is a Remote Shell
Green monospaced text filling a dark computer screen, showing lines of package-installation and unpacking output scrolling in a terminal
MonitoringWhen a Scheduled Job Can Rewrite Its Own Alerts: The Cronicle Bug
Rows of identical white equipment cabinets with small glass windows fill a large hall, seen from above, with black cable trays hanging from the ceiling
ReliabilityWorkday's Outage Left Bad Data. Which Scheduled Jobs Do You Rerun?

Set up your first monitor.
It'll take 30 seconds.