{"containers":{"cna":{"affected":[{"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:team-alembic:ash_authentication:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.AshAuthentication.Strategy.Password.Transformer'","'Elixir.AshAuthentication.Strategy.MagicLink.Verifier'","'Elixir.AshAuthentication.Strategy.Otp.Verifier'","'Elixir.Mix.Tasks.AshAuthentication.AddStrategy.Otp'"],"packageName":"ash_authentication","packageURL":"pkg:hex/ash_authentication","product":"ash_authentication","programFiles":["lib/ash_authentication/strategies/password/transformer.ex","lib/ash_authentication/strategies/magic_link/verifier.ex","lib/ash_authentication/strategies/otp/verifier.ex","lib/mix/tasks/ash_authentication.add_strategy.otp.ex"],"programRoutines":[{"name":"'Elixir.AshAuthentication.Strategy.Password.Transformer':transform/2"},{"name":"'Elixir.AshAuthentication.Strategy.MagicLink.Verifier':verify/2"},{"name":"'Elixir.AshAuthentication.Strategy.Otp.Verifier':verify/2"},{"name":"'Elixir.Mix.Tasks.AshAuthentication.AddStrategy.Otp':igniter/1"}],"repo":"https://github.com/team-alembic/ash_authentication","vendor":"team-alembic","versions":[{"lessThan":"5.0.0-rc.16","status":"affected","version":"5.0.0-rc.4","versionType":"semver"}]},{"collectionURL":"https://github.com","cpes":["cpe:2.3:a:team-alembic:ash_authentication:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.AshAuthentication.Strategy.Password.Transformer'","'Elixir.AshAuthentication.Strategy.MagicLink.Verifier'","'Elixir.AshAuthentication.Strategy.Otp.Verifier'","'Elixir.Mix.Tasks.AshAuthentication.AddStrategy.Otp'"],"packageName":"team-alembic/ash_authentication","packageURL":"pkg:github/team-alembic/ash_authentication","product":"ash_authentication","programFiles":["lib/ash_authentication/strategies/password/transformer.ex","lib/ash_authentication/strategies/magic_link/verifier.ex","lib/ash_authentication/strategies/otp/verifier.ex","lib/mix/tasks/ash_authentication.add_strategy.otp.ex"],"programRoutines":[{"name":"'Elixir.AshAuthentication.Strategy.Password.Transformer':transform/2"},{"name":"'Elixir.AshAuthentication.Strategy.MagicLink.Verifier':verify/2"},{"name":"'Elixir.AshAuthentication.Strategy.Otp.Verifier':verify/2"},{"name":"'Elixir.Mix.Tasks.AshAuthentication.AddStrategy.Otp':igniter/1"}],"repo":"https://github.com/team-alembic/ash_authentication","vendor":"team-alembic","versions":[{"lessThan":"7117b5da5b73ee4cdb372e4adfbaff409b527125","status":"affected","version":"800caa0d4a5bee1f28ad427f4c12fab72003a577","versionType":"git"}]}],"configurations":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>A password, magic link or OTP strategy sets <code>brute_force_strategy</code> and one of its protected actions (password sign-in, password reset request, magic link request, OTP sign-in or OTP request) is defined on the resource without the matching brute-force preparation, as on resources set up by the installer, the upgrade task or the OTP generator. Alternatively, an OTP strategy sets <code>registration_enabled? true</code> with <code>brute_force_strategy {:preparation, module}</code>. Actions the strategies generate themselves, and the OTP strategy's <code>:rate_limit</code> mode, are not affected.</p>"},{"base64":false,"type":"text/markdown","value":"A password, magic link or OTP strategy sets `brute_force_strategy` and one of its protected actions (password sign-in, password reset request, magic link request, OTP sign-in or OTP request) is defined on the resource without the matching brute-force preparation, as on resources set up by the installer, the upgrade task or the OTP generator. Alternatively, an OTP strategy sets `registration_enabled? true` with `brute_force_strategy {:preparation, module}`. Actions the strategies generate themselves, and the OTP strategy's `:rate_limit` mode, are not affected."}],"value":"A password, magic link or OTP strategy sets brute_force_strategy and one of its protected actions (password sign-in, password reset request, magic link request, OTP sign-in or OTP request) is defined on the resource without the matching brute-force preparation, as on resources set up by the installer, the upgrade task or the OTP generator. Alternatively, an OTP strategy sets registration_enabled? true with brute_force_strategy {:preparation, module}. Actions the strategies generate themselves, and the OTP strategy's :rate_limit mode, are not affected."}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:team-alembic:ash_authentication:*:*:*:*:*:*:*:*","versionEndExcluding":"5.0.0-rc.16","versionStartIncluding":"5.0.0-rc.4","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}],"credits":[{"lang":"en","type":"finder","value":"azmaveth"},{"lang":"en","type":"reporter","value":"azmaveth"},{"lang":"en","type":"remediation developer","value":"azmaveth"},{"lang":"en","type":"remediation developer","value":"Zach Daniel / Ash Project"}],"dateAssigned":"2026-11-03T02:51:21.000Z","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Improper Restriction of Excessive Authentication Attempts vulnerability in team-alembic ash_authentication allows an unauthenticated attacker to guess passwords and one-time passwords without limit.</p>\n<p>The password, magic link and OTP strategies enforce <code>brute_force_strategy</code> by adding a preparation only to the actions they generate. When the resource defines one of those actions itself, the strategy uses it as written and nothing checked that it carried the preparation, so the setting compiled and applied no limit. The generators produce exactly this: <code>mix ash_authentication.install</code> writes <code>sign_in_with_password</code>, <code>request_password_reset_token</code> and <code>request_magic_link</code>, <code>mix ash_authentication.upgrade</code> then adds <code>brute_force_strategy</code> to those strategies, and <code>mix ash_authentication.add_strategy.otp</code> writes its OTP actions without the preparation. Separately, with <code>registration_enabled? true</code> the OTP sign-in is a create action, which preparations do not run on, so <code>brute_force_strategy {:preparation, module}</code> never applied to it.</p>\n<p>This issue affects ash_authentication: from 5.0.0-rc.4 before 5.0.0-rc.16.</p>"},{"base64":false,"type":"text/markdown","value":"Improper Restriction of Excessive Authentication Attempts vulnerability in team-alembic ash_authentication allows an unauthenticated attacker to guess passwords and one-time passwords without limit.\n\nThe password, magic link and OTP strategies enforce `brute_force_strategy` by adding a preparation only to the actions they generate. When the resource defines one of those actions itself, the strategy uses it as written and nothing checked that it carried the preparation, so the setting compiled and applied no limit. The generators produce exactly this: `mix ash_authentication.install` writes `sign_in_with_password`, `request_password_reset_token` and `request_magic_link`, `mix ash_authentication.upgrade` then adds `brute_force_strategy` to those strategies, and `mix ash_authentication.add_strategy.otp` writes its OTP actions without the preparation. Separately, with `registration_enabled? true` the OTP sign-in is a create action, which preparations do not run on, so `brute_force_strategy {:preparation, module}` never applied to it.\n\nThis issue affects ash_authentication: from 5.0.0-rc.4 before 5.0.0-rc.16."}],"value":"Improper Restriction of Excessive Authentication Attempts vulnerability in team-alembic ash_authentication allows an unauthenticated attacker to guess passwords and one-time passwords without limit.\n\nThe password, magic link and OTP strategies enforce brute_force_strategy by adding a preparation only to the actions they generate. When the resource defines one of those actions itself, the strategy uses it as written and nothing checked that it carried the preparation, so the setting compiled and applied no limit. The generators produce exactly this: mix ash_authentication.install writes sign_in_with_password, request_password_reset_token and request_magic_link, mix ash_authentication.upgrade then adds brute_force_strategy to those strategies, and mix ash_authentication.add_strategy.otp writes its OTP actions without the preparation. Separately, with registration_enabled? true the OTP sign-in is a create action, which preparations do not run on, so brute_force_strategy {:preparation, module} never applied to it.\n\nThis issue affects ash_authentication: from 5.0.0-rc.4 before 5.0.0-rc.16."}],"impacts":[{"capecId":"CAPEC-49","descriptions":[{"lang":"en","value":"CAPEC-49 Password Brute Forcing"}]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":6.3,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"LOW","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-307","description":"CWE-307 Improper Restriction of Excessive Authentication Attempts","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-11-03T15:47:36.067Z","orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","shortName":"EEF"},"references":[{"name":"`brute_force_strategy` in AshAuthentication does not protect sign-in and request actions defined on the resource, allowing unlimited password and one-time password guessing","tags":["vendor-advisory","related"],"url":"https://github.com/team-alembic/ash_authentication/security/advisories/GHSA-55gf-3263-4r39"},{"name":"EEF CNA record for CVE-2026-118505","tags":["related"],"url":"https://cna.erlef.org/cves/CVE-2026-118505.html"},{"name":"OSV record EEF-CVE-2026-118505","tags":["related"],"url":"https://osv.dev/vulnerability/EEF-CVE-2026-118505"},{"name":"Introducing commit 800caa0 in team-alembic/ash_authentication","tags":["related"],"url":"https://github.com/team-alembic/ash_authentication/commit/800caa0d4a5bee1f28ad427f4c12fab72003a577"},{"name":"Fix commit 7117b5d in team-alembic/ash_authentication","tags":["patch"],"url":"https://github.com/team-alembic/ash_authentication/commit/7117b5da5b73ee4cdb372e4adfbaff409b527125"}],"source":{"discovery":"EXTERNAL"},"title":"AshAuthentication brute_force_strategy does not limit sign-in and request actions defined on the resource","workarounds":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Add the brute-force preparation to each protected action defined on the resource, or remove the action so the strategy generates it. For <code>brute_force_strategy {:audit_log, name}</code> that is <code>prepare {AshAuthentication.AddOn.AuditLog.IdentityBruteForcePreparation, action_name: &lt;action&gt;}</code> on the password sign-in, password reset request, magic link request and OTP request actions, and <code>prepare {AshAuthentication.AddOn.AuditLog.BruteForcePreparation, action_name: &lt;action&gt;}</code> on a read OTP sign-in action. For <code>{:preparation, MyModule}</code> it is <code>prepare MyModule</code>. For OTP with <code>registration_enabled? true</code>, switch to <code>brute_force_strategy :rate_limit</code>.</p>"},{"base64":false,"type":"text/markdown","value":"Add the brute-force preparation to each protected action defined on the resource, or remove the action so the strategy generates it. For `brute_force_strategy {:audit_log, name}` that is `prepare {AshAuthentication.AddOn.AuditLog.IdentityBruteForcePreparation, action_name: <action>}` on the password sign-in, password reset request, magic link request and OTP request actions, and `prepare {AshAuthentication.AddOn.AuditLog.BruteForcePreparation, action_name: <action>}` on a read OTP sign-in action. For `{:preparation, MyModule}` it is `prepare MyModule`. For OTP with `registration_enabled? true`, switch to `brute_force_strategy :rate_limit`."}],"value":"Add the brute-force preparation to each protected action defined on the resource, or remove the action so the strategy generates it. For brute_force_strategy {:audit_log, name} that is prepare {AshAuthentication.AddOn.AuditLog.IdentityBruteForcePreparation, action_name: <action>} on the password sign-in, password reset request, magic link request and OTP request actions, and prepare {AshAuthentication.AddOn.AuditLog.BruteForcePreparation, action_name: <action>} on a read OTP sign-in action. For {:preparation, MyModule} it is prepare MyModule. For OTP with registration_enabled? true, switch to brute_force_strategy :rate_limit."}]}},"cveMetadata":{"assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","assignerShortName":"EEF","cveId":"CVE-2026-118505","datePublished":"2026-11-03T15:47:36.067Z","dateReserved":"2026-10-29T16:15:02.036Z","dateUpdated":"2026-11-03T15:47:36.067Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"}