CVE-2014-9087
NoneCVSS
—
EPSS
5.7%
Published
Dec 1, 2014
CISA due date
—
Cloudanix analysis
A bug in a widely used encryption library can let attackers crash programs that handle secure email or keys by sending specially crafted messages.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Integer underflow in ksba_oid_to_str triggers a buffer overflow when parsing a crafted OID inside S/MIME or ECC-based OpenPGP data, leading to denial of service or potential code execution.
Why it matters to the business
Processing of crafted secure messages or keys can crash applications that rely on Libksba, interrupting encrypted email workflows and key-management operations across Linux distributions and GnuPG deployments.
How an attack unfolds
An attacker embeds a maliciously small OID length value in an S/MIME message or OpenPGP data stream, sends the data to a target that uses GnuPG or any Libksba-dependent tool, and the underflow during OID string conversion produces an out-of-bounds write.
How to fix it
Upgrade Libksba to version 1.3.2 or newer; apply the corresponding security updates released by Mageia, Debian, Ubuntu, and other distributions that package GnuPG and Libksba.
How to confirm the fix worked
Confirm that the running Libksba shared library reports version 1.3.2 or later; replay known-good and known-bad OID test vectors through GnuPG or any dependent application to verify absence of crashes.
Typical attack path
- Craft S/MIME or OpenPGP data containing an OID with an underflow-inducing length
- Deliver the data via email, keyserver, or file transfer to a vulnerable recipient
- Trigger parsing of the OID inside ksba_oid_to_str
- Induce buffer overflow resulting in crash or code execution
How to detect it
Search process crash logs and application core dumps for ksba_oid_to_str or GnuPG when handling inbound S/MIME or OpenPGP data; review mail-server and GnuPG logs for unusual OID-related errors or early terminations.
What your security team should do
- Inventory all systems that ship or link against Libksba and schedule upgrades to 1.3.2+
- Block or sandbox inbound S/MIME and OpenPGP messages until patches are deployed
- Add version checks for libksba to routine vulnerability scanning and patch compliance reports
The record
Integer underflow in the ksba_oid_to_str function in Libksba before 1.3.2, as used in GnuPG, allows remote attackers to cause a denial of service (crash) via a crafted OID in a (1) S/MIME message or (2) ECC based OpenPGP data, which triggers a buffer overflow.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | libksba | 0 | 1.3.2-1 |
| Debian:12 | libksba | 0 | 1.3.2-1 |
| Debian:13 | libksba | 0 | 1.3.2-1 |
| Debian:6.0 | libksba | 0 | 1.0.7-2+deb6u1 |
| Debian:7 | libksba | 0 | 1.2.0-2+deb7u1 |
| Mageia:3 | libksba | 0 | 1.3.2-1.mga3 |
| Mageia:4 | libksba | 0 | 1.3.2-1.mga4 |
| Ubuntu:14.04:LTS | libksba | 0 | 1.3.0-3ubuntu0.14.04.1 |
| openSUSE:Tumbleweed | libksba | 0 | 1.3.5-1.3 |
Related vulnerabilities
- CVE-2016-4353 ber-decoder.c in Libksba before 1.3.3 does not properly handle decoder stack overflows… Also affects libksba
- CVE-2026-88833 A flaw was found in BusyBox's udhcpc DHCP client. CWE-191
- CVE-2026-44235 rabbitmq-c is a C-language AMQP client library for RabbitMQ. CWE-191
- CVE-2026-81977 Acrobat Reader is affected by an Integer Underflow (Wrap or Wraparound) vulnerability… CWE-191
- CVE-2026-66767 SAP NetWeaver Application Server for ABAP and ABAP Platform allows an unauthenticated… CWE-191
- CVE-2026-18341 IBM i 7.6, 7.5, 7.4, and 7.3 could allow a remote authenticated attacker to corrupt… CWE-191
- CVE-2026-9624 A denial-of-service security issue exists within RSLinx® Classic. CWE-191
- CVE-2026-9622 A denial-of-service security issue exists within RSLinx® Classic. CWE-191