CVE-2022-3515: Integer Overflow

Published Oct 17, 2022
·
Updated

A bug found in libksba, the library used by GnuPG for parsing the ASN.1 structures as used by S/MIME. The bug affects all versions of Libksba before 1.6.2 and may be used for remote code execution.

https://www.gnupg.org/blog/20221017-pepe-left-the-ksba.html https://dev.gnupg.org/T6230 https://dev.gnupg.org/rK4b7d9cd4a018898d7714ce06f3faf2626c14582b https://lwn.net/Articles/911467/

Other sources

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.

Affected Software

12 affected componentsFixes available
redhat/libksba<0:1.3.0-6.el7_9
0:1.3.0-6.el7_9
redhat/libksba<0:1.3.5-8.el8_6
0:1.3.5-8.el8_6
redhat/libksba<0:1.3.5-8.el8_1
0:1.3.5-8.el8_1
redhat/libksba<0:1.3.5-8.el8_2
0:1.3.5-8.el8_2
redhat/libksba<0:1.3.5-8.el8_4
0:1.3.5-8.el8_4
redhat/libksba<0:1.5.1-5.el9_0
0:1.5.1-5.el9_0
redhat/libksba<1.6.2
1.6.2
gnupg Libksba<1.6.3
Gpg4win Gpg4win>=2.0.0<4.1.0
gnupg Vs-desktop>=3.1.16<3.1.26
gnupg GnuPG>=2.1.0<2.2.41
gnupg GnuPG>=2.3.0<2.4.0

Event History

Oct 17, 2022
CVE Published
12:00 AM
Oct 18, 2022
Data Sourced
via Red Hat·05:39 AM
DescriptionSeverityAffected Software
Jan 12, 2023
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID for this Libksba vulnerability?

The vulnerability ID for this Libksba vulnerability is CVE-2022-3515.

2

What is the severity of CVE-2022-3515?

The severity of CVE-2022-3515 is critical (9.8).

3

How does the vulnerability in the Libksba library occur?

The vulnerability in the Libksba library occurs due to an integer overflow within the CRL parser.

4

How can the vulnerability in Libksba be exploited?

The vulnerability in Libksba 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.

5

Where can I find more information about CVE-2022-3515?

You can find more information about CVE-2022-3515 at the following references: [link1](https://www.gnupg.org/blog/20221017-pepe-left-the-ksba.html), [link2](https://dev.gnupg.org/T6230), [link3](https://dev.gnupg.org/rK4b7d9cd4a018898d7714ce06f3faf2626c14582b).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203