Vulnerabilities > CVE-2013-5018 - Improper Restriction of Operations Within the Bounds of A Memory Buffer vulnerability in multiple products

047910
CVSS 4.3 - MEDIUM
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
NONE
Integrity impact
NONE
Availability impact
PARTIAL

Summary

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.

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.

Nessus

  • NASL familySuSE Local Security Checks
    NASL idSUSE_11_STRONGSWAN-131101.NASL
    descriptionThis strongswan update fixes security issues and bugs : - Specially crafted XAuth usernames and EAP identities could cause a crash in strongswan. (CVE-2013-5018) - A crafted ID packet can be used by remote attackers to crash the server or potentially gain authentication privileges under certain circumstances. (CVE-2013-6075) Additionally, a bug in route recursion limits was fixed : - Charon segfaults when left=%any / recursion limit. (bnc#840826)
    last seen2020-06-05
    modified2013-12-13
    plugin id71392
    published2013-12-13
    reporterThis script is Copyright (C) 2013-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/71392
    titleSuSE 11.2 / 11.3 Security Update : strongswan (SAT Patch Numbers 8488 / 8489)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2013-14481.NASL
    descriptionrhbz#981429: New upstream release Fixes CVE-2013-5018: rhbz#991216, rhbz#991215 Fixes rhbz#991859 failed to build in rawhide Updated local patches and removed which are not needed Fixed errors around charon-nm Added plugins libstrongswan-pkcs12.so, libstrongswan-rc2.so, libstrongswan-sshkey.so Added utility imv_policy_manager Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-03-17
    modified2013-08-21
    plugin id69404
    published2013-08-21
    reporterThis script is Copyright (C) 2013-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/69404
    titleFedora 19 : strongswan-5.1.0-1.fc19 (2013-14481)
  • NASL familyFreeBSD Local Security Checks
    NASL idFREEBSD_PKG_EFA663EB875411E39A4700163E1ED244.NASL
    descriptionstrongSwan Project reports : A DoS vulnerability triggered by crafted IKEv1 fragmentation payloads was discovered in strongSwan
    last seen2020-06-01
    modified2020-06-02
    plugin id72156
    published2014-01-28
    reporterThis script is Copyright (C) 2014-2018 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/72156
    titleFreeBSD : strongswan -- multiple DoS vulnerabilities (efa663eb-8754-11e3-9a47-00163e1ed244)
  • NASL familyGentoo Local Security Checks
    NASL idGENTOO_GLSA-201309-02.NASL
    descriptionThe remote host is affected by the vulnerability described in GLSA-201309-02 (strongSwan: Multiple vulnerabilities) Multiple vulnerabilities have been discovered in strongSwan. Please review the CVE identifiers referenced below for details. Impact : A remote attacker could use ECDSA to authenticate as another user with an invalid signature. Additionally, a remote attacker could send a specially crafted request, possibly resulting in a Denial of Service. Workaround : There is no known workaround at this time.
    last seen2020-06-01
    modified2020-06-02
    plugin id69539
    published2013-09-02
    reporterThis script is Copyright (C) 2013-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/69539
    titleGLSA-201309-02 : strongSwan: Multiple vulnerabilities
  • NASL familySuSE Local Security Checks
    NASL idOPENSUSE-2013-643.NASL
    descriptionThis update of strongswan fixed a denial-of-service vulnerability, that could be triggered by special XAuth usernames and EAP identities.
    last seen2020-06-05
    modified2014-06-13
    plugin id75115
    published2014-06-13
    reporterThis script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/75115
    titleopenSUSE Security Update : strongswan (openSUSE-SU-2013:1332-1)
  • NASL familySuSE Local Security Checks
    NASL idOPENSUSE-2013-645.NASL
    descriptionThis update of strongswan fixed a denial-of-service vulnerability, that could be triggered by special XAuth usernames and EAP identities.
    last seen2020-06-05
    modified2014-06-13
    plugin id75117
    published2014-06-13
    reporterThis script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/75117
    titleopenSUSE Security Update : strongswan (openSUSE-SU-2013:1333-1)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2013-14510.NASL
    descriptionrhbz#981429: New upstream release Fixes CVE-2013-5018: rhbz#991216, rhbz#991215 Fixes rhbz#991859 failed to build in rawhide Updated local patches and removed which are not needed Fixed errors around charon-nm Added plugins libstrongswan-pkcs12.so, libstrongswan-rc2.so, libstrongswan-sshkey.so Added utility imv_policy_manager Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-03-17
    modified2013-08-21
    plugin id69405
    published2013-08-21
    reporterThis script is Copyright (C) 2013-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/69405
    titleFedora 18 : strongswan-5.1.0-2.fc18 (2013-14510)