GHSA-x883-2vmg-xwf7: Github.com/authelia/authelia/v4 Authelia's Group Changes May Not Vulnerability
LOWGHSA-x883-2vmg-xwf7 is a LOW (CVSS 1.6) authelia's group changes may not vulnerability (CWE-281: Improper Preservation of Permissions) affecting Github.com/authelia/authelia/v4 libraries in the Go ecosystem. The issue involves authelia's group changes may not have the expected results (yaml file backend). Remediation is available by upgrading affected packages to version 4.38.0.
GHSA-x883-2vmg-xwf7 at a Glance
Security Impact
CVSS: 1.6
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:U/C:L/I:N/A:N).
How to Fix GHSA-x883-2vmg-xwf7
To remediate this vulnerability, upgrade all affected Github.com/authelia/authelia/v4 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/authelia/authelia/v4 to 4.38.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/authelia/authelia/v4
How to Check if You Are Affected
To determine whether your application is affected by GHSA-x883-2vmg-xwf7, inspect your project dependencies for Github.com/authelia/authelia/v4:
inspect dependencies for github.com/authelia/authelia/v4
Analyze the terminal output to locate any version of Github.com/authelia/authelia/v4 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.38.0), 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-281: Improper Preservation of Permissions, where the product does not preserve permissions or incorrectly preserves permissions when copying, restoring, or sharing objects, which can cause them to have less restrictive permissions than intended. In Github.com/authelia/authelia/v4, 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
GHSA-x883-2vmg-xwf7 Affected Github.com/authelia/authelia/v4 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/authelia/authelia/v4
|
Go |
≥ 4.37.0
< 4.38.0
|
4.38.0
|
References
Frequently Asked Questions
What is GHSA-x883-2vmg-xwf7?
Which Github.com/authelia/authelia/v4 versions are affected?
What version fixes GHSA-x883-2vmg-xwf7?
Is github.com/authelia/authelia/v4 affected?
What is the CVSS score of GHSA-x883-2vmg-xwf7?
What CWE is associated with GHSA-x883-2vmg-xwf7?
How can I check Go dependencies for GHSA-x883-2vmg-xwf7?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-x883-2vmg-xwf7",
"modified" : "2024-04-22T15:52:39Z",
"published" : "2024-04-22T15:52:39Z",
"aliases" : [ ],
"summary" : "Authelia's Group Changes may not have the expected results (YAML file backend)",
"details" : "### Impact\n\nUnder very specific conditions changes to a users groups may not have the expected results.\n\nThe specific conditions are:\n\n* The file authentication backend is being used.\n* The [watch](https://www.authelia.com/configuration/first-factor/file/#watch) option is set to true.\n* The [refresh_interval](https://www.authelia.com/configuration/first-factor/introduction/#refresh_interval) is configured to a non-disabled value.\n* The users groups are adjusted by an administrator.\n* The user attempts to access a resource that their groups previously had access to but their new groups do not have access to.\n\nWhen these conditions are met administrators may find the changes are not taken into account by access control for longer than expected periods. While this may not necessarily be a security vulnerability it's security-adjacent and because of the unexpected nature of it and our dedication to a security-first culture we feel it's important to make users aware of this behaviour utilizing a security advisory and the existence of a fix.\n\nThis:\n\n* Can not have an Impact for Unauthenticated Users.\n* Can not have an Impact for Configurations utilizing the LDAP Backend.\n* Can not be directly or indirectly caused by a users or third parties actions.\n\n### Patches\n\nThis behaviour was identified **_after_** it was inadvertently fixed in the `master` branch during the multi-cookie domain rework (i.e. between feature releases). A patch for prior versions can be provided upon request. The fix was to ensure the details are updated regardless of backend, it was a small oversight in previous functionality which made refreshing ineffectual prior to v4.37.0.\n\n### Workarounds\n\nEnsure you restart between user database changes.\n\n### References\n\n* https://github.com/authelia/authelia/blob/v4.37.5/internal/handlers/handler_verify.go#L376-L394\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/authelia/authelia/v4"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.37.0"
}, {
"fixed" : "4.38.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/authelia/authelia/security/advisories/GHSA-x883-2vmg-xwf7"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/authelia/authelia"
}, {
"type" : "WEB",
"url" : "https://github.com/authelia/authelia/blob/v4.37.5/internal/handlers/handler_verify.go#L376-L394"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-281" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-22T15:52:39Z",
"nvd_published_at" : null
}
}