CVE-2012-2965: Resin Caucho Quercus, As Distributed Vulnerability

HIGH
Advisory Identifier: GHSA-p332-fw36-4hqx
CWE-20
Published
Advisory Summary

CVE-2012-2965 is a HIGH caucho quercus, as distributed vulnerability (CWE-20: Improper Input Validation) affecting Resin libraries in the Maven ecosystem. The issue involves caucho quercus, as distributed in resin, does not properly handle unspecified characters in the names of variables. Remediation is available by upgrading affected packages to version 4.0.29.

CVE-2012-2965 at a Glance

CVE Identifier CVE-2012-2965
GHSA Identifier GHSA-p332-fw36-4hqx
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-20: Improper Input Validation
Affected Product Resin
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2012-2965

To remediate this vulnerability, upgrade all affected Resin dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

com.caucho:resin fixed: 4.0.29
<dependency>
    <groupId>com.caucho</groupId>
    <artifactId>resin</artifactId>
    <version>4.0.29</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=com.caucho

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2012-2965, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=com.caucho

Analyze the terminal output to locate any version of Resin in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.0.29), your application is affected.

Note: The mvn dependency:tree -Dincludes=com.caucho 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-20: Improper Input Validation, where 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. In Resin, 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

Caucho Quercus, as distributed in Resin before 4.0.29, does not properly handle unspecified characters in the names of variables, which has unknown impact and remote attack vectors, related to an "HTTP Parameter Contamination" issue.

CVE-2012-2965 Affected Resin Versions

1 component(s)
Fixed Versions:
4.0.29
Product / Package Ecosystem Affected Versions Fixed Version
com.caucho:resin
Maven
< 4.0.29
4.0.29

References

Frequently Asked Questions

What is CVE-2012-2965?
CVE-2012-2965 is a security vulnerability in Resin involving Caucho Quercus, as distributed in Resin, does not properly handle unspecified characters in the names of variables under CWE-20: Improper Input Validation.
Which Resin versions are affected?
Affected versions include releases prior to 4.0.29 across affected packages: com.caucho:resin.
What version fixes CVE-2012-2965?
Upgrading to 4.0.29 (or the latest patched release for your respective branch) resolves the vulnerability.
Is resin affected?
Yes, com.caucho:resin is affected in releases prior to 4.0.29. Upgrade your dependency to 4.0.29 or later.
What CWE is associated with CVE-2012-2965?
CVE-2012-2965 is classified under CWE-20: Improper Input Validation (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.).
How can I check Maven dependencies for CVE-2012-2965?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.caucho'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-p332-fw36-4hqx",
  "modified" : "2025-04-12T02:59:39Z",
  "published" : "2022-05-17T05:23:56Z",
  "aliases" : [ "CVE-2012-2965" ],
  "summary" : "Caucho Quercus, as distributed in Resin, does not properly handle unspecified characters in the names of variables",
  "details" : "Caucho Quercus, as distributed in Resin before 4.0.29, does not properly handle unspecified characters in the names of variables, which has unknown impact and remote attack vectors, related to an \"HTTP Parameter Contamination\" issue.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.caucho:resin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.0.29"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-2965"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20131210160901/http://en.securitylab.ru:80/lab/PT-2012-05"
  }, {
    "type" : "WEB",
    "url" : "http://caucho.com/resin-4.0/changes/changes.xtp"
  }, {
    "type" : "WEB",
    "url" : "http://en.securitylab.ru/lab"
  }, {
    "type" : "WEB",
    "url" : "http://www.kb.cert.org/vuls/id/309979"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-04-12T02:59:39Z",
    "nvd_published_at" : "2012-08-12T16:55:00Z"
  }
}