CVE-2021-21479: Scimono server Remote Code Execution Vulnerability
HIGHCVE-2021-21479 is a HIGH remote code execution vulnerability (CWE-917: Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')) affecting Scimono server libraries in the Maven ecosystem. The issue involves remote code execution in scimono. Remediation is available by upgrading affected packages to version 0.0.19.
CVE-2021-21479 at a Glance
How to Fix CVE-2021-21479
To remediate this vulnerability, upgrade all affected Scimono server 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>com.sap.scimono</groupId>
<artifactId>scimono-server</artifactId>
<version>0.0.19</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=com.sap.scimono
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2021-21479, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=com.sap.scimono
Analyze the terminal output to locate any version of Scimono server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.19), your application is affected.
Note: The mvn dependency:tree -Dincludes=com.sap.scimono 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-917: Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection'), where the product constructs all or part of an expression language (el) statement in a framework such as a java server page (jsp) using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended el statement before it is executed. In Scimono server, 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-2021-21479 Affected Scimono server Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
com.sap.scimono:scimono-server
|
Maven |
< 0.0.19
|
0.0.19
|
References
Frequently Asked Questions
What is CVE-2021-21479?
Which Scimono server versions are affected?
What version fixes CVE-2021-21479?
Is scimono-server affected?
What CWE is associated with CVE-2021-21479?
How can I check Maven dependencies for CVE-2021-21479?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-29q4-gxjq-rx5c",
"modified" : "2021-02-10T01:48:45Z",
"published" : "2021-02-10T02:31:53Z",
"aliases" : [ "CVE-2021-21479" ],
"summary" : "Remote Code Execution in SCIMono",
"details" : "### Impact\nIt is possible for attacker to inject and execute java expression and compromising the availability and integrity of the system.\n\n### Patches\nThe issue was fixed on [0.0.19 version](https://mvnrepository.com/artifact/com.sap.scimono/scimono-server/0.0.19)",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "com.sap.scimono:scimono-server"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.0.19"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/SAP/scimono/security/advisories/GHSA-29q4-gxjq-rx5c"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-21479"
}, {
"type" : "WEB",
"url" : "https://github.com/SAP/scimono/commit/413b5d75fa94e77876af0e47be76475a23745b80"
}, {
"type" : "WEB",
"url" : "https://mvnrepository.com/artifact/com.sap.scimono/scimono-server/0.0.19"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-59", "CWE-62", "CWE-690", "CWE-74", "CWE-77", "CWE-917" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-02-10T01:48:45Z",
"nvd_published_at" : "2021-02-09T21:15:00Z"
}
}