Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2025-4754 — ash-authentication-phoenix

🟢 CVSS 2.0 — Low ✅ No Known Exploit CWE-613 NVD
2.0
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

ash_authentication_phoenix has Insufficient Session Expiration

Impact

Session tokens remain valid on the server after user logout, creating a security gap where:

  • Compromised tokens (via XSS, network interception, or device theft) continue to work even after the user logs out
  • The sessions stored in the database still expire, limiting the duration during which this could be exploited
  • Users cannot fully invalidate their sessions when logging out from shared or potentially compromised devices
  • by default, changing one's password *does* invalidate all other sessions, so changing your password as a security measure would have been effective
  • May cause compliance issues with security frameworks requiring complete session

Patches

Upgrade 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.

If you do not have the setting require_token_presence_for_authentication? set to true in the tokens section, you will see a separate error:

```

** (Spark.Error.DslError) authentication -> session_identifier:

Must set authentication.session_identifier to either :jti or :unsafe.

...

```

In 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.

Workarounds

You can manually revoke tokens in your logout/2 handler in your auth controller.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. A user must be tricked into taking some action. Rated impact: confidentiality low, integrity low, availability none.

CVSS metrics in full

The score comes from this 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

  • Attack vector: Network — reachable from anywhere that can route to the service.
  • Attack complexity: Low — the attack works reliably, with no preparation.
  • Attack requirements: Present — the target has to be in a particular state for the attack to work.
  • Privileges required: None — an unauthenticated stranger can try it.
  • User interaction: Passive — a victim action is involved, but not a deliberate one.
  • Confidentiality impact: Low — limited, and the attacker does not choose what is affected.
  • Integrity impact: Low — limited, and the attacker does not choose what is affected.
  • Availability impact: None.

Weakness class

CVE-2025-4754 is classified as CWE-613: Insufficient Session Expiration. Sessions stay valid longer than they should, so an old identifier still grants access.

Affected software

CVE-2025-4754 is recorded against 2 packages.

  • ash-authentication-phoenix
  • unknown

Timeline and source

Published on 17 June 2025 and last revised on 30 July 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from NVD.

References

github.com (Advisory)
cna.erlef.org (Web)
github.com (Fix)
github.com (Fix)
hex.pm (Package)

Same weakness in other software

These advisories are the same class of weakness (CWE-613: Insufficient Session Expiration) in other software:

Details

Severity LOW
CVSS Score 2.0
CVSS 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
CWE CWE-613
Public Exploit ✅ No
Source NVD
Published 2025-06-17
Updated 2026-08-20
Modified 2026-07-30

Affected Packages

Software From version Fixed in
ash-authentication-phoenix
unknown

Free Vulnerability Check

Is your site affected by CVE-2025-4754?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against CVE-2025-4754 and other known CVE records.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2025