{"answers":{"affected":"3 open source packages ship an affected version, including github.com/authelia/authelia/v4.","exploited":"There is no known exploitation of GHSA-x883-2vmg-xwf7 in the wild and no public exploit code.","fix":"Upgrade github.com/authelia/authelia/v4 to 4.38.0 or later.","what":"GHSA-x883-2vmg-xwf7 is a missing authorization vulnerability in github.com/authelia/authelia/v4, published on 22 Apr 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-x883-2vmg-xwf7 and fix it if it is affected.\n\nWhat it is: GHSA-x883-2vmg-xwf7 is a missing authorization vulnerability in github.com/authelia/authelia/v4, published on 22 Apr 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-x883-2vmg-xwf7 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/authelia/authelia/v4 (Go): affected from 4.37.0; fixed in 4.38.0\n- github.com/authelia/authelia/v4 (Go): affected from 4.37.0; fixed in 4.38.0\n- github.com/authelia/authelia/v4 (Go): affected from 4.37.0; fixed in 4.38.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-x883-2vmg-xwf7/ (Markdown: https://insights.sbomify.com/GHSA-x883-2vmg-xwf7/index.md)","id":"GHSA-x883-2vmg-xwf7","markdown":"https://insights.sbomify.com/GHSA-x883-2vmg-xwf7/index.md","name":"GHSA-x883-2vmg-xwf7","record":{"aliases":["GO-2024-2744"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Identity and Access Management","requires_auth":"low_privilege","summary":"Delayed group updates in Authelia's file backend may allow users to retain unauthorized access to resources after group changes.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### 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","ecosystems":["Go"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Authelia's Group Changes may not have the expected results (YAML file backend)","id":"GHSA-x883-2vmg-xwf7","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"missing_authorization","year":"2024"},"n_packages":3,"n_references":null,"packages":[{"ecosystem":"Go","fixed":["4.38.0"],"introduced":["4.37.0"],"last_affected":[],"package":"github.com/authelia/authelia/v4","purl":null,"source":"GHSA-x883-2vmg-xwf7"},{"ecosystem":"Go","fixed":["4.38.0"],"introduced":["4.37.0"],"last_affected":[],"package":"github.com/authelia/authelia/v4","purl":"pkg:golang/github.com/authelia/authelia/v4","source":"GHSA-x883-2vmg-xwf7"},{"ecosystem":"Go","fixed":["4.38.0"],"introduced":["4.37.0"],"last_affected":[],"package":"github.com/authelia/authelia/v4","purl":"pkg:golang/github.com/authelia/authelia/v4","source":"GO-2024-2744"}],"products":null,"published":"2024-04-22","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Delayed group updates in Authelia's file backend may allow users to retain unauthorized access to resources after group changes.","url":"https://insights.sbomify.com/GHSA-x883-2vmg-xwf7/"}