strongSwan up to 5.1.2 IKE Daemon asn1.c asn1_unwrap ID_DER_ASN1_DN null pointer dereference

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
4.6$0-$5k0.00

Summaryinfo

A vulnerability, which was classified as problematic, was found in strongSwan up to 5.1.2. This impacts the function asn1_unwrap in the library src/libstrongswan/asn1/asn1.c of the component IKE Daemon. The manipulation of the argument ID_DER_ASN1_DN results in null pointer dereference. This vulnerability is identified as CVE-2014-2891. There is not any exploit available. You should upgrade the affected component.

Detailsinfo

A vulnerability classified as problematic has been found in strongSwan up to 5.1.2 (Network Encryption Software). Affected is the function asn1_unwrap in the library src/libstrongswan/asn1/asn1.c of the component IKE Daemon. The manipulation of the argument ID_DER_ASN1_DN with an unknown input leads to a null pointer dereference vulnerability. CWE is classifying the issue as CWE-476. A NULL pointer dereference occurs when the application dereferences a pointer that it expects to be valid, but is NULL, typically causing a crash or exit. This is going to have an impact on availability. CVE summarizes:

strongSwan before 5.1.2 allows remote attackers to cause a denial of service (NULL pointer dereference and IKE daemon crash) via a crafted ID_DER_ASN1_DN ID payload.

The weakness was released 05/05/2014 as strongSwan Denial-of-Service Vulnerability (CVE-2014-2891) as confirmed news (Website). The advisory is shared for download at strongswan.org. This vulnerability is traded as CVE-2014-2891 since 04/17/2014. It is possible to launch the attack remotely. The exploitation doesn't require any form of authentication. There are known technical details, but no exploit is available. The advisory points out:

The bug can be triggered by a crafted ID_DER_ASN1_DN ID payload and is caused by a NULL-pointer dereference when such identities are parsed. If the data of the ID payload is exactly two bytes long and the second byte ranges between 0x81 and 0x84 (or 0x88 depending on sizeof(size_t)) logging or comparing the identity will crash the IKE daemon.

The vulnerability scanner Nessus provides a plugin with the ID 73867 (Debian DSA-2922-1 : strongswan - security update), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Debian Local Security Checks. The commercial vulnerability scanner Qualys is able to test this issue with plugin 167875 (SUSE Enterprise Linux Security update for strongswan (SUSE-SU-2015:1228-1)).

Upgrading to version 5.1.3 eliminates this vulnerability. The upgrade is hosted for download at strongswan.org. Applying a patch is able to eliminate this problem. The bugfix is ready for download at git.strongswan.org. The best possible mitigation is suggested to be upgrading to the latest version. A possible mitigation has been published immediately after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at X-Force (93058), Tenable (73867), SecurityFocus (BID 67212†), Secunia (SA58398†) and SecurityTracker (ID 1030209†). Entry connected to this vulnerability is available at VDB-75748. VulDB is the best source for vulnerability data and more expert information about this specific topic.

Not Affected

  • stongSwan up to 4.3.2

Productinfo

Type

Name

Version

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 5.3
VulDB Meta Temp Score: 4.6

VulDB Base Score: 5.3
VulDB Temp Score: 4.6
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Null pointer dereference
CWE: CWE-476 / CWE-404
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Status: Unproven

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 73867
Nessus Name: Debian DSA-2922-1 : strongswan - security update
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Port: 🔍

OpenVAS ID: 702922
OpenVAS Name: Debian Security Advisory DSA 2922-1 (strongswan - security update
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍

Upgrade: strongSwan 5.1.3
Patch: git.strongswan.org

Timelineinfo

04/17/2014 🔍
05/05/2014 +18 days 🔍
05/05/2014 +0 days 🔍
05/05/2014 +0 days 🔍
05/06/2014 +1 days 🔍
05/06/2014 +0 days 🔍
05/07/2014 +1 days 🔍
05/07/2014 +0 days 🔍
05/08/2014 +1 days 🔍
05/08/2014 +0 days 🔍
05/12/2014 +4 days 🔍
06/19/2021 +2595 days 🔍

Sourcesinfo

Advisory: strongSwan Denial-of-Service Vulnerability (CVE-2014-2891)
Status: Confirmed
Confirmation: 🔍

CVE: CVE-2014-2891 (🔍)
GCVE (CVE): GCVE-0-2014-2891
GCVE (VulDB): GCVE-100-13176

OVAL: 🔍

X-Force: 93058 - strongSwan ID_DER_ASN1_DN ID denial of service, Medium Risk
SecurityFocus: 67212 - strongSwan CVE-2014-2891 NULL Pointer Dereference Denial of Service Vulnerability
Secunia: 58398 - strongSwan "ID_DER_ASN1_DN" ID Payload Parsing Denial of Service Vulnerability, Moderately Critical
SecurityTracker: 1030209 - strongSwan Null Pointer Dereference in Processing ID_DER_ASN1_DN ID Payloads Lets Remote Users Deny Service
Vulnerability Center: 44437 - StrongSwan before 4.3.3 through 5.1.1 Remote DoS via a Crafted ID Payload, High

See also: 🔍

Entryinfo

Created: 05/08/2014 18:00
Updated: 06/19/2021 12:20
Changes: 05/08/2014 18:00 (90), 05/27/2017 10:53 (6), 06/19/2021 12:20 (3)
Complete: 🔍
Cache ID: 216:346:103

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you want to use VulDB in your project?

Use the official API to access entries easily!