CVE-2023-2295
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 vulnerability was found in the libreswan library. This security issue occurs when an IKEv1 Aggressive Mode packet is received with only unacceptable crypto algorithms, and the response packet is not sent with a zero responder SPI. When a subsequent packet is received where the sender reuses the libreswan responder SPI as its own initiator SPI, the pluto daemon state machine crashes. No remote code execution is possible. This CVE exists because of a CVE-2023-30570 security regression for libreswan package in Red Hat Enterprise Linux 8.8 and Red Hat Enterprise Linux 9.2.
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 vulnerability in libreswan's IKEv1 Aggressive Mode handling causes a pluto daemon state machine crash when a packet with unacceptable crypto algorithms is received and the response fails to use a zero responder SPI. Subsequent packets that reuse the libreswan responder SPI as an initiator SPI trigger the crash, resulting in denial of service.
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= 8.0= 9.0= 8.8= 9.2= 8.8= 9.2= 8.8= 4.9-1.el8= 4.9-1.el9CVSS 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
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/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.
-
Verify libreswan is installedRun 'rpm -q libreswan' or check for the existence of /usr/sbin/plutoAffected if libreswan is not installed, the system is not affected by this vulnerability in libreswan
-
Check installed libreswan versionRun 'rpm -q --qf '%{VERSION}-%{RELEASE}' libreswan' to get the exact version string, then compare against the affected versions 4.9-1.el8 and 4.9-1.el9Affected if the installed version matches 4.9-1.el8, 4.9-1.el9, or falls within the RHEL 8.0-9.2 ranges mentioned for this CVE, the system could be affected
-
Confirm IKEv1 Aggressive Mode is configuredCheck /etc/ipsec.conf for 'aggrmode=yes' in any connection definition, or inspect /var/log/pluto.log for 'aggressive mode' related configurationAffected if IKEv1 Aggressive Mode is not configured or enabled, the specific crash condition cannot be triggered
-
Verify pluto daemon is runningRun 'systemctl status pluto' or 'ps aux | grep pluto' to confirm the IPSec daemon is activeAffected if the pluto daemon is not running, the crash cannot occur even if vulnerable code is present
-
Check for recent pluto crashes or restartsReview 'journalctl -u pluto -n 50' or /var/log/messages for pluto daemon crash indicators or unexpected restarts around IKEv1 Aggressive Mode exchangesAffected if the pluto daemon has crashed or restarted unexpectedly after processing IKEv1 aggressive mode packets, this indicates possible exploitation of this vulnerability
The system is affected if libreswan version 4.9-1.el8 or 4.9-1.el9 (or corresponding RHEL 8.0-9.2 packages) is installed with IKEv1 Aggressive Mode enabled and the pluto daemon is running.
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 · scopedApply vendor security updates for the libreswan package in RHEL 8.8 and RHEL 9.2 to address this regression from CVE-2023-30570. Network-based filtering of IKE traffic can provide temporary mitigation until patches are applied.
libreswan version higher than 4.9-1.el8/el9 ( consult Red Hat RHSA advisory for exact version )
- 1. Identify the current installed version of libreswan: rpm -qa | grep libreswan
- 2. Update the package repository metadata: dnf check-update
- 3. Apply the security update for libreswan: dnf update libreswan
- 4. Verify the updated version is installed: rpm -qa | grep libreswan
- 5. Restart the ipsec service to apply changes: systemctl restart ipsec
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation4.0 h
- Implementation8.0 h
- Testing12.0 h
- Review / QA4.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $7,616.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2023-2295 — 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-2023-2295 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