CVE-2021-41230: Github.com/pomerium/pomerium OIDC Claims Not Updated From Vulnerability
MODERATECVE-2021-41230 is a MODERATE (CVSS 5.3) oidc claims not updated from vulnerability (CWE-863: Incorrect Authorization) affecting Github.com/pomerium/pomerium libraries in the Go ecosystem. The issue involves oidc claims not updated from identity provider in pomerium. Remediation is available by upgrading affected packages to version 0.15.6.
CVE-2021-41230 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2021-41230
To remediate this vulnerability, upgrade all affected Github.com/pomerium/pomerium dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/pomerium/pomerium to 0.15.6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/pomerium/pomerium
How to Check if You Are Affected
To determine whether your application is affected by CVE-2021-41230, inspect your project dependencies for Github.com/pomerium/pomerium:
inspect dependencies for github.com/pomerium/pomerium
Analyze the terminal output to locate any version of Github.com/pomerium/pomerium in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.15.6), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In Github.com/pomerium/pomerium, 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-41230 Affected Github.com/pomerium/pomerium Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/pomerium/pomerium
|
Go |
≥ 0.14.0
< 0.15.6
|
0.15.6
|
References
Frequently Asked Questions
What is CVE-2021-41230?
Which Github.com/pomerium/pomerium versions are affected?
What version fixes CVE-2021-41230?
Is github.com/pomerium/pomerium affected?
What is the CVSS score of CVE-2021-41230?
What CWE is associated with CVE-2021-41230?
How can I check Go dependencies for CVE-2021-41230?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-j6wp-3859-vxfg",
"modified" : "2021-11-08T21:37:07Z",
"published" : "2021-11-10T16:52:24Z",
"aliases" : [ "CVE-2021-41230" ],
"summary" : "OIDC claims not updated from Identity Provider in Pomerium",
"details" : "### Impact\nChanges to the OIDC claims of a user after initial login are not reflected in policy evaluation when using [`allowed_idp_claims`](https://www.pomerium.com/reference/#allowed-idp-claims) as part of policy. If using `allowed_idp_claims` and a user's claims are changed, Pomerium can make incorrect authorization decisions.\n\n### Patches\nv0.15.6\n\n### Workarounds\n- Clear data on `databroker` service by clearing redis or restarting the in-memory databroker to force claims to be updated\n\n### References\nhttps://github.com/pomerium/pomerium/pull/2724\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [Pomerium](https://github.com/pomerium/pomerium)\n* Email us at [security@pomerium.com](mailto:security@pomerium.com)\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/pomerium/pomerium"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.14.0"
}, {
"fixed" : "0.15.6"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/pomerium/pomerium/security/advisories/GHSA-j6wp-3859-vxfg"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-41230"
}, {
"type" : "WEB",
"url" : "https://github.com/pomerium/pomerium/pull/2724"
}, {
"type" : "WEB",
"url" : "https://github.com/pomerium/pomerium/commit/f20542c4bf2cc691e4c324f7ec79e02e46d95511"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pomerium/pomerium"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2021-0258"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-863" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-11-08T21:37:07Z",
"nvd_published_at" : "2021-11-05T23:15:00Z"
}
}