CVE-2012-0815
Description
From CVE.org
The headerVerifyInfo function in lib/header.c in RPM before 4.9.1.3 allows remote attackers to cause a denial of service (crash) and possibly execute arbitrary code via a negative value in a region offset of a package header, which is not properly handled in a numeric range comparison.
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
CVSS v2 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 7.6 | 6.8 | N/A |
| Attack Vector | Network | Network | N/A |
| Access Complexity | High | Medium | N/A |
| Authentication | None | None | N/A |
| Confidentiality Impact | Complete | Partial | N/A |
| Integrity Impact | Complete | Partial | N/A |
| Availability Impact | Complete | Partial | N/A |
Vector
Red Hat: AV:N/AC:H/Au:N/C:C/I:C/A:C
NVD: AV:N/AC:M/Au:N/C:P/I:P/A:P
Understanding the Weakness (CWE)
Confidentiality,Integrity
Technical Impact: Modify Memory; Read Memory
If a negative value is used to access memory, buffers, or other indexable structures, it could access memory outside the bounds of the buffer.
Availability
Technical Impact: DoS: Resource Consumption (Memory); DoS: Resource Consumption (Other)
In some contexts, a negative value could lead to resource consumption, e.g., if the negative value is used for memory allocation.
Integrity,Confidentiality,Availability
Technical Impact: Modify Application Data; Execute Unauthorized Code or Commands
An attacker could modify the structure of the message or data being sent to the downstream component, possibly injecting commands.
Integrity
Technical Impact: Varies by Context; Unexpected State
The use of a negative number in a positive-only context could have security implications for other types of resources. For example, a shopping cart might check that the user is not requesting more than 10 items, but a request for -3 items could cause the application to calculate a negative price and credit the attacker's account.
Acknowledgements
This issue was discovered by Ramon de C Valle (Red Hat Product Security Team).
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.