CVE-2021-39132: Rundeck core YAML Deserialization Can Run Untrusted Vulnerability

MODERATE
Advisory Identifier: GHSA-q4rf-3fhx-88pf
CVSS 8.8
CWE-502
Published
Advisory Summary

CVE-2021-39132 is a MODERATE (CVSS 8.8) yaml deserialization can run untrusted vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Rundeck core libraries in the Maven ecosystem. The issue involves yaml deserialization can run untrusted code. Remediation is available by upgrading affected packages to version 3.4.3, 3.3.14.

CVE-2021-39132 at a Glance

CVE Identifier CVE-2021-39132
GHSA Identifier GHSA-q4rf-3fhx-88pf
Severity MODERATE
CVSS v3.1 Base Score 8.8
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Rundeck core
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 8.8

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:H/I:H/A:H).

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 High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2021-39132

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

org.rundeck:rundeck-core fixed: 3.4.3
<dependency>
    <groupId>org.rundeck</groupId>
    <artifactId>rundeck-core</artifactId>
    <version>3.4.3</version>
</dependency>
org.rundeck:rundeck-core fixed: 3.3.14
<dependency>
    <groupId>org.rundeck</groupId>
    <artifactId>rundeck-core</artifactId>
    <version>3.3.14</version>
</dependency>
Verify Direct and Transitive Dependencies

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

mvn dependency:tree -Dincludes=org.rundeck

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2021-39132, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.rundeck

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

Note: The mvn dependency:tree -Dincludes=org.rundeck command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Rundeck core, 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 An authorized user can upload a zip-format plugin with a crafted plugin.yaml, or a crafted aclpolicy yaml file, or upload an untrusted project archive with a crafted aclpolicy yaml file, that can cause the server to run untrusted code on Rundeck Community or Enterprise Edition. An authenticated user can make a POST request, that can cause the server to run untrusted code on Rundeck Enterprise Edition. The zip-format plugin issues requires authentication and authorization to these access levels, and affects all Rundeck editions: * `admin` level access to the `system` resource type The ACL Policy yaml file upload issues requires authentication and authorization to these access levels, and affects all Rundeck editions: * `create` `update` or `admin` level access to a `project_acl` resource * `create` `update` or `admin` level access to the `system_acl` resource The unauthorized POST request requires authentication, but no specific authorization, and affects Rundeck Enterprise only. ### Patches Versions 3.4.3, 3.3.14 ### Workarounds Please visit [https://rundeck.com/security](https://rundeck.com/security) for information about specific workarounds. ### For more information If you have any questions or comments about this advisory: * Email us at [security@rundeck.com](mailto:security@rundeck.com) To report security issues to Rundeck please use the form at [https://rundeck.com/security](https://rundeck.com/security) Reporter: Rojan Rijal from Tinder Red Team

CVE-2021-39132 Affected Rundeck core Versions

2 component(s)
Fixed Versions:
3.4.33.3.14
Product / Package Ecosystem Affected Versions Fixed Version
org.rundeck:rundeck-core
Maven
≥ 3.4.0
< 3.4.3
3.4.3
org.rundeck:rundeck-core
Maven
< 3.3.14
3.3.14

References

Frequently Asked Questions

What is CVE-2021-39132?
CVE-2021-39132 is a security vulnerability in Rundeck core involving YAML deserialization can run untrusted code under CWE-502: Deserialization of Untrusted Data.
Which Rundeck core versions are affected?
Affected versions include releases prior to 3.4.3, 3.3.14 across affected packages: org.rundeck:rundeck-core.
What version fixes CVE-2021-39132?
Upgrading to 3.4.3, 3.3.14 (or the latest patched release for your respective branch) resolves the vulnerability.
Is rundeck-core affected?
Yes, org.rundeck:rundeck-core is affected in releases prior to 3.4.3, 3.3.14. Upgrade your dependency to 3.4.3, 3.3.14 or later.
What is the CVSS score of CVE-2021-39132?
CVE-2021-39132 has a CVSS v3.1 base score of 8.8 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2021-39132?
CVE-2021-39132 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check Maven dependencies for CVE-2021-39132?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.rundeck'. 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-q4rf-3fhx-88pf",
  "modified" : "2021-08-30T22:03:16Z",
  "published" : "2021-09-01T18:27:01Z",
  "aliases" : [ "CVE-2021-39132" ],
  "summary" : "YAML deserialization can run untrusted code",
  "details" : "### Impact\n\nAn authorized user can upload a zip-format plugin with a crafted plugin.yaml, or a crafted aclpolicy yaml file, or upload an untrusted project archive with a crafted aclpolicy yaml file, that can cause the server to run untrusted code on Rundeck Community or Enterprise Edition.  An authenticated user can make a POST request, that can cause the server to run untrusted code on Rundeck Enterprise Edition.\n\nThe zip-format plugin issues requires authentication and authorization to these access levels, and affects all Rundeck editions:\n\n* `admin` level access to the `system` resource type\n\nThe ACL Policy yaml file upload issues requires authentication and authorization to these access levels, and affects all Rundeck editions: \n\n* `create` `update` or `admin` level access to a `project_acl` resource\n* `create` `update` or `admin` level access to the `system_acl` resource\n\nThe unauthorized POST request requires authentication, but no specific authorization, and affects Rundeck Enterprise only.\n\n### Patches\nVersions 3.4.3, 3.3.14\n\n### Workarounds\n\nPlease visit [https://rundeck.com/security](https://rundeck.com/security) for information about specific workarounds.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email us at [security@rundeck.com](mailto:security@rundeck.com)\n\nTo report security issues to Rundeck please use the form at [https://rundeck.com/security](https://rundeck.com/security)\n\nReporter: Rojan Rijal from Tinder Red Team",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.rundeck:rundeck-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.4.0"
      }, {
        "fixed" : "3.4.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.rundeck:rundeck-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.3.14"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/rundeck/rundeck/security/advisories/GHSA-q4rf-3fhx-88pf"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-39132"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rundeck/rundeck/commit/850d12e21d22833bc148b7f458d7cb5949f829b6"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/rundeck/rundeck"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-502" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-08-30T22:03:16Z",
    "nvd_published_at" : "2021-08-30T20:15:00Z"
  }
}