CVE-2024-7589
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedA signal handler in sshd(8) may call a logging function that is not async-signal-safe. The signal handler is invoked when a client does not authenticate within the LoginGraceTime seconds (120 by default). This signal handler executes in the context of the sshd(8)'s privileged code, which is not sandboxed and runs with full root privileges. This issue is another instance of the problem in CVE-2024-6387 addressed by FreeBSD-SA-24:04.openssh. The faulty code in this case is from the integration of blacklistd in OpenSSH in FreeBSD. As a result of calling functions that are not async-signal-safe in the privileged sshd(8) context, a race condition exists that a determined attacker may be able to exploit to allow an unauthenticated remote code execution as root.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceA signal handler in sshd calls a non-async-signal-safe logging function when clients fail to authenticate within the LoginGraceTime period (default 120 seconds). This signal handler executes in the privileged sshd context (not sandboxed, running as root), creating a race condition that can be exploited for unauthenticated remote code execution as root. This is a second instance (CVE-2024-6387) stemming from blacklistd integration in FreeBSD's OpenSSH.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data< 13.0>= 13.1, < 13.3= 13.3= 14.0= 14.1CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- High
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify the operating systemRun 'uname -a' or check /etc/os-release to confirm this is a FreeBSD systemAffected if The system is not FreeBSD (this vulnerability only affects FreeBSD)
-
Check the FreeBSD versionRun 'freebsd-version -k' or 'uname -r' to get the kernel versionAffected if The version is < 13.0, or between 13.1 and 13.3, or exactly 13.3, 14.0, or 14.1
-
Verify sshd is runningRun 'ps aux | grep sshd' or check if port 22 is listening with 'sockstat -4 -l | grep :22'Affected if sshd is not running (the vulnerability cannot be triggered)
-
Check the LoginGraceTime settingRun 'grep -i logingracetime /etc/ssh/sshd_config' or use 'sshd -T' to see effective configuration (default is 120 seconds)Affected if LoginGraceTime is set to a non-zero value (the signal handler vulnerability only triggers when authentication times out)
-
Confirm the signal handler behaviorThis is inherent to the code. If running an affected FreeBSD version with default/sshd config, the race condition exists. There is no simple config check; version-based detection is the primary method.Affected if Running an affected FreeBSD version with sshd enabled and LoginGraceTime > 0
A system is affected if it is FreeBSD versions 13.0, 13.1-13.3, 13.3, 14.0, or 14.1 with sshd running and LoginGraceTime set to a non-zero value (default 120 seconds), allowing the signal handler race condition to be triggered during failed authentication attempts.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped13.013.3
Apply the FreeBSD patch for this vulnerability or upgrade to a patched OpenSSH version. As a temporary hardening measure, reduce LoginGraceTime from the 120-second default to limit the attack window.
FreeBSD 14.1 or later, or 13.3-STABLE after security patch application
- Check the current FreeBSD version with: uname -r
- Check for available FreeBSD security advisories at security.freebsd.org for the latest patches
- Apply the relevant FreeBSD security patch (FreeBSD-SA-24:XX.openssh or subsequent advisory addressing CVE-2024-7589)
- Alternatively, upgrade to a patched FreeBSD release (14.1 or later, or 13.3-STABLE after patch)
- After patching, restart the sshd service: service sshd restart
- Verify sshd is running correctly: service sshd status
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation4.0 h
- Testing6.0 h
- Review / QA3.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,416.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2024-7589 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2024-7589 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data