CVE-2024-48911: OpenCanary OpenCanary Executes Commands From Potentially Vulnerability
MODERATECVE-2024-48911 is a MODERATE (CVSS 7.8) opencanary executes commands from potentially vulnerability (CWE-863: Incorrect Authorization) affecting OpenCanary libraries in the PyPI ecosystem. The issue involves opencanary executes commands from potentially writable config file. Remediation is available by upgrading affected packages to version 0.9.5.
CVE-2024-48911 at a Glance
Security Impact
CVSS: 7.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).
How to Fix CVE-2024-48911
To remediate this vulnerability, upgrade all affected OpenCanary dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install OpenCanary>=0.9.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show OpenCanary
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2024-48911, inspect your installed packages using pip:
pip show OpenCanary
Analyze the terminal output to locate any version of OpenCanary in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.9.5), your application is affected.
Note: The pip show OpenCanary command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In OpenCanary, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-48911 Affected OpenCanary Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
OpenCanary
|
PyPI |
< 0.9.5
|
0.9.5
|
References
Frequently Asked Questions
What is CVE-2024-48911?
Which OpenCanary versions are affected?
What version fixes CVE-2024-48911?
Is OpenCanary affected?
What is the CVSS score of CVE-2024-48911?
What CWE is associated with CVE-2024-48911?
How can I check PyPI dependencies for CVE-2024-48911?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-pf5v-pqfv-x8jj",
"modified" : "2025-05-16T22:13:57Z",
"published" : "2024-10-14T21:16:12Z",
"aliases" : [ "CVE-2024-48911" ],
"summary" : "OpenCanary Executes Commands From Potentially Writable Config File",
"details" : "### Impact\n\nOpenCanary 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.\n\nThanks to the folks at [Whirlylabs](https://whirlylabs.com/) for finding and fixing this.\n\n### Patches\n\nUpgrade to 0.9.4 or higher.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "OpenCanary"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.9.5"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/thinkst/opencanary/security/advisories/GHSA-pf5v-pqfv-x8jj"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-48911"
}, {
"type" : "WEB",
"url" : "https://github.com/thinkst/opencanary/commit/2c11575b1a3dd8b0df26a879ba856c0aa350c049"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/opencanary/PYSEC-2024-248.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/thinkst/opencanary"
}, {
"type" : "WEB",
"url" : "https://github.com/thinkst/opencanary/releases/tag/v0.9.4"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-863" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-10-14T21:16:12Z",
"nvd_published_at" : "2024-10-14T21:15:12Z"
}
}