CVE-2022-3515: 
NixOS vulnerability analysis and mitigation

Overview

CVE-2022-3515 is a critical vulnerability discovered in the Libksba library, which is used by GnuPG for parsing ASN.1 structures in S/MIME. The vulnerability was discovered in October 2022 and affects all versions of Libksba prior to 1.6.3. The flaw exists due to an integer overflow within the CRL parser, which can be exploited remotely through specially crafted data, such as malicious S/MIME attachments (GnuPG Blog).

Technical details

The vulnerability stems from an integer overflow in the _ksba_ber_read_tl function, which parses tag-length-value objects. The issue occurs when processing the sum of header length and announced length of the value, which can wrap around and bypass size checks, leading to buffer overflow conditions. The vulnerability received a CVSS v3.1 base score of 9.8 (CRITICAL) with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, indicating its severe nature (NVD).

Impact

Successful exploitation of this vulnerability could lead to remote code execution on the target system, disclosure of sensitive information, addition or modification of data, or Denial of Service (DoS). The vulnerability primarily affects gpgsm (the S/MIME component of GnuPG) and dirmngr, which handles Certificate Revocation Lists (CRLs) and TLS certificate verification (GnuPG Blog, NetApp Advisory).

Exploitability

The vulnerability can be exploited by passing specially crafted data to the application, such as malicious S/MIME attachments. For dirmngr, attacks can be mounted using a rogue web server to serve Web Key Directory, certificates, or CRLs. While no public exploit was known at the time of disclosure, the GnuPG team noted that creating an exploit would be straightforward for experienced attackers (GnuPG Blog).

Mitigation and workarounds

The vulnerability was fixed in Libksba version 1.6.3. Users on Unix or Linux systems should update to Libksba 1.6.3 or newer and restart any background processes. Windows users should update to Gpg4win version 4.1.0 or newer, GnuPG VS-Desktop version 3.1.26 or newer, GnuPG installer for Windows version 2.4.0, or GnuPG LTS installer for Windows version 2.2.41. As a temporary workaround for Windows systems, users can extract and replace the libksba-8.dll from the respective updated package (GnuPG Blog).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Alpine

Fixed

edge

libksba: 1.6.2-r0

Fixed

v3.18

libksba: 1.6.2-r0

Fixed

v3.19

libksba: 1.6.2-r0

Fixed

v3.20

libksba: 1.6.2-r0

Fixed

v3.21

libksba: 1.6.2-r0

Fixed

v3.22

libksba: 1.6.2-r0

Fixed

v3.23

libksba: 1.6.2-r0

Fixed

Arch Linux

Fixed

rolling

libksba: 1.6.3-1

Fixed

Source: This report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-123634CRITICAL9.2
  • NGINX logoNGINX
  • nginx:1.26::nginx
NoYesNov 18, 2026
CVE-2026-123633CRITICAL9.2
  • NGINX logoNGINX
  • nginx-mod-stream-geoip-debuginfo
NoYesNov 18, 2026
CVE-2026-123007CRITICAL9.2
  • NGINX logoNGINX
  • openresty
NoYesNov 18, 2026
CVE-2026-125283MEDIUM6.9
  • NGINX logoNGINX
  • nginx:1.24::nginx-filesystem
NoYesNov 18, 2026
CVE-2026-123640MEDIUM6.9
  • NGINX logoNGINX
  • nginx:1.24::nginx-mod-stream
NoYesNov 18, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management