libksba - Integer Underflow Heap-based Buffer Overflow

libksba Updated 02 Oct 2025

Summary

27/11/2014
N/A
Yes i
Unrated
Not published

DSA-3078-1: libksba - security update. Affects libksba versions < 1.2.0-2+deb7u1. Fixed in 1.2.0-2+deb7u1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

libksba is an X.509 and CMS (PKCS#7) library used for handling cryptographic operations. It provides functions for parsing and manipulating certificates, keys, and other cryptographic data. The library is commonly used by applications that require X.509 and CMS support. However, a vulnerability has been discovered in libksba that could allow an attacker to execute arbitrary code or cause a denial of service.

Vulnerability Detail

The vulnerability in libksba is an integer underflow flaw that leads to a heap-based buffer overflow. Specifically, the ksba_oid_to_str() function is affected. By exploiting this flaw, an attacker can craft special S/MIME messages or ECC-based OpenPGP data to trigger the buffer overflow. This could result in a crash of the application using libksba or potentially allow the execution of arbitrary code. The impact of this vulnerability depends on the context in which libksba is used and the privileges of the affected application.

How To Fix

Minimum fixed version

1.2.0-2+deb7u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libksba

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to apply the provided fix by upgrading the libksba package to the patched version.

Conclusion

The libksba library is vulnerable to an integer underflow heap-based buffer overflow. This vulnerability can be exploited to crash the application using libksba or potentially execute arbitrary code. To mitigate this issue, it is recommended to upgrade the libksba package to the patched version. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for libksba →

Share this vulnerability

FAQ

libksba is an X.509 and CMS (PKCS#7) library used for handling cryptographic operations.

The impact of this vulnerability depends on the context in which libksba is used and the privileges of the affected application. It could result in a crash of the application or allow the execution of arbitrary code.

To fix this vulnerability, upgrade the libksba package to the patched version provided.

There is no known workaround for this vulnerability. It is crucial to apply the provided fix by upgrading the libksba package.

For more information about this vulnerability, you can refer to the DSA-3078-1 advisory on the Debian Security Tracker website.

Related vulnerabilities

Recent vulnerabilities recorded for libksba.

How To Fix

Minimum fixed version

1.2.0-2+deb7u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libksba

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback