Advisory

GHSA-pf5v-pqfv-x8jj

Also known as: CVE-2024-48911, PYSEC-2024-248

Summary

OpenCanary Executes Commands From Potentially Writable Config File

Details

Impact

OpenCanary directly executed commands taken from its config file. Where the config file is stored in an unprivileged user directory but the daemon is executed by root, it’s possible for the unprivileged user to change the config file and escalate permissions when root later runs the daemon.

Thanks to the folks at Whirlylabs for finding and fixing this.

Patches

Upgrade to 0.9.4 or higher.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-10-14 21:16 UTC
Modified
2025-05-16 22:39 UTC

Affected packages and fixes

opencanary

PyPI · All systems

Affected

  • introduced 0, fixed 0.9.5 (ecosystem)

Fixed versions

0.9.5

Fix

  • Fixed version 0.9.5
    pip install --upgrade opencanary==0.9.5

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences