CVE-2022-3225: @budibase/worker Remote Code Execution Vulnerability

MODERATE
Advisory Identifier: GHSA-x92g-49gh-63qm
CVSS 5.7
CWE-284 CWE-913
Published
Advisory Summary

CVE-2022-3225 is a MODERATE (CVSS 5.7) remote code execution vulnerability (CWE-284: Improper Access Control) affecting @budibase/worker libraries in the npm ecosystem. The issue involves budibase improper control of dynamically-managed code resources vulnerability. Remediation is available by upgrading affected packages to version 1.3.20.

CVE-2022-3225 at a Glance

CVE Identifier CVE-2022-3225
GHSA Identifier GHSA-x92g-49gh-63qm
Severity MODERATE
CVSS v3.1 Base Score 5.7
CWE Classification CWE-284: Improper Access Control
Affected Product @budibase/worker
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 5.7

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:R/S:U/C:N/I:H/A:N).

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

How to Fix CVE-2022-3225

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

@budibase/worker fixed: 1.3.20
npm install @budibase/worker@1.3.20
@budibase/builder fixed: 1.3.20
npm install @budibase/builder@1.3.20
@budibase/bbui fixed: 1.3.20
npm install @budibase/bbui@1.3.20
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 @budibase/worker

How to Check if You Are Affected

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

npm ls @budibase/worker

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

Note: The npm ls @budibase/worker 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 CWE-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In @budibase/worker, 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

Improper Control of Dynamically-Managed Code Resources in GitHub repository budibase/budibase prior to 1.3.20.

CVE-2022-3225 Affected @budibase/worker Versions

3 component(s)
Fixed Versions:
1.3.20
Product / Package Ecosystem Affected Versions Fixed Version
@budibase/worker
npm
< 1.3.20
1.3.20
@budibase/builder
npm
< 1.3.20
1.3.20
@budibase/bbui
npm
< 1.3.20
1.3.20

References

Frequently Asked Questions

What is CVE-2022-3225?
CVE-2022-3225 is a security vulnerability in @budibase/worker involving Budibase Improper Control of Dynamically-Managed Code Resources vulnerability under CWE-284: Improper Access Control.
Which @budibase/worker versions are affected?
Affected versions include releases prior to 1.3.20 across affected packages: @budibase/worker, @budibase/builder, @budibase/bbui.
What version fixes CVE-2022-3225?
Upgrading to 1.3.20 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @budibase/worker affected?
Yes, @budibase/worker is affected in releases prior to 1.3.20. Upgrade your dependency to 1.3.20 or later.
Is @budibase/builder affected?
Yes, @budibase/builder is affected in releases prior to 1.3.20. Upgrade your dependency to 1.3.20 or later.
What is the CVSS score of CVE-2022-3225?
CVE-2022-3225 has a CVSS v3.1 base score of 5.7 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2022-3225?
CVE-2022-3225 is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check npm dependencies for CVE-2022-3225?
Run the dependency tree command: 'npm ls @budibase/worker'. 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-x92g-49gh-63qm",
  "modified" : "2026-02-27T20:47:54Z",
  "published" : "2022-09-17T00:00:34Z",
  "aliases" : [ "CVE-2022-3225" ],
  "summary" : "Budibase Improper Control of Dynamically-Managed Code Resources vulnerability",
  "details" : "Improper Control of Dynamically-Managed Code Resources in GitHub repository budibase/budibase prior to 1.3.20.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@budibase/worker"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.3.20"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@budibase/builder"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.3.20"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@budibase/bbui"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.3.20"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-3225"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/budibase/budibase/commit/d35864be0854216693a01307f81ffcabf6d549df"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Budibase/budibase/releases/tag/v1.3.20"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/budibase/budibase"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.dev/bounties/a13a56b7-04da-4560-b8ec-0d637d12a245"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-284", "CWE-913" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-08-03T16:41:39Z",
    "nvd_published_at" : "2022-09-16T17:15:00Z"
  }
}