{"answers":{"affected":"It affects 4 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-3515 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2022-3515 is a critical vulnerability in libksba, published on 12 Jan 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-3515 and fix it if it is affected.\n\nWhat it is: CVE-2022-3515 is a critical vulnerability in libksba, published on 12 Jan 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-3515 exists.\n\nAffected product: libksba. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-3515/ (Markdown: https://insights.sbomify.com/CVE-2022-3515/index.md)","id":"CVE-2022-3515","markdown":"https://insights.sbomify.com/CVE-2022-3515/index.md","name":"CVE-2022-3515","record":{"aliases":["ALPINE-CVE-2022-3515","ALSA-2022:7089","ALSA-2022:7090","AZL-13005","DEBIAN-CVE-2022-3515","DLA-3153-1","DSA-5255-1","GHSA-58wq-p76f-6qjh","JLSEC-2025-93","MGASA-2022-0404","OESA-2022-2021","RHSA-2022:7088","RHSA-2022:7089","RHSA-2022:7090","RHSA-2022:7209","RHSA-2022:7283","RHSA-2022:7927","RLSA-2022:7089","RLSA-2022:7090","SUSE-SU-2022:3681-1","SUSE-SU-2022:3683-1","UBUNTU-CVE-2022-3515","USN-5688-1","openSUSE-SU-2024:12418-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Libksba library","requires_auth":"none","summary":"Remote attackers can execute arbitrary code on target systems by sending specially crafted data, such as malicious S/MIME attachments, to applications using Libksba.","user_interaction":"not_required","vuln_class":"integer_overflow"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"gnupg","vendor":"gnupg"},{"product":"libksba","vendor":"gnupg"},{"product":"vs-desktop","vendor":"gnupg"},{"product":"gpg4win","vendor":"gpg4win"}],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"description":"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.","ecosystems":["AlmaLinux:8","AlmaLinux:9","Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::computenode","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation","Red Hat:enterprise_linux:8::baseos","Red Hat:enterprise_linux:8::crb","Red Hat:enterprise_linux:9::baseos","Red Hat:enterprise_linux:9::crb","Red Hat:rhel_aus:8.2::baseos","Red Hat:rhel_e4s:8.1::baseos","Red Hat:rhel_e4s:8.2::baseos","Red Hat:rhel_eus:8.4::baseos","Red Hat:rhel_eus:8.4::crb","Red Hat:rhel_tus:8.2::baseos","Rocky Linux:8","Rocky Linux:9","SUSE:Enterprise Storage 6","SUSE:Enterprise Storage 7","SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","SUSE:Linux Enterprise High Performance Computing 15-ESPOS","SUSE:Linux Enterprise High Performance Computing 15-LTSS","SUSE:Linux Enterprise Micro 5.1","SUSE:Linux Enterprise Micro 5.2","SUSE:Linux Enterprise Micro 5.3","SUSE:Linux Enterprise Module for Basesystem 15 SP3","SUSE:Linux Enterprise Module for Basesystem 15 SP4","SUSE:Linux Enterprise Server 12 SP2-BCL","SUSE:Linux Enterprise Server 12 SP3-BCL","SUSE:Linux Enterprise Server 12 SP4-LTSS","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server 15 SP1-BCL","SUSE:Linux Enterprise Server 15 SP1-LTSS","SUSE:Linux Enterprise Server 15 SP2-BCL","SUSE:Linux Enterprise Server 15 SP2-LTSS","SUSE:Linux Enterprise Server 15-LTSS","SUSE:Linux Enterprise Server for SAP Applications 12 SP4","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15","SUSE:Linux Enterprise Server for SAP Applications 15 SP1","SUSE:Linux Enterprise Server for SAP Applications 15 SP2","SUSE:Linux Enterprise Software Development Kit 12 SP5","SUSE:Manager Proxy 4.1","SUSE:Manager Retail Branch Server 4.1","SUSE:Manager Server 4.1","SUSE:OpenStack Cloud 9","SUSE:OpenStack Cloud Crowbar 9","openSUSE:Leap 15.3","openSUSE:Leap 15.4","openSUSE:Leap Micro 5.2","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Integer overflow in libksba","id":"CVE-2022-3515","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"integer_overflow","year":"2022"},"n_packages":85,"n_references":5,"next":{"headline":"Cross-site Scripting (XSS) - Stored in librenms/librenms","id":"CVE-2022-3516"},"packages":[{"ecosystem":"AlmaLinux:8","fixed":["1.3.5-8.el8_6"],"introduced":["0"],"last_affected":[],"package":"libksba","purl":"pkg:rpm/almalinux/libksba","source":"ALSA-2022:7089"},{"ecosystem":"AlmaLinux:8","fixed":["1.3.5-8.el8_6"],"introduced":["0"],"last_affected":[],"package":"libksba-devel","purl":"pkg:rpm/almalinux/libksba-devel","source":"ALSA-2022:7089"},{"ecosystem":"AlmaLinux:9","fixed":["1.5.1-5.el9_0"],"introduced":["0"],"last_affected":[],"package":"libksba","purl":"pkg:rpm/almalinux/libksba","source":"ALSA-2022:7090"},{"ecosystem":"AlmaLinux:9","fixed":["1.5.1-5.el9_0"],"introduced":["0"],"last_affected":[],"package":"libksba-devel","purl":"pkg:rpm/almalinux/libksba-devel","source":"ALSA-2022:7090"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.3.0-6.el7_9"],"introduced":["0"],"last_affected":[],"package":"libksba","purl":"pkg:rpm/redhat/libksba","source":"RHSA-2022:7088"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.3.0-6.el7_9"],"introduced":["0"],"last_affected":[],"package":"libksba-debuginfo","purl":"pkg:rpm/redhat/libksba-debuginfo","source":"RHSA-2022:7088"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.3.0-6.el7_9"],"introduced":["0"],"last_affected":[],"package":"libksba-devel","purl":"pkg:rpm/redhat/libksba-devel","source":"RHSA-2022:7088"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.3.0-6.el7_9"],"introduced":["0"],"last_affected":[],"package":"libksba","purl":"pkg:rpm/redhat/libksba","source":"RHSA-2022:7088"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.3.0-6.el7_9"],"introduced":["0"],"last_affected":[],"package":"libksba-debuginfo","purl":"pkg:rpm/redhat/libksba-debuginfo","source":"RHSA-2022:7088"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.3.0-6.el7_9"],"introduced":["0"],"last_affected":[],"package":"libksba-devel","purl":"pkg:rpm/redhat/libksba-devel","source":"RHSA-2022:7088"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.3.0-6.el7_9"],"introduced":["0"],"last_affected":[],"package":"libksba","purl":"pkg:rpm/redhat/libksba","source":"RHSA-2022:7088"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.3.0-6.el7_9"],"introduced":["0"],"last_affected":[],"package":"libksba-debuginfo","purl":"pkg:rpm/redhat/libksba-debuginfo","source":"RHSA-2022:7088"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.3.0-6.el7_9"],"introduced":["0"],"last_affected":[],"package":"libksba-devel","purl":"pkg:rpm/redhat/libksba-devel","source":"RHSA-2022:7088"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:1.3.0-6.el7_9"],"introduced":["0"],"last_affected":[],"package":"libksba","purl":"pkg:rpm/redhat/libksba","source":"RHSA-2022:7088"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:1.3.0-6.el7_9"],"introduced":["0"],"last_affected":[],"package":"libksba-debuginfo","purl":"pkg:rpm/redhat/libksba-debuginfo","source":"RHSA-2022:7088"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:1.3.0-6.el7_9"],"introduced":["0"],"last_affected":[],"package":"libksba-devel","purl":"pkg:rpm/redhat/libksba-devel","source":"RHSA-2022:7088"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1.3.5-8.el8_6"],"introduced":["0"],"last_affected":[],"package":"libksba","purl":"pkg:rpm/redhat/libksba","source":"RHSA-2022:7089"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1.3.5-8.el8_6"],"introduced":["0"],"last_affected":[],"package":"libksba-debuginfo","purl":"pkg:rpm/redhat/libksba-debuginfo","source":"RHSA-2022:7089"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1.3.5-8.el8_6"],"introduced":["0"],"last_affected":[],"package":"libksba-debugsource","purl":"pkg:rpm/redhat/libksba-debugsource","source":"RHSA-2022:7089"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:1.3.5-8.el8_6"],"introduced":["0"],"last_affected":[],"package":"libksba-debuginfo","purl":"pkg:rpm/redhat/libksba-debuginfo","source":"RHSA-2022:7089"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:1.3.5-8.el8_6"],"introduced":["0"],"last_affected":[],"package":"libksba-debugsource","purl":"pkg:rpm/redhat/libksba-debugsource","source":"RHSA-2022:7089"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:1.3.5-8.el8_6"],"introduced":["0"],"last_affected":[],"package":"libksba-devel","purl":"pkg:rpm/redhat/libksba-devel","source":"RHSA-2022:7089"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:1.5.1-5.el9_0"],"introduced":["0"],"last_affected":[],"package":"libksba","purl":"pkg:rpm/redhat/libksba","source":"RHSA-2022:7090"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:1.5.1-5.el9_0"],"introduced":["0"],"last_affected":[],"package":"libksba-debuginfo","purl":"pkg:rpm/redhat/libksba-debuginfo","source":"RHSA-2022:7090"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:1.5.1-5.el9_0"],"introduced":["0"],"last_affected":[],"package":"libksba-debugsource","purl":"pkg:rpm/redhat/libksba-debugsource","source":"RHSA-2022:7090"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:1.5.1-5.el9_0"],"introduced":["0"],"last_affected":[],"package":"libksba-debuginfo","purl":"pkg:rpm/redhat/libksba-debuginfo","source":"RHSA-2022:7090"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:1.5.1-5.el9_0"],"introduced":["0"],"last_affected":[],"package":"libksba-debugsource","purl":"pkg:rpm/redhat/libksba-debugsource","source":"RHSA-2022:7090"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:1.5.1-5.el9_0"],"introduced":["0"],"last_affected":[],"package":"libksba-devel","purl":"pkg:rpm/redhat/libksba-devel","source":"RHSA-2022:7090"},{"ecosystem":"Red Hat:rhel_aus:8.2::baseos","fixed":["0:1.3.5-8.el8_2"],"introduced":["0"],"last_affected":[],"package":"libksba","purl":"pkg:rpm/redhat/libksba","source":"RHSA-2022:7283"},{"ecosystem":"Red Hat:rhel_aus:8.2::baseos","fixed":["0:1.3.5-8.el8_2"],"introduced":["0"],"last_affected":[],"package":"libksba-debuginfo","purl":"pkg:rpm/redhat/libksba-debuginfo","source":"RHSA-2022:7283"},{"ecosystem":"Red Hat:rhel_aus:8.2::baseos","fixed":["0:1.3.5-8.el8_2"],"introduced":["0"],"last_affected":[],"package":"libksba-debugsource","purl":"pkg:rpm/redhat/libksba-debugsource","source":"RHSA-2022:7283"},{"ecosystem":"Red Hat:rhel_e4s:8.1::baseos","fixed":["0:1.3.5-8.el8_1"],"introduced":["0"],"last_affected":[],"package":"libksba","purl":"pkg:rpm/redhat/libksba","source":"RHSA-2022:7209"},{"ecosystem":"Red Hat:rhel_e4s:8.1::baseos","fixed":["0:1.3.5-8.el8_1"],"introduced":["0"],"last_affected":[],"package":"libksba-debuginfo","purl":"pkg:rpm/redhat/libksba-debuginfo","source":"RHSA-2022:7209"},{"ecosystem":"Red Hat:rhel_e4s:8.1::baseos","fixed":["0:1.3.5-8.el8_1"],"introduced":["0"],"last_affected":[],"package":"libksba-debugsource","purl":"pkg:rpm/redhat/libksba-debugsource","source":"RHSA-2022:7209"},{"ecosystem":"Red Hat:rhel_e4s:8.2::baseos","fixed":["0:1.3.5-8.el8_2"],"introduced":["0"],"last_affected":[],"package":"libksba","purl":"pkg:rpm/redhat/libksba","source":"RHSA-2022:7283"},{"ecosystem":"Red Hat:rhel_e4s:8.2::baseos","fixed":["0:1.3.5-8.el8_2"],"introduced":["0"],"last_affected":[],"package":"libksba-debuginfo","purl":"pkg:rpm/redhat/libksba-debuginfo","source":"RHSA-2022:7283"},{"ecosystem":"Red Hat:rhel_e4s:8.2::baseos","fixed":["0:1.3.5-8.el8_2"],"introduced":["0"],"last_affected":[],"package":"libksba-debugsource","purl":"pkg:rpm/redhat/libksba-debugsource","source":"RHSA-2022:7283"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:1.3.5-8.el8_4"],"introduced":["0"],"last_affected":[],"package":"libksba","purl":"pkg:rpm/redhat/libksba","source":"RHSA-2022:7927"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:1.3.5-8.el8_4"],"introduced":["0"],"last_affected":[],"package":"libksba-debuginfo","purl":"pkg:rpm/redhat/libksba-debuginfo","source":"RHSA-2022:7927"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:1.3.5-8.el8_4"],"introduced":["0"],"last_affected":[],"package":"libksba-debugsource","purl":"pkg:rpm/redhat/libksba-debugsource","source":"RHSA-2022:7927"}],"prev":{"headline":"Denial of service in GitLab","id":"CVE-2022-3514"},"products":["libksba"],"published":"2023-01-12","related":[{"cvss_score":9.3,"headline":"Memory corruption in n/a","id":"CVE-2008-1530","kev_date_added":null,"published":"2008-03-27"},{"cvss_score":8.4,"headline":"Memory corruption in GnuPG","id":"CVE-2026-24882","kev_date_added":null,"published":"2026-01-27"},{"cvss_score":8.1,"headline":"Memory corruption in GnuPG","id":"CVE-2026-24881","kev_date_added":null,"published":"2026-01-27"},{"cvss_score":7.8,"headline":"Memory corruption in GnuPG","id":"CVE-2025-68973","kev_date_added":null,"published":"2025-12-28"},{"cvss_score":7.8,"headline":"Memory corruption in n/a","id":"CVE-2020-25125","kev_date_added":null,"published":"2020-09-03"},{"cvss_score":6.8,"headline":"Memory corruption in n/a","id":"CVE-2006-6169","kev_date_added":null,"published":"2006-11-29"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-08","vendors":["n/a"]},"summary":"Remote attackers can execute arbitrary code on target systems by sending specially crafted data, such as malicious S/MIME attachments, to applications using Libksba.","url":"https://insights.sbomify.com/CVE-2022-3515/"}