GnuPG up to 2.0.19 g10/import.c read_block input validation

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
5.7$0-$5k0.00

Summaryinfo

A vulnerability, which was classified as critical, has been found in GnuPG. Affected by this issue is the function read_block of the file g10/import.c. Performing a manipulation results in input validation. This vulnerability is cataloged as CVE-2012-6085. It is possible to initiate the attack remotely. There is no exploit available. It is advisable to upgrade the affected component.

Detailsinfo

A vulnerability, which was classified as critical, was found in GnuPG. This affects the function read_block of the file g10/import.c. The manipulation with an unknown input leads to a input validation vulnerability. CWE is classifying the issue as CWE-20. The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. This is going to have an impact on confidentiality, integrity, and availability. The summary by CVE is:

The read_block function in g10/import.c in GnuPG 1.4.x before 1.4.13 and 2.0.x through 2.0.19, when importing a key, allows remote attackers to corrupt the public keyring database or cause a denial of service (application crash) via a crafted length field of an OpenPGP packet.

The weakness was shared 12/28/2012 by KB Sriram as GnuPG 1.4.12 and lower - memory access errors and keyring database corruption as confirmed mailinglist post (Bugtraq). It is possible to read the advisory at seclists.org. The vendor was not involved in the public release. This vulnerability is uniquely identified as CVE-2012-6085 since 12/06/2012. The exploitability is told to be difficult. It is possible to initiate the attack remotely. No form of authentication is needed for exploitation. Technical details of the vulnerability are known, but there is no available exploit.

The vulnerability scanner Nessus provides a plugin with the ID 70601 (RHEL 5 : gnupg (RHSA-2013:1458)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Red Hat Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 390142 (Oracle VM Server for x86 Security Update for gnupg2 (OVMSA-2018-0239)).

Upgrading to version 1.4.13 eliminates this vulnerability. The upgrade is hosted for download at gnupg.org. Applying a patch is able to eliminate this problem. The bugfix is ready for download at git.gnupg.org. The problem might be mitigated by replacing the product with PGP as an alternative. The best possible mitigation is suggested to be upgrading to the latest version. A possible mitigation has been published even before and not after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at X-Force (80990), Tenable (70601), SecurityFocus (BID 57102†) and OSVDB (88865†). Further details are available at seclists.org. The entries VDB-7240 and VDB-10308 are related to this item. Be aware that VulDB is the high quality source for vulnerability data.

Productinfo

Name

Version

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 6.5
VulDB Meta Temp Score: 5.7

VulDB Base Score: 6.5
VulDB Temp Score: 5.7
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Input validation
CWE: CWE-20
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Status: Unproven

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 70601
Nessus Name: RHEL 5 : gnupg (RHSA-2013:1458)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
Nessus Port: 🔍

OpenVAS ID: 892601
OpenVAS Name: Debian Security Advisory DSA 2601-1 (gnupg, gnupg2 - missing input sanitation
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: GnuPG 1.4.13
Patch: git.gnupg.org
Alternative: PGP

Timelineinfo

12/06/2012 🔍
12/20/2012 +14 days 🔍
12/28/2012 +8 days 🔍
01/02/2013 +5 days 🔍
01/05/2013 +3 days 🔍
01/23/2013 +18 days 🔍
10/25/2013 +275 days 🔍
08/09/2019 +2114 days 🔍

Sourcesinfo

Advisory: GnuPG 1.4.12 and lower - memory access errors and keyring database corruption
Researcher: KB Sriram
Status: Confirmed
Confirmation: 🔍

CVE: CVE-2012-6085 (🔍)
GCVE (CVE): GCVE-0-2012-6085
GCVE (VulDB): GCVE-100-7239

OVAL: 🔍

X-Force: 80990 - GnuPG public keys code execution, High Risk
SecurityFocus: 57102 - GnuPG CVE-2012-6085 Multiple Remote Memory Corruption Vulnerabilities
OSVDB: 88865

Misc.: 🔍
See also: 🔍

Entryinfo

Created: 01/05/2013 14:09
Updated: 08/09/2019 15:35
Changes: 01/05/2013 14:09 (54), 08/09/2019 15:35 (31)
Complete: 🔍
Cache ID: 216:471:103

Be aware that VulDB is the high quality source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!