CVE-2024-48911: OpenCanary OpenCanary Executes Commands From Potentially Vulnerability

MODERATE
Advisory Identifier: GHSA-pf5v-pqfv-x8jj
CVSS 7.8
CWE-863
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-48911
GHSA Identifier GHSA-pf5v-pqfv-x8jj
Severity MODERATE
CVSS v3.1 Base Score 7.8
CWE Classification CWE-863: Incorrect Authorization
Affected Product OpenCanary
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

OpenCanary fixed: 0.9.5
pip install OpenCanary>=0.9.5
Verify Direct and Transitive Dependencies

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

### 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](https://whirlylabs.com/) for finding and fixing this. ### Patches Upgrade to 0.9.4 or higher.

CVE-2024-48911 Affected OpenCanary Versions

1 component(s)
Fixed Versions:
0.9.5
Product / Package Ecosystem Affected Versions Fixed Version
OpenCanary
PyPI
< 0.9.5
0.9.5

References

Frequently Asked Questions

What is CVE-2024-48911?
CVE-2024-48911 is a security vulnerability in OpenCanary involving OpenCanary Executes Commands From Potentially Writable Config File under CWE-863: Incorrect Authorization.
Which OpenCanary versions are affected?
Affected versions include releases prior to 0.9.5 across affected packages: OpenCanary.
What version fixes CVE-2024-48911?
Upgrading to 0.9.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is OpenCanary affected?
Yes, OpenCanary is affected in releases prior to 0.9.5. Upgrade your dependency to 0.9.5 or later.
What is the CVSS score of CVE-2024-48911?
CVE-2024-48911 has a CVSS v3.1 base score of 7.8 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2024-48911?
CVE-2024-48911 is classified under CWE-863: Incorrect Authorization (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.).
How can I check PyPI dependencies for CVE-2024-48911?
Run the dependency tree command: 'pip show OpenCanary'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}