# CVE-2009-2661: The asn1length function in strongSwan 2.8 before 2.8.11, 4.2 before 4.2.17, and 4.3 before 4.3.3 does not properly handle X.509 certificate…

- Severity: Medium 5.0 (CVSS:2.0, scored by NVD) `AV:N/AC:L/Au:N/C:N/I:N/A:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.58%, higher than 76% of CVEs (2026-12-01)
- Published: 2009-08-04T16:13:00.000Z
- Modified: 2026-06-16T23:09:56.540Z
- Weaknesses: CWE-310
- Assigned by: mitre

## Description

The asn1_length function in strongSwan 2.8 before 2.8.11, 4.2 before 4.2.17, and 4.3 before 4.3.3 does not properly handle X.509 certificates with crafted Relative Distinguished Names (RDNs), which allows remote attackers to cause a denial of service (pluto IKE daemon crash) via malformed ASN.1 data.  NOTE: this is due to an incomplete fix for CVE-2009-2185.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- strongswan strongswan: 2.8.0; 2.8.1; 2.8.2; 2.8.3; 2.8.4; 2.8.5; 2.8.6; 2.8.7; 2.8.8; 2.8.10; 4.2.0; 4.2.1; and 12 more

## References

- <http://www.openwall.com/lists/oss-security/2009/07/27/1> (mailing-list)
- <http://download.strongswan.org/patches/07_asn1_length_patch/strongswan-4.x.x_asn1_length.patch> (patch)
- <http://lists.opensuse.org/opensuse-security-announce/2009-11/msg00004.html> (vendor-advisory)
- <http://secunia.com/advisories/36922> (third-party-advisory)
- <http://www.debian.org/security/2009/dsa-1899> (vendor-advisory)
- <http://www.vupen.com/english/advisories/2009/2247> (vdb-entry)
- <http://up2date.astaro.com/2009/08/up2date_7505_released.html>
- <http://lists.opensuse.org/opensuse-security-announce/2009-10/msg00001.html> (vendor-advisory)
- <http://download.strongswan.org/patches/07_asn1_length_patch/strongswan-4.3.x_asn1_length.patch>
- <https://lists.strongswan.org/pipermail/announce/2009-July/000056.html> (mailing-list, patch)

## Sources

- CVE List: [CVE-2009-2661](https://www.cve.org/CVERecord?id=CVE-2009-2661), CVE Terms of Use, modified 2024-08-07
- NVD: [CVE-2009-2661](https://nvd.nist.gov/vuln/detail/CVE-2009-2661), Public domain, modified 2026-06-16

---

Page: https://cve.day/CVE-2009-2661 · Whole record: https://cve.day/CVE-2009-2661.json · Rebuilt by cve.day 2026-11-25T22:57:06.124Z
