CVE-2024-56362: Github.com/navidrome/navidrome Navidrome Stores JWT Secret Vulnerability

HIGH
Advisory Identifier: GHSA-xwx7-p63r-2rj8
CVSS 7.1
CWE-312
Published
Advisory Summary

CVE-2024-56362 is a HIGH (CVSS 7.1) navidrome stores jwt secret vulnerability (CWE-312: Cleartext Storage of Sensitive Information) affecting Github.com/navidrome/navidrome libraries in the Go ecosystem. The issue involves navidrome stores jwt secret in plaintext in navidrome.db. Remediation is available by upgrading affected packages to version 0.54.1.

CVE-2024-56362 at a Glance

CVE Identifier CVE-2024-56362
GHSA Identifier GHSA-xwx7-p63r-2rj8
Severity HIGH
CVSS v3.1 Base Score 7.1
CWE Classification CWE-312: Cleartext Storage of Sensitive Information
Affected Product Github.com/navidrome/navidrome
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2024-56362

To remediate this vulnerability, upgrade all affected Github.com/navidrome/navidrome dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/navidrome/navidrome fixed: 0.54.1
Upgrade github.com/navidrome/navidrome to 0.54.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/navidrome/navidrome

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-56362, inspect your project dependencies for Github.com/navidrome/navidrome:

inspect dependencies for github.com/navidrome/navidrome

Analyze the terminal output to locate any version of Github.com/navidrome/navidrome in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.54.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-312: Cleartext Storage of Sensitive Information, where the product stores sensitive information in cleartext within a resource that might be accessible to another control sphere. In Github.com/navidrome/navidrome, 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

Navidrome stores the JWT secret in plaintext in the `navidrome.db` database file under the `property` table. This practice introduces a security risk because anyone with access to the database file can retrieve the secret. The JWT secret is critical for the authentication and authorization system. If exposed, an attacker could: - Forge valid tokens to impersonate users, including administrative accounts. - Gain unauthorized access to sensitive data or perform privileged actions. This vulnerability has been tested on the latest version of Navidrome and poses a significant risk in environments where the database file is not adequately secured. ![image](https://github.com/user-attachments/assets/29aae867-f21f-4d70-bda0-d2bb87d754d9)

CVE-2024-56362 Affected Github.com/navidrome/navidrome Versions

1 component(s)
Fixed Versions:
0.54.1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/navidrome/navidrome
Go
< 0.54.1
0.54.1

References

Frequently Asked Questions

What is CVE-2024-56362?
CVE-2024-56362 is a security vulnerability in Github.com/navidrome/navidrome involving Navidrome Stores JWT Secret in Plaintext in navidrome.db under CWE-312: Cleartext Storage of Sensitive Information.
Which Github.com/navidrome/navidrome versions are affected?
Affected versions include releases prior to 0.54.1 across affected packages: github.com/navidrome/navidrome.
What version fixes CVE-2024-56362?
Upgrading to 0.54.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/navidrome/navidrome affected?
Yes, github.com/navidrome/navidrome is affected in releases prior to 0.54.1. Upgrade your dependency to 0.54.1 or later.
What is the CVSS score of CVE-2024-56362?
CVE-2024-56362 has a CVSS v3.1 base score of 7.1 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2024-56362?
CVE-2024-56362 is classified under CWE-312: Cleartext Storage of Sensitive Information (The product stores sensitive information in cleartext within a resource that might be accessible to another control sphere.).
How can I check Go dependencies for CVE-2024-56362?
Run the dependency tree command: 'inspect dependencies for github.com/navidrome/navidrome'. 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-xwx7-p63r-2rj8",
  "modified" : "2025-01-15T20:47:44Z",
  "published" : "2024-12-23T20:17:44Z",
  "aliases" : [ "CVE-2024-56362" ],
  "summary" : "Navidrome Stores JWT Secret in Plaintext in navidrome.db",
  "details" : "Navidrome stores the JWT secret in plaintext in the `navidrome.db` database file under the `property` table. This practice introduces a security risk because anyone with access to the database file can retrieve the secret.\nThe JWT secret is critical for the authentication and authorization system. If exposed, an attacker could:\n- Forge valid tokens to impersonate users, including administrative accounts.\n- Gain unauthorized access to sensitive data or perform privileged actions.\nThis vulnerability has been tested on the latest version of Navidrome and poses a significant risk in environments where the database file is not adequately secured.\n\n![image](https://github.com/user-attachments/assets/29aae867-f21f-4d70-bda0-d2bb87d754d9)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/navidrome/navidrome"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.54.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.53.3"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/navidrome/navidrome/security/advisories/GHSA-xwx7-p63r-2rj8"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-56362"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/navidrome/navidrome/commit/7f030b0859653593fd2ac0df69f4a313f9caf9ff"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/navidrome/navidrome/commit/9cbdb20a318a49daf95888b1fd207d4d729b55f1"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/navidrome/navidrome"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/navidrome/navidrome/releases/tag/v0.54.1"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2024-3357"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-312" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-12-23T20:17:44Z",
    "nvd_published_at" : "2024-12-23T18:15:07Z"
  }
}