strongSwan up to 5.1.2 IKE Daemon asn1.c asn1_unwrap ID_DER_ASN1_DN null pointer dereference
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 4.6 | $0-$5k | 0.00 |
Summary
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.
Details
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
Product
Type
Name
Version
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 5.3VulDB Meta Temp Score: 4.6
VulDB Base Score: 5.3
VulDB Temp Score: 4.6
VulDB Vector: 🔍
VulDB Reliability: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Null pointer dereferenceCWE: 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-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
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 Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍
Upgrade: strongSwan 5.1.3
Patch: git.strongswan.org
Timeline
04/17/2014 🔍05/05/2014 🔍
05/05/2014 🔍
05/05/2014 🔍
05/06/2014 🔍
05/06/2014 🔍
05/07/2014 🔍
05/07/2014 🔍
05/08/2014 🔍
05/08/2014 🔍
05/12/2014 🔍
06/19/2021 🔍
Sources
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: 🔍
Entry
Created: 05/08/2014 18:00Updated: 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.
No comments yet. Languages: en.
Please log in to comment.