CVE-2024-29316: Nodebb Incorrect Access Control Vulnerability

MODERATE
Advisory Identifier: GHSA-qc99-r4wh-c8h6
CVSS 6.3
Published
Advisory Summary

CVE-2024-29316 is a MODERATE (CVSS 6.3) incorrect access control vulnerability (General Security Weakness) affecting Nodebb libraries in the npm ecosystem. The issue involves incorrect access control in nodebb. Remediation is available by upgrading affected packages to version 3.6.7.

CVE-2024-29316 at a Glance

CVE Identifier CVE-2024-29316
GHSA Identifier GHSA-qc99-r4wh-c8h6
Severity MODERATE
CVSS v3.1 Base Score 6.3
CWE Classification General Security Weakness
Affected Product Nodebb
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 6.3

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

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

How to Fix CVE-2024-29316

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

nodebb fixed: 3.6.7
npm install nodebb@3.6.7
Verify Direct and Transitive Dependencies

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

npm ls nodebb

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2024-29316, inspect your project dependencies using npm:

npm ls nodebb

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

Note: The npm ls nodebb command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Nodebb, 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

In NodeBB prior to 3.6.7 an attacker was able to access the restricted tabs for the Admin group which are only allowed the the administrators.

CVE-2024-29316 Affected Nodebb Versions

1 component(s)
Fixed Versions:
3.6.7
Product / Package Ecosystem Affected Versions Fixed Version
nodebb
npm
< 3.6.7
3.6.7

References

Frequently Asked Questions

What is CVE-2024-29316?
CVE-2024-29316 is a security vulnerability in Nodebb involving Incorrect Access Control in NodeBB under General Security Weakness.
Which Nodebb versions are affected?
Affected versions include releases prior to 3.6.7 across affected packages: nodebb.
What version fixes CVE-2024-29316?
Upgrading to 3.6.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is nodebb affected?
Yes, nodebb is affected in releases prior to 3.6.7. Upgrade your dependency to 3.6.7 or later.
What is the CVSS score of CVE-2024-29316?
CVE-2024-29316 has a CVSS v3.1 base score of 6.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2024-29316?
CVE-2024-29316 is classified under General Security Weakness.
How can I check npm dependencies for CVE-2024-29316?
Run the dependency tree command: 'npm ls nodebb'. 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-qc99-r4wh-c8h6",
  "modified" : "2024-11-18T20:02:52Z",
  "published" : "2024-03-29T00:30:34Z",
  "aliases" : [ "CVE-2024-29316" ],
  "summary" : "Incorrect Access Control in NodeBB",
  "details" : "In NodeBB prior to 3.6.7 an attacker was able to access the restricted tabs for the Admin group which are only allowed the the administrators.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "nodebb"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.6.7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-29316"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/NodeBB/NodeBB"
  }, {
    "type" : "WEB",
    "url" : "https://medium.com/%40krityamkarma858041/broken-access-control-nodebb-v3-6-7-eebc59c24deb"
  }, {
    "type" : "WEB",
    "url" : "https://nodebb.org/bounty"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-11-18T20:02:52Z",
    "nvd_published_at" : "2024-03-28T23:15:46Z"
  }
}