EEF-CVE-2026-139967

Source
https://cna.erlef.org/osv/EEF-CVE-2026-139967.html
Import Source
https://cna.erlef.org/osv/EEF-CVE-2026-139967.json
JSON Data
https://api.osv.dev/v1/vulns/EEF-CVE-2026-139967
Aliases
  • GHSA-m7jx-358r-4v58
  • CVE-2026-139967
Published
2026-12-04T06:38:22Z
Modified
2026-12-04T06:45:03Z
Severity
  • 6.7 (Medium) CVSS_V4 - CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N (Source: CNA) CVSS Calculator
Summary
Plaintext API keys stored in AshAuthentication audit log entries
Details

Summary

Insertion of Sensitive Information into Log File vulnerability in team-alembic ash_authentication allows a reader of the audit log to sign in as any user who has signed in with an API key.

The audit_log add-on records every public argument of an audited action that is not marked sensitive?. The API key sign-in action written by mix ash_authentication.add_strategy.api_key, the API keys guide and the usage rules declares api_key without sensitive?, and nothing required it, so every API key sign-in, including each request AshAuthentication.Strategy.ApiKey.Plug authenticates, stored the plaintext key in the entry's extra_data. The application keeps only key hashes, but anyone who can read the audit table, its backups or an admin view of it obtains working keys. Magic link and confirmation tokens, one-time passwords, and TOTP and recovery codes were stored the same way when the action did not mark them sensitive.

This issue affects ash_authentication: from 4.12.0 before 4.15.2 and from 5.0.0-rc.0 before 5.0.0-rc.19.

Impact

A reader of the audit store takes a logged API key and signs in as its user through the API key strategy, with that user's permissions, until the key is revoked.

Workarounds

Mark the api_key argument of the API key sign-in action sensitive?: true, and do the same for any secret argument of a magic link, OTP, TOTP, recovery code or confirmation action the application defines. Alternatively, add the sign-in action to the audit log's exclude_actions. Neither removes keys already logged; see the solution.

Configurations

The audit_log add-on is enabled and the api_key strategy's sign-in action does not mark its api_key argument sensitive?: true, which is how the generator, the API keys guide and the usage rules write it. The other secrets are exposed only when the action the application defines for them omits sensitive?. Fields named in include_fields are logged by design.

Solutions

Upgrade to 4.15.2 or 5.0.0-rc.19. The audit log then never records a strategy's secret arguments unless include_fields names them, and an API key sign-in action whose argument is not sensitive compiles with a warning.

Upgrading does not remove keys already logged. Treat every API key used while the add-on was enabled as exposed and revoke it; the middle segment of each key encodes the id of its API key record. Remove the keys from existing entries, for example on PostgreSQL with UPDATE <audit_log_table> SET extra_data = extra_data #- '{params,api_key}' WHERE extra_data->'params' ? 'api_key';, and account for backups, replicas and exports of the audit table.

Database specific
{
    "$schema":  "https://cna.erlef.org/schemas/osv/record-0.1.0.json",
    "capec_ids":  [
        "CAPEC-560"
    ],
    "cpe_ids":  [
        "cpe:2.3:a:team-alembic:ash_authentication:*:*:*:*:*:*:*:*"
    ],
    "cwe_ids":  [
        "CWE-532"
    ]
}
References
Credits
    • Glenn Rempe - REPORTER
    • Zach Daniel - COORDINATOR
    • Glenn Rempe - REMEDIATION_DEVELOPER
    • Zach Daniel - REMEDIATION_REVIEWER

Affected packages

Hex / ash_authentication

Package

Name
ash_authentication
Purl
pkg:hex/ash_authentication

Affected ranges

Type
SEMVER
Events
Introduced
4.12.0
Fixed
4.15.2
Type
SEMVER
Events
Introduced
5.0.0-rc.0
Fixed
5.0.0-rc.19

Affected versions

4.*
4.12.0
4.13.0
4.13.1
4.13.2
4.13.3
4.13.4
4.13.5
4.13.6
4.13.7
4.14.0
4.14.1
4.14.2
4.15.0
4.15.1
5.*
5.0.0-rc.0
5.0.0-rc.1
5.0.0-rc.2
5.0.0-rc.3
5.0.0-rc.4
5.0.0-rc.5
5.0.0-rc.6
5.0.0-rc.7
5.0.0-rc.8
5.0.0-rc.9
5.0.0-rc.10
5.0.0-rc.11
5.0.0-rc.12
5.0.0-rc.13
5.0.0-rc.14
5.0.0-rc.15
5.0.0-rc.16
5.0.0-rc.17
5.0.0-rc.18

Ecosystem specific

{
    "$schema":  "https://cna.erlef.org/schemas/osv/affected-0.1.0.json",
    "modules":  [
        "'Elixir.AshAuthentication.AddOn.AuditLog.Transformer'",
        "'Elixir.AshAuthentication.AddOn.AuditLog.Auditor'"
    ],
    "program_files":  [
        "lib/ash_authentication/add_ons/audit_log/transformer.ex",
        "lib/ash_authentication/add_ons/audit_log/auditor.ex"
    ],
    "program_routines":  [
        "'Elixir.AshAuthentication.AddOn.AuditLog.Transformer':persist_logged_fields/3",
        "'Elixir.AshAuthentication.AddOn.AuditLog.Auditor':get_params/2"
    ]
}

Database specific

$schema
"https://cna.erlef.org/schemas/osv/affected-0.1.0.json"
modules
[
    "'Elixir.AshAuthentication.AddOn.AuditLog.Transformer'",
    "'Elixir.AshAuthentication.AddOn.AuditLog.Auditor'"
]
program_files
[
    "lib/ash_authentication/add_ons/audit_log/transformer.ex",
    "lib/ash_authentication/add_ons/audit_log/auditor.ex"
]
program_routines
[
    "'Elixir.AshAuthentication.AddOn.AuditLog.Transformer':persist_logged_fields/3",
    "'Elixir.AshAuthentication.AddOn.AuditLog.Auditor':get_params/2"
]
source
"https://cna.erlef.org/osv/EEF-CVE-2026-139967.json"

Git / github.com/team-alembic/ash_authentication

Affected ranges

Type
GIT
Repo
https://github.com/team-alembic/ash_authentication
Events

Affected versions

5.*
5.0.0-rc.8
5.0.0-rc.9
v4.*
v4.12.0
v4.13.0
v4.13.1
v4.13.2
v4.13.3
v4.13.4
v4.13.5
v4.13.6
v4.13.7
v4.14.0
v4.14.1
v4.14.2
v4.15.0
v4.15.1
v5.*
v5.0.0-rc.0
v5.0.0-rc.1
v5.0.0-rc.10
v5.0.0-rc.11
v5.0.0-rc.12
v5.0.0-rc.13
v5.0.0-rc.14
v5.0.0-rc.15
v5.0.0-rc.16
v5.0.0-rc.17
v5.0.0-rc.18
v5.0.0-rc.2
v5.0.0-rc.3
v5.0.0-rc.4
v5.0.0-rc.5
v5.0.0-rc.6
v5.0.0-rc.7

Database specific

$schema
"https://cna.erlef.org/schemas/osv/affected-0.1.0.json"
modules
[
    "'Elixir.AshAuthentication.AddOn.AuditLog.Transformer'",
    "'Elixir.AshAuthentication.AddOn.AuditLog.Auditor'"
]
program_files
[
    "lib/ash_authentication/add_ons/audit_log/transformer.ex",
    "lib/ash_authentication/add_ons/audit_log/auditor.ex"
]
program_routines
[
    "'Elixir.AshAuthentication.AddOn.AuditLog.Transformer':persist_logged_fields/3",
    "'Elixir.AshAuthentication.AddOn.AuditLog.Auditor':get_params/2"
]
source
"https://cna.erlef.org/osv/EEF-CVE-2026-139967.json"