CVE-2014-3564
published 2014-10-20CVE-2014-3564: Multiple heap-based buffer overflows in the status_handler function in (1) engine-gpgsm.c and (2) engine-uiserver.c in GPGME before 1.5.1 allow remote…
PriorityP336medium6.8CVSS 2.0
AVNACMAuNCPIPAP
EPSS
4.29%
90.1th percentile
Multiple heap-based buffer overflows in the status_handler function in (1) engine-gpgsm.c and (2) engine-uiserver.c in GPGME before 1.5.1 allow remote attackers to cause a denial of service (crash) and possibly execute arbitrary code via vectors related to "different line lengths in a specific order."
Affected
5 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| debian | debian_linux | — | — |
| debian | gpgme1.0 | < gpgme1.0 1.5.1-1 (bookworm) | gpgme1.0 1.5.1-1 (bookworm) |
| gnu | gpgme | <= 1.5.0 | — |
CVSS provenance
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
osv6.8MEDIUM
vendor_debian6.8MEDIUM
vendor_redhat6.8MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
GPGME vulnerability
vendor_ubuntu·2014-08-06
CVE-2014-3564 GPGME vulnerability
Title: GPGME vulnerability
Summary: GPGME could be made to crash or run programs as your login if it processed
a specially crafted certificate.
Tomáš Trnka discovered that GPGME incorrectly handled certain certificate
line lengths. An attacker could use this issue to cause applications using
GPGME to crash, resulting in a denial of service, or possibly execute
arbitrary code.
Instructions: In general, a standard system update will make all the necessary changes.
Red Hat
gpgme: heap-based buffer overflow in gpgsm status handler
vendor_redhat·2014-07-30·CVSS 6.8
CVE-2014-3564 [MEDIUM] CWE-122 gpgme: heap-based buffer overflow in gpgsm status handler
gpgme: heap-based buffer overflow in gpgsm status handler
Multiple heap-based buffer overflows in the status_handler function in (1) engine-gpgsm.c and (2) engine-uiserver.c in GPGME before 1.5.1 allow remote attackers to cause a denial of service (crash) and possibly execute arbitrary code via vectors related to "different line lengths in a specific order."
Statement: Red Hat Product Security has rated this issue as having Low security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.
Package: gpgme (Red Hat Enterprise Linux 6) - Will not fix
Package: gpgme (Red Hat Enterprise Linux 7) - Will not fix
Debian
CVE-2014-3564: gpgme1.0 - Multiple heap-based buffer overflows in the status_handler function in (1) engin...
vendor_debian·2014·CVSS 6.8
CVE-2014-3564 [MEDIUM] CVE-2014-3564: gpgme1.0 - Multiple heap-based buffer overflows in the status_handler function in (1) engin...
Multiple heap-based buffer overflows in the status_handler function in (1) engine-gpgsm.c and (2) engine-uiserver.c in GPGME before 1.5.1 allow remote attackers to cause a denial of service (crash) and possibly execute arbitrary code via vectors related to "different line lengths in a specific order."
Scope: local
bookworm: resolved (fixed in 1.5.1-1)
bullseye: resolved (fixed in 1.5.1-1)
forky: resolved (fixed in 1.5.1-1)
sid: resolved (fixed in 1.5.1-1)
trixie: resolved (fixed in 1.5.1-1)
GHSA
GHSA-7jm5-qh8p-8j94: Multiple heap-based buffer overflows in the status_handler function in (1) engine-gpgsm
ghsa_unreviewed·2022-05-17
CVE-2014-3564 [MEDIUM] CWE-119 GHSA-7jm5-qh8p-8j94: Multiple heap-based buffer overflows in the status_handler function in (1) engine-gpgsm
Multiple heap-based buffer overflows in the status_handler function in (1) engine-gpgsm.c and (2) engine-uiserver.c in GPGME before 1.5.1 allow remote attackers to cause a denial of service (crash) and possibly execute arbitrary code via vectors related to "different line lengths in a specific order."
OSV
CVE-2014-3564: Multiple heap-based buffer overflows in the status_handler function in (1) engine-gpgsm
osv·2014-10-20·CVSS 6.8
CVE-2014-3564 [MEDIUM] CVE-2014-3564: Multiple heap-based buffer overflows in the status_handler function in (1) engine-gpgsm
Multiple heap-based buffer overflows in the status_handler function in (1) engine-gpgsm.c and (2) engine-uiserver.c in GPGME before 1.5.1 allow remote attackers to cause a denial of service (crash) and possibly execute arbitrary code via vectors related to "different line lengths in a specific order."
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2014-3564 gpgme: heap-based buffer overflow in gpgsm status handler [epel-5]
bugzilla·2014-07-31·CVSS 6.8
CVE-2014-3564 [MEDIUM] CVE-2014-3564 gpgme: heap-based buffer overflow in gpgsm status handler [epel-5]
CVE-2014-3564 gpgme: heap-based buffer overflow in gpgsm status handler [epel-5]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora EPEL.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
epel-5 tracking bug for gpgme: see blocks bug li
Bugzilla
CVE-2014-3564 gpgme: heap-based buffer overflow in gpgsm status handler [fedora-all]
bugzilla·2014-07-31·CVSS 6.8
CVE-2014-3564 [MEDIUM] CVE-2014-3564 gpgme: heap-based buffer overflow in gpgsm status handler [fedora-all]
CVE-2014-3564 gpgme: heap-based buffer overflow in gpgsm status handler [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versi
Bugzilla
CVE-2014-3564 gpgme: heap-based buffer overflow in gpgsm status handler
bugzilla·2014-06-25·CVSS 6.8
CVE-2014-3564 [MEDIUM] CVE-2014-3564 gpgme: heap-based buffer overflow in gpgsm status handler
CVE-2014-3564 gpgme: heap-based buffer overflow in gpgsm status handler
Created attachment 912217
Patch fixing the overflow
Description of problem:
A bug in GPGME crashes my KMail reproducibly when opening the private key selection dialog twice in a row.
The crash is due to an overflow of the gpgsm->colon.attic.line buffer within status_handler() in engine-gpgsm.c. This buffer is getting (re)allocated at line 831 like this:
if (gpgsm->colon.attic.linesize colon.attic.linesize += linelen + 1;
...
So in other words, the code allocates a buffer to be *alinelen + linelen + 1 bytes long, but then thinks its capacity is actually linesize + linelen + 1. This assumption is wrong if *alinelen (the number of bytes used in the buffer prior to reallocation) is lower than linesize (the total lengt
http://git.gnupg.org/cgi-bin/gitweb.cgi?p=gpgme.git%3Ba=commit%3Bh=2cbd76f7911fc215845e89b50d6af5ff4a83dd77http://seclists.org/oss-sec/2014/q3/266http://www.debian.org/security/2014/dsa-3005http://www.oracle.com/technetwork/topics/security/bulletinoct2015-2511968.htmlhttp://www.osvdb.org/109699http://www.securityfocus.com/bid/68990https://bugzilla.redhat.com/show_bug.cgi?id=1113267http://git.gnupg.org/cgi-bin/gitweb.cgi?p=gpgme.git%3Ba=commit%3Bh=2cbd76f7911fc215845e89b50d6af5ff4a83dd77http://seclists.org/oss-sec/2014/q3/266http://www.debian.org/security/2014/dsa-3005http://www.oracle.com/technetwork/topics/security/bulletinoct2015-2511968.htmlhttp://www.osvdb.org/109699http://www.securityfocus.com/bid/68990https://bugzilla.redhat.com/show_bug.cgi?id=1113267
2014-10-20
Published