CVE-2021-27582: Openid connect parent Autobinding Vulnerability Vulnerability
CRITICALCVE-2021-27582 is a CRITICAL (CVSS 9.1) autobinding vulnerability vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Openid connect parent libraries in the Maven ecosystem. The issue involves autobinding vulnerability in mitreid connect. Remediation is available in the latest vendor maintenance releases.
CVE-2021-27582 at a Glance
Security Impact
CVSS: 9.1
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:H/A:N).
How to Fix CVE-2021-27582
To remediate this vulnerability, upgrade all affected Openid connect parent 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.mitre</groupId>
<artifactId>openid-connect-parent</artifactId>
<version>Latest secure release</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.mitre
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2021-27582, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.mitre
Analyze the terminal output to locate any version of Openid connect parent in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.mitre 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-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where the product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. In Openid connect parent, 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-27582 Affected Openid connect parent Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.mitre:openid-connect-parent
|
Maven |
≤ 1.3.3
|
|
References
Frequently Asked Questions
What is CVE-2021-27582?
Which Openid connect parent versions are affected?
What version fixes CVE-2021-27582?
Is openid-connect-parent affected?
What is the CVSS score of CVE-2021-27582?
What CWE is associated with CVE-2021-27582?
How can I check Maven dependencies for CVE-2021-27582?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8p36-q63g-68qh",
"modified" : "2022-12-03T03:46:40Z",
"published" : "2021-05-13T22:31:22Z",
"aliases" : [ "CVE-2021-27582" ],
"summary" : "Autobinding vulnerability in MITREid Connect",
"details" : "org/mitre/oauth2/web/OAuthConfirmationController.java in the OpenID Connect server implementation for MITREid Connect through 1.3.3 contains a Mass Assignment (aka Autobinding) vulnerability. This arises due to unsafe usage of the @ModelAttribute annotation during the OAuth authorization flow, in which HTTP request parameters affect an authorizationRequest.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.mitre:openid-connect-parent"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.3.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-27582"
}, {
"type" : "WEB",
"url" : "https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/commit/7eba3c12fed82388f917e8dd9b73e86e3a311e4c"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server"
}, {
"type" : "WEB",
"url" : "https://portswigger.net/research/hidden-oauth-attack-vectors"
}, {
"type" : "WEB",
"url" : "http://agrrrdog.blogspot.com/2017/03/autobinding-vulns-and-spring-mvc.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1321", "CWE-915" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-07T18:32:32Z",
"nvd_published_at" : "2021-02-23T18:15:00Z"
}
}