CVE-2010-2950: Software Security Vulnerability Vulnerability
MODERATECVE-2010-2950 is a MODERATE security vulnerability vulnerability (CWE-134: Use of Externally-Controlled Format String) affecting Software libraries in the Maven ecosystem. The weakness occurs when the product uses a function that accepts a format string as an argument, but the format string originates from an external source.. Remediation is available in the latest vendor maintenance releases.
CVE-2010-2950 at a Glance
How to Fix CVE-2010-2950
To remediate this vulnerability, upgrade all affected Software dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2010-2950, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree
Analyze the terminal output to locate any version of Software in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The mvn dependency:tree command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-134: Use of Externally-Controlled Format String, where the product uses a function that accepts a format string as an argument, but the format string originates from an external source. In Software, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
References
Frequently Asked Questions
What is CVE-2010-2950?
Which Software versions are affected?
What version fixes CVE-2010-2950?
What CWE is associated with CVE-2010-2950?
How can I check Maven dependencies for CVE-2010-2950?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-95f3-2wqm-398g",
"modified" : "2022-05-17T05:41:32Z",
"published" : "2022-05-17T05:41:32Z",
"aliases" : [ "CVE-2010-2950" ],
"details" : "Format string vulnerability in stream.c in the phar extension in PHP 5.3.x through 5.3.3 allows context-dependent attackers to obtain sensitive information (memory contents) and possibly execute arbitrary code via a crafted phar:// URI that is not properly handled by the phar_stream_flush function, leading to errors in the php_stream_wrapper_log_error function. NOTE: this vulnerability exists because of an incomplete fix for CVE-2010-2094.",
"severity" : [ ],
"affected" : [ ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2010-2950"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=598537"
}, {
"type" : "WEB",
"url" : "http://lists.apple.com/archives/security-announce/2011/Mar/msg00006.html"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2010-09/msg00006.html"
}, {
"type" : "WEB",
"url" : "http://marc.info/?l=bugtraq&m=130331363227777&w=2"
}, {
"type" : "WEB",
"url" : "http://php-security.org/2010/05/14/mops-2010-024-php-phar_stream_flush-format-string-vulnerability/index.html"
}, {
"type" : "WEB",
"url" : "http://security-tracker.debian.org/tracker/CVE-2010-2950"
}, {
"type" : "WEB",
"url" : "http://support.apple.com/kb/HT4581"
}, {
"type" : "WEB",
"url" : "http://svn.php.net/viewvc?view=revision&revision=302565"
}, {
"type" : "WEB",
"url" : "http://www.mandriva.com/security/advisories?name=MDVSA-2010:254"
}, {
"type" : "WEB",
"url" : "http://www.php.net/ChangeLog-5.php"
}, {
"type" : "WEB",
"url" : "http://www.php.net/archive/2010.php#id2010-12-10-1"
}, {
"type" : "WEB",
"url" : "http://www.php.net/releases/5_3_4.php"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-134" ],
"severity" : "MODERATE",
"github_reviewed" : false,
"github_reviewed_at" : null,
"nvd_published_at" : "2010-09-28T18:00:00Z"
}
}