{"id":"CVE-2025-4754","aliases":["CVE-2025-4754","GHSA-f7gq-h8jv-h3cq","EEF-CVE-2025-4754"],"related":[],"kind":"vulnerability","state":"published","title":"Missing Session Revocation on Logout in ash_authentication_phoenix","summary":"Insufficient Session Expiration vulnerability in team-alembic ash_authentication_phoenix allows a session token captured before sign-out to remain usable afterwards.\n\nThe default sign_out/2 that AshAuthentication.Phoenix.Controller injects into an application's auth controller only calls Plug.Conn.clear_session/1. It never revokes the stored session or bearer tokens, so a token obtained before sign-out, through script injection, interception or device theft, keeps authenticating until its own expiry. Changing the password still revokes it.\n\nThis issue affects ash_authentication_phoenix: from 0.1.0 before 2.10.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Insufficient Session Expiration vulnerability in team-alembic ash_authentication_phoenix allows a session token captured before sign-out to remain usable afterwards.\n\nThe default sign_out/2 that AshAuthentication.Phoenix.Controller injects into an application's auth controller only calls Plug.Conn.clear_session/1. It never revokes the stored session or bearer tokens, so a token obtained before sign-out, through script injection, interception or device theft, keeps authenticating until its own expiry. Changing the password still revokes it.\n\nThis issue affects ash_authentication_phoenix: from 0.1.0 before 2.10.0.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nSession tokens remain valid on the server after user logout, creating a security gap where:\n\n- Compromised tokens (via XSS, network interception, or device theft) continue to work even after the user logs out\n  - The sessions stored in the database still expire, limiting the duration during which this could be exploited\n- Users cannot fully invalidate their sessions when logging out from shared or potentially compromised devices \n  - by default, changing one's password *does* invalidate all other sessions, so changing your password as a security measure would have been effective\n- May cause compliance issues with security frameworks requiring complete session \n### Patches\nUpgrade to version 2.10.0. After upgrading, users must update their AuthController implementation to use the new `clear_session/2` function with their OTP app name. You will be prompted to do so with a compile-time error.\n\nIf you do not have the setting `require_token_presence_for_authentication?` set to `true` in the `tokens` section, you will see a separate error:\n\n```\n** (Spark.Error.DslError) authentication -> session_identifier:\nMust set `authentication.session_identifier` to either `:jti` or `:unsafe`.\n\n...\n```\n\nIn order to revoke sessions on log out when not storing tokens directly in the session, we must have some unique identifier with which to do so. You should prefer to enable `require_token_presence_for_authentication?` if possible, instead of setting this to `:jti`. Note that whatever you do here, if you did not previously have `require_token_presence_for_authentication?` set to `true`, setting it to `true` *or* setting `authentication.session_identifier` to `:jti` will log out all of your currently authenticated users.\n\n### Workarounds\nYou can manually revoke tokens in your `logout/2` handler in your auth controller.","format":"markdown","source":"ghsa"},{"lang":"en","text":"## Summary\n\nInsufficient Session Expiration vulnerability in team-alembic ash_authentication_phoenix allows a session token captured before sign-out to remain usable afterwards.\n\nThe default `sign_out/2` that `AshAuthentication.Phoenix.Controller` injects into an application's auth controller only calls `Plug.Conn.clear_session/1`. It never revokes the stored session or bearer tokens, so a token obtained before sign-out, through script injection, interception or device theft, keeps authenticating until its own expiry. Changing the password still revokes it.\n\nThis issue affects ash_authentication_phoenix: from 0.1.0 before 2.10.0.","format":"markdown","source":"eef"},{"lang":"es","text":"La vulnerabilidad de expiración de sesión insuficiente en el proyecto ash_authentication_phoenix permite el secuestro de sesiones. Esta vulnerabilidad está asociada a los archivos de programa lib/ash_authentication_phoenix/controller.ex. Este problema afecta a ash_authentication_phoenix hasta la versión 2.10.0.","source":"nvd"}],"published":"2025-06-17T14:20:46.000Z","modified":"2026-11-25T06:30:04.735Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","score":2.3,"rating":"LOW"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","score":2.3,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","rating":"LOW"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"}],"cwes":["CWE-613"],"affected":[{"ranges":[{"type":"semver","introduced":"0.1.0","fixed":"2.10.0","status":"affected"}],"vendor":"team-alembic","product":"ash_authentication_phoenix","package":"ash_authentication_phoenix","cpe":"cpe:2.3:a:team-alembic:ash_authentication_phoenix:*:*:*:*:*:*:*:*","repo":"https://github.com/team-alembic/ash_authentication_phoenix","source":"cvelist"},{"ranges":[{"type":"git","introduced":"05ab4f438bf0cd0fdfb279d912bbe0d2c3620e02","fixed":"a3253fb4fc7145aeb403537af1c24d3a8d51ffb1","status":"affected"}],"vendor":"team-alembic","product":"ash_authentication_phoenix","package":"team-alembic/ash_authentication_phoenix","cpe":"cpe:2.3:a:team-alembic:ash_authentication_phoenix:*:*:*:*:*:*:*:*","repo":"https://github.com/team-alembic/ash_authentication_phoenix","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.10.0"}],"ecosystem":"Hex","package":"ash_authentication_phoenix","purl":"pkg:hex/ash_authentication_phoenix","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.1.0","status":"affected","fixed":"2.10.0"}],"ecosystem":"Hex","package":"ash_authentication_phoenix","purl":"pkg:hex/ash_authentication_phoenix","source":"eef"},{"ranges":[{"type":"git","introduced":"05ab4f438bf0cd0fdfb279d912bbe0d2c3620e02","status":"affected","fixed":"a3253fb4fc7145aeb403537af1c24d3a8d51ffb1"}],"repo":"https://github.com/team-alembic/ash_authentication_phoenix","source":"eef"}],"references":[{"url":"https://github.com/team-alembic/ash_authentication_phoenix/security/advisories/GHSA-f7gq-h8jv-h3cq","tags":["advisory","related","vendor-advisory","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2025-4754.html","tags":["related","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2025-4754","tags":["related","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/team-alembic/ash_authentication_phoenix/pull/634","tags":["fix","patch","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://github.com/team-alembic/ash_authentication_phoenix/commit/05ab4f438bf0cd0fdfb279d912bbe0d2c3620e02","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/team-alembic/ash_authentication_phoenix/commit/a3253fb4fc7145aeb403537af1c24d3a8d51ffb1","tags":["fix","patch","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-4754","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/team-alembic/ash_authentication_phoenix","tags":["package"],"sources":["ghsa"]},{"url":"https://hex.pm/packages/ash_authentication_phoenix","tags":["package"],"sources":["eef"]}],"credits":["Jonatan Männchen / EEF","Josh Price / Alembic","Mike Buhot","Zach Daniel","James Harton"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-06-17T14:40:37.216Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-4754","url":"https://www.cve.org/CVERecord?id=CVE-2025-4754","licence":"CVE Terms of Use","modified":"2026-11-19T08:27:34.138Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f7gq-h8jv-h3cq","url":"https://github.com/advisories/GHSA-f7gq-h8jv-h3cq","licence":"CC-BY-4.0","modified":"2026-04-06T23:34:41.331Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2025-4754","url":"https://osv.dev/vulnerability/EEF-CVE-2025-4754","licence":"CC-BY-4.0","modified":"2026-11-25T06:30:04.735Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-4754","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-4754","licence":"Public domain","modified":"2026-09-22T10:17:08.407Z"}],"updatedAt":"2026-11-25T22:58:59.312Z","epss":{"score":0.00615,"percentile":0.50855,"date":"2026-12-02T12:00:21.000Z"}}