CVE-2022-31044: Rundeck Rundeck's Key Storage Converter Plugin Vulnerability
HIGHCVE-2022-31044 is a HIGH (CVSS 7.5) rundeck's key storage converter plugin vulnerability (CWE-256: Plaintext Storage of a Password) affecting Rundeck libraries in the Maven ecosystem. The issue involves rundeck's key storage converter plugin mechanism's encryption layer not working in 4.2.0, 4.2.1, 4.3.0. Remediation is available by upgrading affected packages to version 4.2.2, 4.3.1.
CVE-2022-31044 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2022-31044
To remediate this vulnerability, upgrade all affected Rundeck dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.rundeck</groupId>
<artifactId>rundeck</artifactId>
<version>4.2.2</version>
</dependency>
<dependency>
<groupId>org.rundeck</groupId>
<artifactId>rundeck</artifactId>
<version>4.3.1</version>
</dependency>
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-2022-31044, 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 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.2.2), 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-256: Plaintext Storage of a Password, where the product stores a password in plaintext within resources such as memory or files. In Rundeck, 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
CVE-2022-31044 Affected Rundeck Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.rundeck:rundeck
|
Maven |
≥ 4.2.0
< 4.2.2
|
4.2.2
|
|
org.rundeck:rundeck
|
Maven |
≥ 4.3.0
< 4.3.1
|
4.3.1
|
References
Frequently Asked Questions
What is CVE-2022-31044?
Which Rundeck versions are affected?
What version fixes CVE-2022-31044?
Is rundeck affected?
What is the CVSS score of CVE-2022-31044?
What CWE is associated with CVE-2022-31044?
How can I check Maven dependencies for CVE-2022-31044?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hprf-rrwq-jm5c",
"modified" : "2022-07-21T15:01:00Z",
"published" : "2022-06-17T20:51:48Z",
"aliases" : [ "CVE-2022-31044" ],
"summary" : "Rundeck's Key Storage converter plugin mechanism's encryption layer not working in 4.2.0, 4.2.1, 4.3.0",
"details" : "### Impact\n\nThe Key Storage converter plugin mechanism was not enabled correctly in Rundeck 4.2.0 and 4.2.1, resulting in use of the encryption layer for Key Storage possibly not working. Any credentials created or overwritten using Rundeck 4.2.0 or 4.2.1 might result in them being written in plaintext to the backend storage.\n\nIf you are using a \"[Storage Converter](https://docs.rundeck.com/docs/manual/key-storage/key-storage.html#key-data-storage-converter)\" plugin, such as `jasypt-encryption` configured via the `rundeck.storage.converter.1.type=jasypt-encryption` setting, and you installed 4.2.0 or 4.2.1 then please upgrade to one of the patched versions.\n\nIf you *do not* use a \"[Storage Converter](https://docs.rundeck.com/docs/manual/key-storage/key-storage.html#key-data-storage-converter)\" plugin, this would not affect you.\n\n\n### Patches\n\nRundeck 4.3.2 and 4.2.3 have fixed the code and upon upgrade will re-encrypt any plain text values. The fix is also included in 4.4.0 and later releases.\n\nNote: 4.3.0 does not have the vulnerability, but does not include the patch to re-encrypt plain text values if 4.2.0 or 4.2.1 were used. The previously release 4.3.1 and 4.2.2 versions missed some re-encryption use cases that have been fixed in the versions mentioned above.\n\n### Workarounds\n\nTo prevent plaintext credentials from being stored in Rundeck 4.2.0/4.2.1, write access to key storage can be disabled via ACLs. After upgrading to 4.3.1 or later, write access can be restored.\n\nThis aclpolicy document can be used to deny all write access to storage:\n\n```\n---\nby:\n group: '.*'\ncontext:\n application: rundeck\nfor:\n storage:\n - deny:\n - create\n - update\ndescription: deny create or update for storage in application context\n---\nby:\n group: '.*'\ncontext:\n project: .*\nfor:\n storage:\n - deny:\n - create\n - update\ndescription: deny create or update for storage in project context\n```\n\nTo remove plaintext credentials, the metadata of stored keys can be used to detect if the key was stored with encryption enabled or not. In the case of the “jasypt-encryption” plugin, encrypted values will have a metadata field of “jasypt-encryption:encrypted”:”true” in the JSON metadata. If you are using the relational database as your key storage backend (rundeck.storage.provider.1.type=db), you can query for keys that are unencrypted. Here is an example query for Mysql:\n\n```\nselect id,dir,name from storage where json_data not like \"%jasypt-encryption:encrypted\\\":\\\"true%\" and namespace is null and dir like \"keys%\"\n```\n\n### References\n\nConfiguration Settings for Storage Converters: https://docs.rundeck.com/docs/administration/configuration/plugins/configuring.html#storage-converter-plugins\n\nAbout Storage Converters:\nhttps://docs.rundeck.com/docs/manual/key-storage/key-storage.html#key-data-storage-converter\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [our forums](https://community.pagerduty.com/forum/c/process-automation)\n* Enterprise Customers can open a [Support ticket](https://support.rundeck.com)\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.rundeck:rundeck"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.2.0"
}, {
"fixed" : "4.2.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.rundeck:rundeck"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.3.0"
}, {
"fixed" : "4.3.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/rundeck/rundeck/security/advisories/GHSA-hprf-rrwq-jm5c"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-31044"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rundeck/rundeck"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-256" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-06-17T20:51:48Z",
"nvd_published_at" : "2022-06-15T19:15:00Z"
}
}