CVE-2024-48911
JSON

5.8medium

OpenCanary Executes Commands From Potentially Writable Config File

Severity
5.8medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.34% (higher than 20% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-pf5v-pqfv-x8jjPYSEC-2024-248

Description

OpenCanary, a multi-protocol network honeypot, directly executed commands taken from its config file. Prior to version 0.9.4, 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. Version 0.9.4 contains a fix for the issue.

Affected

Product or packageVersionsReported by
thinkst opencanary< 0.9.4, before 0.9.4CVE List, NVD
opencanary (PyPI)before 0.9.5, before 0.9.4GitHub Advisory Database, PyPA Advisory Database

All scores

GitHub_M5.8medium CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N
GitHub7.8medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
GitHubmedium CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
PyPA Advisory Database7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Classification

CWE-863

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

OpenCanary, a multi-protocol network honeypot, directly executed commands taken from its config file. Prior to version 0.9.4, 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. Version 0.9.4 contains a fix for the issue.

GitHub Advisory Database
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.

NVD (es)

OpenCanary, un honeypot de red multiprotocolo, ejecutaba directamente comandos tomados de su archivo de configuración. Antes de la versión 0.9.4, donde el archivo de configuración se almacenaba en un directorio de usuario sin privilegios pero el daemon lo ejecutaba el usuario root, era posible que el usuario sin privilegios cambiara el archivo de configuración y aumentara los permisos cuando el usuario root ejecutaba posteriormente el daemon. La versión 0.9.4 contiene una solución para el problema.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-48911 changed 2024-10-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-pf5v-pqfv-x8jj changed 2025-05-16CC-BY-4.0
NVDCVE-2024-48911 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2024-248 changed 2025-05-16CC-BY-4.0