CVE-2026-82759: CWE-760 Use of a One-Way Hash with a Predictable Salt in team-alembic ash_authentication
Use of a One-Way Hash with a Predictable Salt vulnerability in team-alembic AshAuthentication allows readers of the audit store to recover the client IP addresses that the audit log add-on's :hash privacy mode is meant to pseudonymise. AshAuthentication.AddOn.AuditLog.IpPrivacy.hash_ip/1 computes a single unkeyed :crypto.hash(:sha256, salt <> ip) and truncates the result to 16 hexadecimal characters. The salt is read from the :audit_log_ip_salt or :secret application config keys, and falls back to the constant "default-salt-change-in-production" published in the library source when neither is set, with nothing warning that the default is in use. The IPv4 space is only 2^32 values and SHA-256 is fast, so the whole hash table is precomputable and every stored value maps back to its source address. Truncating to 16 characters does not help, and even a configured salt leaves the hash cheap enough to enumerate once it leaks. This issue affects ash_authentication: from 4.12.0 before 4.15.0 and from 5.0.0-rc.0 before 5.0.0-rc.14.
AI Analysis
Technical Summary
The vulnerability arises from the use of an unkeyed SHA-256 hash with a predictable salt to pseudonymize IP addresses in the ash_authentication audit log add-on. The salt is either a constant default string or a configurable value, but the default is used without warning. The hash output is truncated to 16 hex characters, which does not prevent precomputation attacks due to the limited IPv4 space and fast hashing. This allows an attacker with access to the audit store to recover client IP addresses that the privacy mode intended to conceal. The affected versions are >=4.12.0 <4.15.0 and >=5.0.0-rc.0 <5.0.0-rc.14.
Potential Impact
The impact is limited to the ability of an attacker who can read the audit store to recover client IP addresses that were meant to be pseudonymized. This compromises privacy but does not directly lead to system compromise or code execution. The CVSS score is low (1.8) reflecting the limited attack vector (local access) and low impact.
Mitigation Recommendations
No explicit patch or remediation is provided in the input data. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Users should avoid using the default salt and configure a strong, secret salt value to increase the cost of precomputation attacks. Consider disabling the :hash privacy mode or using a more secure pseudonymization method until an official fix is available.
CVE-2026-82759: CWE-760 Use of a One-Way Hash with a Predictable Salt in team-alembic ash_authentication
Description
Use of a One-Way Hash with a Predictable Salt vulnerability in team-alembic AshAuthentication allows readers of the audit store to recover the client IP addresses that the audit log add-on's :hash privacy mode is meant to pseudonymise. AshAuthentication.AddOn.AuditLog.IpPrivacy.hash_ip/1 computes a single unkeyed :crypto.hash(:sha256, salt <> ip) and truncates the result to 16 hexadecimal characters. The salt is read from the :audit_log_ip_salt or :secret application config keys, and falls back to the constant "default-salt-change-in-production" published in the library source when neither is set, with nothing warning that the default is in use. The IPv4 space is only 2^32 values and SHA-256 is fast, so the whole hash table is precomputable and every stored value maps back to its source address. Truncating to 16 characters does not help, and even a configured salt leaves the hash cheap enough to enumerate once it leaks. This issue affects ash_authentication: from 4.12.0 before 4.15.0 and from 5.0.0-rc.0 before 5.0.0-rc.14.
CVSS v4.0
Score 1.8low
Affected software
team-alembic
ash_authentication
team-alembic
ash_authentication
pkg:hex/ash_authenticationpkg:github/team-alembic/ash_authenticationcpe:2.3:a:team-alembic:ash_authentication:*:*:*:*:*:*:*:*Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises from the use of an unkeyed SHA-256 hash with a predictable salt to pseudonymize IP addresses in the ash_authentication audit log add-on. The salt is either a constant default string or a configurable value, but the default is used without warning. The hash output is truncated to 16 hex characters, which does not prevent precomputation attacks due to the limited IPv4 space and fast hashing. This allows an attacker with access to the audit store to recover client IP addresses that the privacy mode intended to conceal. The affected versions are >=4.12.0 <4.15.0 and >=5.0.0-rc.0 <5.0.0-rc.14.
Potential Impact
The impact is limited to the ability of an attacker who can read the audit store to recover client IP addresses that were meant to be pseudonymized. This compromises privacy but does not directly lead to system compromise or code execution. The CVSS score is low (1.8) reflecting the limited attack vector (local access) and low impact.
Mitigation Recommendations
No explicit patch or remediation is provided in the input data. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Users should avoid using the default salt and configure a strong, secret salt value to increase the cost of precomputation attacks. Consider disabling the :hash privacy mode or using a more secure pseudonymization method until an official fix is available.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-08-31T01:00:10.817Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6aabe86855bf5e2cf56c51c3
Added to database: 09/17/2026, 13:17:28 UTC
Last enriched: 09/17/2026, 13:32:11 UTC
Last updated: 09/18/2026, 01:27:24 UTC
Views: 12
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.