// For flags

CVE-2022-3515

GnuPG libksba CRL File Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability

Severity Score

9.8
*CVSS v3.1

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

2
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

-
*SSVC
Descriptions

A vulnerability was found in the Libksba library due to an integer overflow within the CRL parser. The vulnerability can be exploited remotely for code execution on the target system by passing specially crafted data to the application, for example, a malicious S/MIME attachment.

This vulnerability allows remote attackers to execute arbitrary code on affected installations of GnuPG libksba. Interaction with this library is required to exploit this vulnerability but attack vectors may vary depending on the implementation.
The specific flaw exists within the parsing of CRL files. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a fixed-length stack-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process.

*Credits: Anonymous
CVSS Scores
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
High
Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
* Common Vulnerability Scoring System
SSVC
  • Decision:-
Exploitation
-
Automatable
-
Tech. Impact
-
* Organization's Worst-case Scenario
Timeline
  • 2022-10-14 CVE Reserved
  • 2022-10-17 CVE Published
  • 2024-08-03 CVE Updated
  • 2024-08-03 First Exploit
  • 2024-10-01 EPSS Updated
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
CWE
  • CWE-190: Integer Overflow or Wraparound
CAPEC
Affected Vendors, Products, and Versions
Vendor Product Version Other Status
Vendor Product Version Other Status <-- --> Vendor Product Version Other Status
Gnupg
Search vendor "Gnupg"
Libksba
Search vendor "Gnupg" for product "Libksba"
< 1.6.3
Search vendor "Gnupg" for product "Libksba" and version " < 1.6.3"
-
Affected
Gpg4win
Search vendor "Gpg4win"
Gpg4win
Search vendor "Gpg4win" for product "Gpg4win"
>= 2.0.0 < 4.1.0
Search vendor "Gpg4win" for product "Gpg4win" and version " >= 2.0.0 < 4.1.0"
-
Affected
Gnupg
Search vendor "Gnupg"
Vs-desktop
Search vendor "Gnupg" for product "Vs-desktop"
>= 3.1.16 < 3.1.26
Search vendor "Gnupg" for product "Vs-desktop" and version " >= 3.1.16 < 3.1.26"
-
Affected
Gnupg
Search vendor "Gnupg"
Gnupg
Search vendor "Gnupg" for product "Gnupg"
>= 2.1.0 < 2.2.41
Search vendor "Gnupg" for product "Gnupg" and version " >= 2.1.0 < 2.2.41"
lts
Affected
Gnupg
Search vendor "Gnupg"
Gnupg
Search vendor "Gnupg" for product "Gnupg"
>= 2.3.0 < 2.4.0
Search vendor "Gnupg" for product "Gnupg" and version " >= 2.3.0 < 2.4.0"
-
Affected