BreachSpiderVerified, not vibes

CVE-2023-2295 in Libreswan and 4 more products

High 7.5

A 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...

Affects 5 products from 2 vendors. Facts below cite their sources.

CVSS 3.17.5
EPSS1.9%
EPSS percentile80th
FixSee advisory

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Libreswan Libreswan 4.9-1.el8 4.9-1.el9
Redhat Enterprise Linux 8.0 9.0
Redhat Enterprise Linux Eus 8.8 9.2
Redhat Enterprise Linux Server Aus 8.8 9.2
Redhat Enterprise Linux Server Tus 8.8

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

A 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2023-2295
BreachSpider IDBS-2023-GLOBAL-350854-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published2023-05-17
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-400: Uncontrolled Resource Consumption (DoS)

Software does not properly limit resource usage, allowing an attacker to exhaust CPU, memory, disk, or bandwidth.

Related attack patterns (CAPEC)

CAPEC-147 XML Ping of the Death via CWE-400

CAPEC-492 Regular Expression Exponential Blowup via CWE-400

CAPEC-227 Sustained Client Engagement via CWE-400

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A vulnerability in the libreswan library can cause the pluto daemon state machine to crash when an IKEv1 Aggressive Mode packet is received with unacceptable crypto algorithms and the responder SPI is reused.

The attack involves sending an IKEv1 Aggressive Mode packet with only unacceptable crypto algorithms to the libreswan library. If the response packet is not sent with a zero responder SPI, and a subsequent packet reuses the responder SPI as its own initiator SPI, the pluto daemon state machine crashes.

Questions

What is CVE-2023-2295?

A vulnerability in the libreswan library can cause the pluto daemon state machine to crash when an IKEv1 Aggressive Mode packet is received with unacceptable crypto algorithms and the responder SPI is reused.

What is the CVSS score for CVE-2023-2295?

CVE-2023-2295 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. EPSS: 1.9%.

Is CVE-2023-2295 actively exploited?

No confirmed active exploitation of CVE-2023-2295 as of 2026-09-25.

How do I remediate CVE-2023-2295?

Priority: HIGH. Advisory: https://access.redhat.com/errata/RHSA-2023:3107

What systems are affected by CVE-2023-2295?

CVE-2023-2295 affects Libreswan Libreswan; Redhat Enterprise Linux, Enterprise Linux Eus, Enterprise Linux Server Aus, Enterprise Linux Server Tus.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Libreswan","product":"Libreswan","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.