Vulnerabilities > CVE-2009-2185 - Improper Input Validation vulnerability in multiple products

047910
CVSS 5.0 - MEDIUM
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
NONE
Integrity impact
NONE
Availability impact
PARTIAL
network
low complexity
strongswan
xelerance
CWE-20
nessus

Summary

The ASN.1 parser (pluto/asn1.c, libstrongswan/asn1/asn1.c, libstrongswan/asn1/asn1_parser.c) in (a) strongSwan 2.8 before 2.8.10, 4.2 before 4.2.16, and 4.3 before 4.3.2; and (b) openSwan 2.6 before 2.6.22 and 2.4 before 2.4.15 allows remote attackers to cause a denial of service (pluto IKE daemon crash) via an X.509 certificate with (1) crafted Relative Distinguished Names (RDNs), (2) a crafted UTCTIME string, or (3) a crafted GENERALIZEDTIME string.

Vulnerable Configurations

Part Description Count
Application
Strongswan
30
Application
Xelerance
26

Common Weakness Enumeration (CWE)

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.
  • Server Side Include (SSI) Injection
    An attacker can use Server Side Include (SSI) Injection to send code to a web application that then gets executed by the web server. Doing so enables the attacker to achieve similar results to Cross Site Scripting, viz., arbitrary code execution and information disclosure, albeit on a more limited scale, since the SSI directives are nowhere near as powerful as a full-fledged scripting language. Nonetheless, the attacker can conveniently gain access to sensitive files, such as password files, and execute shell commands.
  • Cross Zone Scripting
    An attacker is able to cause a victim to load content into their web-browser that bypasses security zone controls and gain access to increased privileges to execute scripting code or other web objects such as unsigned ActiveX controls or applets. This is a privilege elevation attack targeted at zone-based web-browser security. In a zone-based model, pages belong to one of a set of zones corresponding to the level of privilege assigned to that page. Pages in an untrusted zone would have a lesser level of access to the system and/or be restricted in the types of executable content it was allowed to invoke. In a cross-zone scripting attack, a page that should be assigned to a less privileged zone is granted the privileges of a more trusted zone. This can be accomplished by exploiting bugs in the browser, exploiting incorrect configuration in the zone controls, through a cross-site scripting attack that causes the attackers' content to be treated as coming from a more trusted page, or by leveraging some piece of system functionality that is accessible from both the trusted and less trusted zone. This attack differs from "Restful Privilege Escalation" in that the latter correlates to the inadequate securing of RESTful access methods (such as HTTP DELETE) on the server, while cross-zone scripting attacks the concept of security zones as implemented by a browser.
  • Cross Site Scripting through Log Files
    An attacker may leverage a system weakness where logs are susceptible to log injection to insert scripts into the system's logs. If these logs are later viewed by an administrator through a thin administrative interface and the log data is not properly HTML encoded before being written to the page, the attackers' scripts stored in the log will be executed in the administrative interface with potentially serious consequences. This attack pattern is really a combination of two other attack patterns: log injection and stored cross site scripting.
  • Command Line Execution through SQL Injection
    An attacker uses standard SQL injection methods to inject data into the command line for execution. This could be done directly through misuse of directives such as MSSQL_xp_cmdshell or indirectly through injection of data into the database that would be interpreted as shell commands. Sometime later, an unscrupulous backend application (or could be part of the functionality of the same application) fetches the injected data stored in the database and uses this data as command line arguments without performing proper validation. The malicious data escapes that data plane by spawning new commands to be executed on the host.

Nessus

  • NASL familySuSE Local Security Checks
    NASL idSUSE_11_0_STRONGSWAN-090626.NASL
    descriptionTwo vulnerabilities in the strongswan ASN.1 parser (when handling RDNs, UTCTIME and GENERALIZEDTIME strings) could lead to remote crashes of the pluto daemon (CVE-2009-2185).
    last seen2020-06-01
    modified2020-06-02
    plugin id40138
    published2009-07-21
    reporterThis script is Copyright (C) 2009-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/40138
    titleopenSUSE Security Update : strongswan (strongswan-1050)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2009-7478.NASL
    descriptionFixes Openswan PSK issue with NSS. Fixes CVE-2009-2185 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-06-01
    modified2020-06-02
    plugin id39773
    published2009-07-13
    reporterThis script is Copyright (C) 2009-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/39773
    titleFedora 11 : openswan-2.6.21-5.fc11 (2009-7478)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_OPENSWAN-6328.NASL
    descriptionTwo vulnerabilities in the openswan ASN.1 parser (when handling RDNs, UTCTIME and GENERALIZEDTIME strings) could lead to remote crashes of the pluto daemon. (CVE-2009-2185)
    last seen2020-06-01
    modified2020-06-02
    plugin id41575
    published2009-09-24
    reporterThis script is Copyright (C) 2009-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/41575
    titleSuSE 10 Security Update : openswan (ZYPP Patch Number 6328)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_11_1_OPENSWAN-090627.NASL
    descriptionTwo vulnerabilities in the openswan ASN.1 parser (when handling RDNs, UTCTIME and GENERALIZEDTIME strings) could lead to remote crashes of the pluto daemon (CVE-2009-2185).
    last seen2020-06-01
    modified2020-06-02
    plugin id40288
    published2009-07-21
    reporterThis script is Copyright (C) 2009-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/40288
    titleopenSUSE Security Update : openswan (openswan-1052)
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-1899.NASL
    descriptionSeveral remote vulnerabilities have been discovered in strongswan, an implementation of the IPSEC and IKE protocols. The Common Vulnerabilities and Exposures project identifies the following problems : - CVE-2009-1957 CVE-2009-1958 The charon daemon can crash when processing certain crafted IKEv2 packets. (The old stable distribution (etch) was not affected by these two problems because it lacks IKEv2 support.) - CVE-2009-2185 CVE-2009-2661 The pluto daemon could crash when processing a crafted X.509 certificate.
    last seen2020-06-01
    modified2020-06-02
    plugin id44764
    published2010-02-24
    reporterThis script is Copyright (C) 2010-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/44764
    titleDebian DSA-1899-1 : strongswan - several vulnerabilities
  • NASL familySuSE Local Security Checks
    NASL idSUSE_11_OPENSWAN-090627.NASL
    descriptionTwo vulnerabilities in the openswan ASN.1 parser (when handling RDNs, UTCTIME and GENERALIZEDTIME strings) could lead to remote crashes of the pluto daemon. (CVE-2009-2185)
    last seen2020-06-01
    modified2020-06-02
    plugin id41445
    published2009-09-24
    reporterThis script is Copyright (C) 2009-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/41445
    titleSuSE 11 Security Update : openswan (SAT Patch Number 1048)
  • NASL familyRed Hat Local Security Checks
    NASL idREDHAT-RHSA-2009-1138.NASL
    descriptionUpdated openswan packages that fix multiple security issues are now available for Red Hat Enterprise Linux 5. This update has been rated as having important security impact by the Red Hat Security Response Team. Openswan is a free implementation of Internet Protocol Security (IPsec) and Internet Key Exchange (IKE). IPsec uses strong cryptography to provide both authentication and encryption services. These services allow you to build secure tunnels through untrusted networks. Everything passing through the untrusted network is encrypted by the IPsec gateway machine, and decrypted by the gateway at the other end of the tunnel. The resulting tunnel is a virtual private network (VPN). Multiple insufficient input validation flaws were found in the way Openswan
    last seen2020-06-01
    modified2020-06-02
    plugin id39597
    published2009-07-03
    reporterThis script is Copyright (C) 2009-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/39597
    titleRHEL 5 : openswan (RHSA-2009:1138)
  • NASL familyOracle Linux Local Security Checks
    NASL idORACLELINUX_ELSA-2009-1138.NASL
    descriptionFrom Red Hat Security Advisory 2009:1138 : Updated openswan packages that fix multiple security issues are now available for Red Hat Enterprise Linux 5. This update has been rated as having important security impact by the Red Hat Security Response Team. Openswan is a free implementation of Internet Protocol Security (IPsec) and Internet Key Exchange (IKE). IPsec uses strong cryptography to provide both authentication and encryption services. These services allow you to build secure tunnels through untrusted networks. Everything passing through the untrusted network is encrypted by the IPsec gateway machine, and decrypted by the gateway at the other end of the tunnel. The resulting tunnel is a virtual private network (VPN). Multiple insufficient input validation flaws were found in the way Openswan
    last seen2020-06-01
    modified2020-06-02
    plugin id67887
    published2013-07-12
    reporterThis script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/67887
    titleOracle Linux 5 : openswan (ELSA-2009-1138)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_11_1_STRONGSWAN-090626.NASL
    descriptionTwo vulnerabilities in the strongswan ASN.1 parser (when handling RDNs, UTCTIME and GENERALIZEDTIME strings) could lead to remote crashes of the pluto daemon (CVE-2009-2185).
    last seen2020-06-01
    modified2020-06-02
    plugin id40313
    published2009-07-21
    reporterThis script is Copyright (C) 2009-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/40313
    titleopenSUSE Security Update : strongswan (strongswan-1050)
  • NASL familyScientific Linux Local Security Checks
    NASL idSL_20090702_OPENSWAN_ON_SL5_X.NASL
    descriptionMultiple insufficient input validation flaws were found in the way Openswan
    last seen2020-06-01
    modified2020-06-02
    plugin id60611
    published2012-08-01
    reporterThis script is Copyright (C) 2012-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/60611
    titleScientific Linux Security Update : openswan on SL5.x i386/x86_64
  • NASL familySuSE Local Security Checks
    NASL idSUSE_11_0_OPENSWAN-090627.NASL
    descriptionTwo vulnerabilities in the openswan ASN.1 parser (when handling RDNs, UTCTIME and GENERALIZEDTIME strings) could lead to remote crashes of the pluto daemon (CVE-2009-2185).
    last seen2020-06-01
    modified2020-06-02
    plugin id40087
    published2009-07-21
    reporterThis script is Copyright (C) 2009-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/40087
    titleopenSUSE Security Update : openswan (openswan-1052)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_OPENSWAN-6329.NASL
    descriptionTwo vulnerabilities in the openswan ASN.1 parser (when handling RDNs, UTCTIME and GENERALIZEDTIME strings) could lead to remote crashes of the pluto daemon (CVE-2009-2185).
    last seen2020-06-01
    modified2020-06-02
    plugin id42027
    published2009-10-06
    reporterThis script is Copyright (C) 2009-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/42027
    titleopenSUSE 10 Security Update : openswan (openswan-6329)
  • NASL familySuSE Local Security Checks
    NASL idSUSE9_12445.NASL
    descriptionTwo vulnerabilities in the freeswan ASN.1 parser (when handling RDNs, UTCTIME and GENERALIZEDTIME strings) could lead to remote crashes of the pluto daemon (CVE-2009-2185). This has been fixed.
    last seen2020-06-01
    modified2020-06-02
    plugin id41309
    published2009-09-24
    reporterThis script is Copyright (C) 2009-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/41309
    titleSuSE9 Security Update : freeswan (YOU Patch Number 12445)
  • NASL familyGentoo Local Security Checks
    NASL idGENTOO_GLSA-200909-05.NASL
    descriptionThe remote host is affected by the vulnerability described in GLSA-200909-05 (Openswan: Denial of Service) Multiple vulnerabilities have been discovered in Openswan: Gerd v. Egidy reported a NULL pointer dereference in the Dead Peer Detection of the pluto IKE daemon as included in Openswan (CVE-2009-0790). The Orange Labs vulnerability research team discovered multiple vulnerabilities in the ASN.1 parser (CVE-2009-2185). Impact : A remote attacker could exploit these vulnerabilities by sending specially crafted R_U_THERE or R_U_THERE_ACK packets, or a specially crafted X.509 certificate containing a malicious Relative Distinguished Name (RDN), UTCTIME string or GENERALIZEDTIME string to cause a Denial of Service of the pluto IKE daemon. Workaround : There is no known workaround at this time.
    last seen2020-06-01
    modified2020-06-02
    plugin id40913
    published2009-09-10
    reporterThis script is Copyright (C) 2009-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/40913
    titleGLSA-200909-05 : Openswan: Denial of Service
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2009-7423.NASL
    description - Mon Jul 6 2009 Avesh Agarwal <avagarwa at redhat.com> - 2.6.21-2 - Openswan ASN.1 parser vulnerability (CVE-2009-2185) - Mon Mar 30 2009 Avesh Agarwal <avagarwa at redhat.com> - 2.6.21-1 - new upstream release - Fix for CVE-2009-0790 DPD crasher - Fix remaining SADB_EXT_MAX -> K_SADB_EXT_MAX entries - Fix ipsec setup --status not showing amount of tunnels with netkey - Wed Dec 17 2008 Avesh Agarwal <avagarwa at redhat.com> - 2.6.19-1 - new upstream release 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-06-01
    modified2020-06-02
    plugin id39772
    published2009-07-13
    reporterThis script is Copyright (C) 2009-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/39772
    titleFedora 10 : openswan-2.6.21-2.fc10 (2009-7423)
  • NASL familyCentOS Local Security Checks
    NASL idCENTOS_RHSA-2009-1138.NASL
    descriptionUpdated openswan packages that fix multiple security issues are now available for Red Hat Enterprise Linux 5. This update has been rated as having important security impact by the Red Hat Security Response Team. Openswan is a free implementation of Internet Protocol Security (IPsec) and Internet Key Exchange (IKE). IPsec uses strong cryptography to provide both authentication and encryption services. These services allow you to build secure tunnels through untrusted networks. Everything passing through the untrusted network is encrypted by the IPsec gateway machine, and decrypted by the gateway at the other end of the tunnel. The resulting tunnel is a virtual private network (VPN). Multiple insufficient input validation flaws were found in the way Openswan
    last seen2020-06-01
    modified2020-06-02
    plugin id43765
    published2010-01-06
    reporterThis script is Copyright (C) 2010-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/43765
    titleCentOS 5 : openswan (CESA-2009:1138)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_STRONGSWAN-6327.NASL
    descriptionTwo vulnerabilities in the strongswan ASN.1 parser (when handling RDNs, UTCTIME and GENERALIZEDTIME strings) could lead to remote crashes of the pluto daemon. (CVE-2009-2185)
    last seen2020-06-01
    modified2020-06-02
    plugin id41588
    published2009-09-24
    reporterThis script is Copyright (C) 2009-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/41588
    titleSuSE 10 Security Update : strongswan (ZYPP Patch Number 6327)
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-1898.NASL
    descriptionIt was discovered that the pluto daemon in openswan, an implementation of IPSEC and IKE, could crash when processing a crafted X.509 certificate.
    last seen2020-06-01
    modified2020-06-02
    plugin id44763
    published2010-02-24
    reporterThis script is Copyright (C) 2010-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/44763
    titleDebian DSA-1898-1 : openswan - denial of service
  • NASL familySuSE Local Security Checks
    NASL idSUSE_11_STRONGSWAN-090626.NASL
    descriptionTwo vulnerabilities in the strongswan ASN.1 parser (when handling RDNs, UTCTIME and GENERALIZEDTIME strings) could lead to remote crashes of the pluto daemon. (CVE-2009-2185)
    last seen2020-06-01
    modified2020-06-02
    plugin id41456
    published2009-09-24
    reporterThis script is Copyright (C) 2009-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/41456
    titleSuSE 11 Security Update : strongswan (SAT Patch Number 1042)

Oval

accepted2013-04-29T04:11:20.489-04:00
classvulnerability
contributors
  • nameAharon Chernin
    organizationSCAP.com, LLC
  • nameDragos Prisaca
    organizationG2, Inc.
definition_extensions
  • commentThe operating system installed on the system is Red Hat Enterprise Linux 5
    ovaloval:org.mitre.oval:def:11414
  • commentThe operating system installed on the system is CentOS Linux 5.x
    ovaloval:org.mitre.oval:def:15802
  • commentOracle Linux 5.x
    ovaloval:org.mitre.oval:def:15459
descriptionThe ASN.1 parser (pluto/asn1.c, libstrongswan/asn1/asn1.c, libstrongswan/asn1/asn1_parser.c) in (a) strongSwan 2.8 before 2.8.10, 4.2 before 4.2.16, and 4.3 before 4.3.2; and (b) openSwan 2.6 before 2.6.22 and 2.4 before 2.4.15 allows remote attackers to cause a denial of service (pluto IKE daemon crash) via an X.509 certificate with (1) crafted Relative Distinguished Names (RDNs), (2) a crafted UTCTIME string, or (3) a crafted GENERALIZEDTIME string.
familyunix
idoval:org.mitre.oval:def:11079
statusaccepted
submitted2010-07-09T03:56:16-04:00
titleThe ASN.1 parser (pluto/asn1.c, libstrongswan/asn1/asn1.c, libstrongswan/asn1/asn1_parser.c) in (a) strongSwan 2.8 before 2.8.10, 4.2 before 4.2.16, and 4.3 before 4.3.2; and (b) openSwan 2.6 before 2.6.22 and 2.4 before 2.4.15 allows remote attackers to cause a denial of service (pluto IKE daemon crash) via an X.509 certificate with (1) crafted Relative Distinguished Names (RDNs), (2) a crafted UTCTIME string, or (3) a crafted GENERALIZEDTIME string.
version18

Redhat

advisories
bugzilla
id507362
titleCVE-2009-2185 Openswan ASN.1 parser vulnerability
oval
OR
  • commentRed Hat Enterprise Linux must be installed
    ovaloval:com.redhat.rhba:tst:20070304026
  • AND
    • commentRed Hat Enterprise Linux 5 is installed
      ovaloval:com.redhat.rhba:tst:20070331005
    • OR
      • AND
        • commentopenswan-doc is earlier than 0:2.6.14-1.el5_3.3
          ovaloval:com.redhat.rhsa:tst:20091138001
        • commentopenswan-doc is signed with Red Hat redhatrelease key
          ovaloval:com.redhat.rhsa:tst:20090402002
      • AND
        • commentopenswan is earlier than 0:2.6.14-1.el5_3.3
          ovaloval:com.redhat.rhsa:tst:20091138003
        • commentopenswan is signed with Red Hat redhatrelease key
          ovaloval:com.redhat.rhsa:tst:20090402004
rhsa
idRHSA-2009:1138
released2009-07-02
severityImportant
titleRHSA-2009:1138: openswan security update (Important)
rpms
  • openswan-0:2.6.14-1.el5_3.3
  • openswan-debuginfo-0:2.6.14-1.el5_3.3
  • openswan-doc-0:2.6.14-1.el5_3.3