---
id: CVE-2026-47895
title: 'In strongSwan before 6.0.7, identity parsing/cloning is mishandled'
summary: >-
  In strongSwan before 6.0.7, identity parsing/cloning is mishandled. Parsed
  EAP-Identities that result in an empty but non-NULL encoding are not correctly
  cloned and trigger a double-free once the duplicates are destroyed.
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-415
published: '2026-08-22'
updated: '2026-09-09'
sourceUpdated: '2026-09-09T16:04:24.933'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-47895'
references:
  - url: 'https://github.com/strongswan/strongswan/releases/tag/6.0.7'
    label: cve@mitre.org
  - url: 'https://www.strongswan.org/download.html'
    label: cve@mitre.org
tags:
  - nvd
epss: 0.0067
epssPercentile: 0.50585
ingestedAt: '2026-09-09T16:14:05.515Z'
---

## Overview

In strongSwan before 6.0.7, identity parsing/cloning is mishandled. Parsed EAP-Identities that result in an empty but non-NULL encoding are not correctly cloned and trigger a double-free once the duplicates are destroyed.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
