CVE-2024-45751
Medium · 5.9CVSS
5.9
EPSS
0.6%
Published
Sep 6, 2024
CISA due date
—
Cloudanix analysis
Storage software used a broken random-number generator that always produced the same secret values, allowing attackers to guess them and reach systems they should not access.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Moderate
- Impact
- Data Tampering
- Component
- Network Service
- Class
- Cryptographic Weakness
- Remediation
- Upgrade
- Effort
- Low
- Patch risk
- Low
What it actually does
The tgt framework calls rand without a preceding srand, leaving the PRNG seeded at 1 and producing an identical deterministic sequence of challenges on every invocation.
Why it matters to the business
Predictable challenges in iSCSI target implementations can allow attackers to bypass integrity or authentication checks, risking unauthorized storage access or data tampering in environments using Nomad or tgt.
How an attack unfolds
An attacker connects to an affected target, receives the fixed challenge sequence generated from seed 1, precomputes valid responses offline, and supplies them to complete authentication or validation steps that should have been unpredictable.
How to fix it
Upgrade github.com/hashicorp/nomad to 1.5.1 or later and fujita/tgt to commit 0b080d7df9aca0df2eb99c81b383c73b1a200325 or later; rebuild and redeploy any dependent packages.
How to confirm the fix worked
Confirm deployed versions match or exceed the listed fixed releases; restart the service multiple times and verify that generated challenges differ between runs.
Typical attack path
- Locate publicly reachable tgt or Nomad iSCSI endpoints
- Establish a session to trigger challenge generation
- Capture the deterministic challenge values
- Reproduce the PRNG sequence locally using the known seed
- Submit precomputed responses to bypass security controls
How to detect it
Review iSCSI target logs for repeated identical challenge sequences across separate connections or restarts; correlate with connection timestamps to identify anomalous session patterns.
What your security team should do
- Apply the listed version upgrades immediately on all Nomad and tgt deployments
- Scan package manifests for downstream consumers of the affected libraries
- Add version pinning and automated dependency checks to build pipelines
The record
tgt (aka Linux target framework) before 1.0.93 attempts to achieve entropy by calling rand without srand. The PRNG seed is always 1, and thus the sequence of challenges is always identical.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | tgt | 0 | No fix |
| Debian:11 | tgt | 0 | 1:1.0.80-1+deb11u1 |
| Debian:12 | tgt | 0 | No fix |
| Debian:13 | tgt | 0 | 1:1.0.85-1.3 |
| Debian:14 | tgt | 0 | 1:1.0.85-1.3 |
| Mageia:9 | tgt | 0 | 1.0.85-1.1.mga9 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP6 | tgt | 0 | 1.0.85-150600.10.3.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP7 | tgt | 0 | 1.0.85-150600.10.3.1 |
| Ubuntu:14.04:LTS | tgt | 0 | No fix |
| Ubuntu:16.04:LTS | iscsitarget | 0 | No fix |
| Ubuntu:16.04:LTS | tgt | 0 | No fix |
| Ubuntu:18.04:LTS | tgt | 0 | No fix |
| Ubuntu:20.04:LTS | tgt | 0 | 1:1.0.79-2ubuntu1.1 |
| Ubuntu:22.04:LTS | tgt | 0 | No fix |
| Ubuntu:24.04:LTS | tgt | 0 | No fix |
| Ubuntu:24.10 | tgt | 0 | No fix |
| Ubuntu:25.04 | tgt | 0 | No fix |
| Ubuntu:25.10 | tgt | 0 | No fix |
| Ubuntu:Pro:14.04:LTS | tgt | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | iscsitarget | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | tgt | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | tgt | 0 | No fix |
| openSUSE:Leap 15.6 | tgt | 0 | 1.0.85-150600.10.3.1 |
Related vulnerabilities
- CVE-2026-74887 openssl_encrypt before 1.4.0 imports Python's non-cryptographic 'random' module (Mersenne… CWE-338
- CVE-2026-71851 crypto-js is a JavaScript library of crypto standards. CWE-338
- CVE-2026-16615 A flaw was found in librest. CWE-338
- CVE-2026-14495 The DoLogin Security plugin for WordPress is vulnerable to Authentication Bypass via… CWE-338
- CVE-2026-7830 UltraVNC through 1.8.2.2 uses inadequate cryptography in the MS-Logon II authentication… CWE-338
- CVE-2026-44040 UltraVNC through 1.8.2.2 uses a cryptographically weak pseudo-random number generator to… CWE-338
- CVE-2026-9733 Mojolicious::Plugin::Web::Auth::OAuth2 versions through 0.17 for Perl have an insecure… CWE-338
- CVE-2026-56141 In JetBrains Hub before 2026.1.13757, 2025.3.148033, 2025.2.148048, 2025.1.148120… CWE-338