ID CVE-2013-2053
Summary Buffer overflow in the atodn function in Openswan before 2.6.39, when Opportunistic Encryption is enabled and an RSA key is being used, allows remote attackers to cause a denial of service (pluto IKE daemon crash) and possibly execute arbitrary code via crafted DNS TXT records. NOTE: this might be the same vulnerability as CVE-2013-2052 and CVE-2013-2054.
References
Vulnerable Configurations
  • Openswan 2.6.29
    cpe:2.3:a:openswan:openswan:2.6.29
  • Openswan 2.6.30
    cpe:2.3:a:openswan:openswan:2.6.30
  • Openswan 2.6.31
    cpe:2.3:a:openswan:openswan:2.6.31
  • Openswan 2.6.32
    cpe:2.3:a:openswan:openswan:2.6.32
  • Openswan 2.6.33
    cpe:2.3:a:openswan:openswan:2.6.33
  • Openswan 2.6.34
    cpe:2.3:a:openswan:openswan:2.6.34
  • Openswan 2.6.35
    cpe:2.3:a:openswan:openswan:2.6.35
  • Openswan 2.6.03
    cpe:2.3:a:openswan:openswan:2.6.03
  • Openswan 2.6.04
    cpe:2.3:a:openswan:openswan:2.6.04
  • Openswan 2.6.05
    cpe:2.3:a:openswan:openswan:2.6.05
  • Openswan 2.6.06
    cpe:2.3:a:openswan:openswan:2.6.06
  • Openswan 2.6.07
    cpe:2.3:a:openswan:openswan:2.6.07
  • Openswan 2.6.02
    cpe:2.3:a:openswan:openswan:2.6.02
  • Openswan 2.6.08
    cpe:2.3:a:openswan:openswan:2.6.08
  • Openswan 2.6.01
    cpe:2.3:a:openswan:openswan:2.6.01
  • Openswan 2.6.09
    cpe:2.3:a:openswan:openswan:2.6.09
  • Openswan 2.6.10
    cpe:2.3:a:openswan:openswan:2.6.10
  • Openswan 2.6.28
    cpe:2.3:a:openswan:openswan:2.6.28
  • Openswan 2.6.16
    cpe:2.3:a:openswan:openswan:2.6.16
  • Openswan 2.6.20
    cpe:2.3:a:openswan:openswan:2.6.20
  • Openswan 2.6.15
    cpe:2.3:a:openswan:openswan:2.6.15
  • Openswan 2.6.19
    cpe:2.3:a:openswan:openswan:2.6.19
  • Openswan 2.6.14
    cpe:2.3:a:openswan:openswan:2.6.14
  • Openswan 2.6.18
    cpe:2.3:a:openswan:openswan:2.6.18
  • Openswan 2.6.13
    cpe:2.3:a:openswan:openswan:2.6.13
  • Openswan 2.6.17
    cpe:2.3:a:openswan:openswan:2.6.17
  • Openswan 2.6.12
    cpe:2.3:a:openswan:openswan:2.6.12
  • Openswan 2.6.11
    cpe:2.3:a:openswan:openswan:2.6.11
  • Openswan 2.6.37
    cpe:2.3:a:openswan:openswan:2.6.37
  • Openswan 2.6.36
    cpe:2.3:a:openswan:openswan:2.6.36
  • Openswan 2.6.27
    cpe:2.3:a:openswan:openswan:2.6.27
  • Openswan 2.6.26
    cpe:2.3:a:openswan:openswan:2.6.26
  • Openswan 2.6.25
    cpe:2.3:a:openswan:openswan:2.6.25
  • Openswan 2.6.24
    cpe:2.3:a:openswan:openswan:2.6.24
  • Openswan 2.6.23
    cpe:2.3:a:openswan:openswan:2.6.23
  • Openswan 2.6.22
    cpe:2.3:a:openswan:openswan:2.6.22
  • Openswan 2.6.21
    cpe:2.3:a:openswan:openswan:2.6.21
  • Openswan 2.6.38
    cpe:2.3:a:openswan:openswan:2.6.38
CVSS
Base: 6.8 (as of 10-07-2013 - 11:13)
Impact:
Exploitability:
CWE CWE-119
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.
  • Overflow Binary Resource File
    An attack of this type exploits a buffer overflow vulnerability in the handling of binary resources. Binary resources may include music files like MP3, image files like JPEG files, and any other binary file. These attacks may pass unnoticed to the client machine through normal usage of files, such as a browser loading a seemingly innocent JPEG file. This can allow the attacker access to the execution stack and execute arbitrary code in the target process. This attack pattern is a variant of standard buffer overflow attacks using an unexpected vector (binary files) to wrap its attack and open up a new attack vector. The attacker is required to either directly serve the binary content to the victim, or place it in a locale like a MP3 sharing application, for the victim to download. The attacker then is notified upon the download or otherwise locates the vulnerability opened up by the buffer overflow.
  • Buffer Overflow via Symbolic Links
    This type of attack leverages the use of symbolic links to cause buffer overflows. An attacker can try to create or manipulate a symbolic link file such that its contents result in out of bounds data. When the target software processes the symbolic link file, it could potentially overflow internal buffers with insufficient bounds checking.
  • Overflow Variables and Tags
    This type of attack leverages the use of tags or variables from a formatted configuration data to cause buffer overflow. The attacker crafts a malicious HTML page or configuration file that includes oversized strings, thus causing an overflow.
  • Buffer Overflow via Parameter Expansion
    In this attack, the target software is given input that the attacker knows will be modified and expanded in size during processing. This attack relies on the target software failing to anticipate that the expanded data may exceed some internal limit, thereby creating a buffer overflow.
  • Buffer Overflow in an API Call
    This attack targets libraries or shared code modules which are vulnerable to buffer overflow attacks. An attacker who has access to an API may try to embed malicious code in the API function call and exploit a buffer overflow vulnerability in the function's implementation. All clients that make use of the code library thus become vulnerable by association. This has a very broad effect on security across a system, usually affecting more than one software process.
  • Buffer Overflow in Local Command-Line Utilities
    This attack targets command-line utilities available in a number of shells. An attacker can leverage a vulnerability found in a command-line utility to escalate privilege to root.
Access
VectorComplexityAuthentication
NETWORK MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
nessus via4
  • NASL family SuSE Local Security Checks
    NASL id SUSE_11_OPENSWAN-130625.NASL
    description This openswan update fixes a remote buffer overflow issue. (bnc#824316 / CVE-2013-2053)
    last seen 2019-02-21
    modified 2013-10-25
    plugin id 67197
    published 2013-07-06
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=67197
    title SuSE 11.2 Security Update : openswan (SAT Patch Number 7925)
  • NASL family Scientific Linux Local Security Checks
    NASL id SL_20130515_OPENSWAN_ON_SL5_X.NASL
    description A buffer overflow flaw was found in Openswan. If Opportunistic Encryption were enabled ('oe=yes' in '/etc/ipsec.conf') and an RSA key configured, an attacker able to cause a system to perform a DNS lookup for an attacker- controlled domain containing malicious records (such as by sending an email that triggers a DKIM or SPF DNS record lookup) could cause Openswan's pluto IKE daemon to crash or, potentially, execute arbitrary code with root privileges. With 'oe=yes' but no RSA key configured, the issue can only be triggered by attackers on the local network who can control the reverse DNS entry of the target system. Opportunistic Encryption is disabled by default. (CVE-2013-2053) After installing this update, the ipsec service will be restarted automatically.
    last seen 2019-02-21
    modified 2018-12-31
    plugin id 66462
    published 2013-05-16
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=66462
    title Scientific Linux Security Update : openswan on SL5.x, SL6.x i386/x86_64
  • NASL family CentOS Local Security Checks
    NASL id CENTOS_RHSA-2013-0827.NASL
    description Updated openswan packages that fix one security issue are now available for Red Hat Enterprise Linux 5 and 6. The Red Hat Security Response Team has rated this update as having important security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. 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. When using Opportunistic Encryption, Openswan's pluto IKE daemon requests DNS TXT records to obtain public RSA keys of itself and its peers. A buffer overflow flaw was found in Openswan. If Opportunistic Encryption were enabled ('oe=yes' in '/etc/ipsec.conf') and an RSA key configured, an attacker able to cause a system to perform a DNS lookup for an attacker-controlled domain containing malicious records (such as by sending an email that triggers a DKIM or SPF DNS record lookup) could cause Openswan's pluto IKE daemon to crash or, potentially, execute arbitrary code with root privileges. With 'oe=yes' but no RSA key configured, the issue can only be triggered by attackers on the local network who can control the reverse DNS entry of the target system. Opportunistic Encryption is disabled by default. (CVE-2013-2053) This issue was discovered by Florian Weimer of the Red Hat Product Security Team. All users of openswan are advised to upgrade to these updated packages, which contain backported patches to correct this issue. After installing this update, the ipsec service will be restarted automatically.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 66451
    published 2013-05-16
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=66451
    title CentOS 5 / 6 : openswan (CESA-2013:0827)
  • NASL family Gentoo Local Security Checks
    NASL id GENTOO_GLSA-201401-09.NASL
    description The remote host is affected by the vulnerability described in GLSA-201401-09 (Openswan: User-assisted execution of arbitrary code) A buffer overflow flaw has been discovered in Openswan when using Opportunistic Encryption. Impact : A remote attacker could send a specially crafted DNS TXT record, possibly resulting in execution of arbitrary code with the privileges of the process or a Denial of Service condition. Workaround : There is no known workaround at this time.
    last seen 2019-02-21
    modified 2018-07-12
    plugin id 72017
    published 2014-01-20
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=72017
    title GLSA-201401-09 : Openswan: User-assisted execution of arbitrary code
  • NASL family Red Hat Local Security Checks
    NASL id REDHAT-RHSA-2013-0827.NASL
    description Updated openswan packages that fix one security issue are now available for Red Hat Enterprise Linux 5 and 6. The Red Hat Security Response Team has rated this update as having important security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. 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. When using Opportunistic Encryption, Openswan's pluto IKE daemon requests DNS TXT records to obtain public RSA keys of itself and its peers. A buffer overflow flaw was found in Openswan. If Opportunistic Encryption were enabled ('oe=yes' in '/etc/ipsec.conf') and an RSA key configured, an attacker able to cause a system to perform a DNS lookup for an attacker-controlled domain containing malicious records (such as by sending an email that triggers a DKIM or SPF DNS record lookup) could cause Openswan's pluto IKE daemon to crash or, potentially, execute arbitrary code with root privileges. With 'oe=yes' but no RSA key configured, the issue can only be triggered by attackers on the local network who can control the reverse DNS entry of the target system. Opportunistic Encryption is disabled by default. (CVE-2013-2053) This issue was discovered by Florian Weimer of the Red Hat Product Security Team. All users of openswan are advised to upgrade to these updated packages, which contain backported patches to correct this issue. After installing this update, the ipsec service will be restarted automatically.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 66459
    published 2013-05-16
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=66459
    title RHEL 5 / 6 : openswan (RHSA-2013:0827)
  • NASL family Amazon Linux Local Security Checks
    NASL id ALA_ALAS-2013-192.NASL
    description A buffer overflow flaw was found in Openswan. If Opportunistic Encryption were enabled ('oe=yes' in '/etc/ipsec.conf') and an RSA key configured, an attacker able to cause a system to perform a DNS lookup for an attacker-controlled domain containing malicious records (such as by sending an email that triggers a DKIM or SPF DNS record lookup) could cause Openswan's pluto IKE daemon to crash or, potentially, execute arbitrary code with root privileges. With 'oe=yes' but no RSA key configured, the issue can only be triggered by attackers on the local network who can control the reverse DNS entry of the target system. Opportunistic Encryption is disabled by default. (CVE-2013-2053)
    last seen 2019-02-21
    modified 2018-04-18
    plugin id 69750
    published 2013-09-04
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=69750
    title Amazon Linux AMI : openswan (ALAS-2013-192)
  • NASL family Debian Local Security Checks
    NASL id DEBIAN_DSA-2893.NASL
    description Two vulnerabilities were fixed in Openswan, an IKE/IPsec implementation for Linux. - CVE-2013-2053 During an audit of Libreswan (with which Openswan shares some code), Florian Weimer found a remote buffer overflow in the atodn() function. This vulnerability can be triggered when Opportunistic Encryption (OE) is enabled and an attacker controls the PTR record of a peer IP address. Authentication is not needed to trigger the vulnerability. - CVE-2013-6466 Iustina Melinte found a vulnerability in Libreswan which also applies to the Openswan code. By carefully crafting IKEv2 packets, an attacker can make the pluto daemon dereference non-received IKEv2 payload, leading to the daemon crash. Authentication is not needed to trigger the vulnerability. Patches were originally written to fix the vulnerabilities in Libreswan, and have been ported to Openswan by Paul Wouters from the Libreswan Project. Since the Openswan package is not maintained anymore in the Debian distribution and is not available in testing and unstable suites, it is recommended for IKE/IPsec users to switch to a supported implementation like strongSwan.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 73293
    published 2014-04-02
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=73293
    title Debian DSA-2893-1 : openswan - security update
  • NASL family SuSE Local Security Checks
    NASL id SUSE_OPENSWAN-8627.NASL
    description This openswan update fixes a remote buffer overflow issue. (bnc#824316 / CVE-2013-2053)
    last seen 2019-02-21
    modified 2013-07-11
    plugin id 67199
    published 2013-07-06
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=67199
    title SuSE 10 Security Update : openswan (ZYPP Patch Number 8627)
  • NASL family Oracle Linux Local Security Checks
    NASL id ORACLELINUX_ELSA-2013-0827.NASL
    description From Red Hat Security Advisory 2013:0827 : Updated openswan packages that fix one security issue are now available for Red Hat Enterprise Linux 5 and 6. The Red Hat Security Response Team has rated this update as having important security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. 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. When using Opportunistic Encryption, Openswan's pluto IKE daemon requests DNS TXT records to obtain public RSA keys of itself and its peers. A buffer overflow flaw was found in Openswan. If Opportunistic Encryption were enabled ('oe=yes' in '/etc/ipsec.conf') and an RSA key configured, an attacker able to cause a system to perform a DNS lookup for an attacker-controlled domain containing malicious records (such as by sending an email that triggers a DKIM or SPF DNS record lookup) could cause Openswan's pluto IKE daemon to crash or, potentially, execute arbitrary code with root privileges. With 'oe=yes' but no RSA key configured, the issue can only be triggered by attackers on the local network who can control the reverse DNS entry of the target system. Opportunistic Encryption is disabled by default. (CVE-2013-2053) This issue was discovered by Florian Weimer of the Red Hat Product Security Team. All users of openswan are advised to upgrade to these updated packages, which contain backported patches to correct this issue. After installing this update, the ipsec service will be restarted automatically.
    last seen 2019-02-21
    modified 2015-12-01
    plugin id 68822
    published 2013-07-12
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=68822
    title Oracle Linux 5 / 6 : openswan (ELSA-2013-0827)
redhat via4
advisories
bugzilla
id 960229
title CVE-2013-2053 Openswan: remote buffer overflow in atodn()
oval
OR
  • AND
    • comment Red Hat Enterprise Linux 5 is installed
      oval oval:com.redhat.rhsa:tst:20070055001
    • OR
      • AND
        • comment openswan is earlier than 0:2.6.32-5.el5_9
          oval oval:com.redhat.rhsa:tst:20130827002
        • comment openswan is signed with Red Hat redhatrelease key
          oval oval:com.redhat.rhsa:tst:20090402003
      • AND
        • comment openswan-doc is earlier than 0:2.6.32-5.el5_9
          oval oval:com.redhat.rhsa:tst:20130827004
        • comment openswan-doc is signed with Red Hat redhatrelease key
          oval oval:com.redhat.rhsa:tst:20090402005
  • AND
    • OR
      • comment Red Hat Enterprise Linux 6 Client is installed
        oval oval:com.redhat.rhsa:tst:20100842001
      • comment Red Hat Enterprise Linux 6 Server is installed
        oval oval:com.redhat.rhsa:tst:20100842002
      • comment Red Hat Enterprise Linux 6 Workstation is installed
        oval oval:com.redhat.rhsa:tst:20100842003
      • comment Red Hat Enterprise Linux 6 ComputeNode is installed
        oval oval:com.redhat.rhsa:tst:20100842004
    • OR
      • AND
        • comment openswan is earlier than 0:2.6.32-20.el6_4
          oval oval:com.redhat.rhsa:tst:20130827010
        • comment openswan is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhsa:tst:20100892006
      • AND
        • comment openswan-doc is earlier than 0:2.6.32-20.el6_4
          oval oval:com.redhat.rhsa:tst:20130827012
        • comment openswan-doc is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhsa:tst:20100892008
rhsa
id RHSA-2013:0827
released 2013-05-15
severity Important
title RHSA-2013:0827: openswan security update (Important)
rpms
  • openswan-0:2.6.32-5.el5_9
  • openswan-doc-0:2.6.32-5.el5_9
  • openswan-0:2.6.32-20.el6_4
  • openswan-doc-0:2.6.32-20.el6_4
refmap via4
bid 59838
confirm
debian DSA-2893
mlist [Swan-announce] 20130514 CVE-2013-2052: Libreswan remote buffer overflow in atodn()
suse SUSE-SU-2013:1150
Last major update 19-04-2014 - 00:34
Published 09-07-2013 - 13:55
Back to Top