CVE-2012-4386 (GCVE-0-2012-4386)

Vulnerability from cvelistv5 – Published: 2012-09-05 23:00 – Updated: 2024-08-06 20:35
VLAI
Summary
The token check mechanism in Apache Struts 2.0.0 through 2.3.4 does not properly validate the token name configuration parameter, which allows remote attackers to perform cross-site request forgery (CSRF) attacks by setting the token name configuration parameter to a session attribute.
Severity
No CVSS data available.
CWE
  • n/a
Assigner
redhat CNA under the redhat root
CNA scorecard B 82/100 over 1131 records in the last 180 days details
References
Date Public
2012-08-03 00:00
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-06T20:35:09.272Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_refsource_CONFIRM",
              "x_transferred"
            ],
            "url": "https://issues.apache.org/jira/browse/WW-3858"
          },
          {
            "name": "apache-struts-csrf(78182)",
            "tags": [
              "vdb-entry",
              "x_refsource_XF",
              "x_transferred"
            ],
            "url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/78182"
          },
          {
            "name": "[oss-security] 20120901 Re: CVE request: Apache Struts S2-010 and S2-011",
            "tags": [
              "mailing-list",
              "x_refsource_MLIST",
              "x_transferred"
            ],
            "url": "http://www.openwall.com/lists/oss-security/2012/09/01/5"
          },
          {
            "name": "50420",
            "tags": [
              "third-party-advisory",
              "x_refsource_SECUNIA",
              "x_transferred"
            ],
            "url": "http://secunia.com/advisories/50420"
          },
          {
            "name": "55346",
            "tags": [
              "vdb-entry",
              "x_refsource_BID",
              "x_transferred"
            ],
            "url": "http://www.securityfocus.com/bid/55346"
          },
          {
            "tags": [
              "x_refsource_CONFIRM",
              "x_transferred"
            ],
            "url": "http://struts.apache.org/2.x/docs/s2-010.html"
          },
          {
            "name": "[oss-security] 20120901 CVE request: Apache Struts S2-010 and S2-011",
            "tags": [
              "mailing-list",
              "x_refsource_MLIST",
              "x_transferred"
            ],
            "url": "http://www.openwall.com/lists/oss-security/2012/09/01/4"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "product": "n/a",
          "vendor": "n/a",
          "versions": [
            {
              "status": "affected",
              "version": "n/a"
            }
          ]
        }
      ],
      "datePublic": "2012-08-03T00:00:00.000Z",
      "descriptions": [
        {
          "lang": "en",
          "value": "The token check mechanism in Apache Struts 2.0.0 through 2.3.4 does not properly validate the token name configuration parameter, which allows remote attackers to perform cross-site request forgery (CSRF) attacks by setting the token name configuration parameter to a session attribute."
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "description": "n/a",
              "lang": "en",
              "type": "text"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2017-08-28T12:57:01.000Z",
        "orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
        "shortName": "redhat"
      },
      "references": [
        {
          "tags": [
            "x_refsource_CONFIRM"
          ],
          "url": "https://issues.apache.org/jira/browse/WW-3858"
        },
        {
          "name": "apache-struts-csrf(78182)",
          "tags": [
            "vdb-entry",
            "x_refsource_XF"
          ],
          "url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/78182"
        },
        {
          "name": "[oss-security] 20120901 Re: CVE request: Apache Struts S2-010 and S2-011",
          "tags": [
            "mailing-list",
            "x_refsource_MLIST"
          ],
          "url": "http://www.openwall.com/lists/oss-security/2012/09/01/5"
        },
        {
          "name": "50420",
          "tags": [
            "third-party-advisory",
            "x_refsource_SECUNIA"
          ],
          "url": "http://secunia.com/advisories/50420"
        },
        {
          "name": "55346",
          "tags": [
            "vdb-entry",
            "x_refsource_BID"
          ],
          "url": "http://www.securityfocus.com/bid/55346"
        },
        {
          "tags": [
            "x_refsource_CONFIRM"
          ],
          "url": "http://struts.apache.org/2.x/docs/s2-010.html"
        },
        {
          "name": "[oss-security] 20120901 CVE request: Apache Struts S2-010 and S2-011",
          "tags": [
            "mailing-list",
            "x_refsource_MLIST"
          ],
          "url": "http://www.openwall.com/lists/oss-security/2012/09/01/4"
        }
      ]
    }
  },
  "cveMetadata": {
    "assignerOrgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
    "assignerShortName": "redhat",
    "cveId": "CVE-2012-4386",
    "datePublished": "2012-09-05T23:00:00.000Z",
    "dateReserved": "2012-08-21T00:00:00.000Z",
    "dateUpdated": "2024-08-06T20:35:09.272Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2012-4386",
      "date": "2026-11-08",
      "epss": "0.0336",
      "percentile": "0.88801"
    },
    "nvd": {
      "cve": {
        "configurations": [
          {
            "nodes": [
              {
                "cpeMatch": [
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.0.0:*:*:*:*:*:*:*",
                    "matchCriteriaId": "5CF11DCF-6F6E-4E18-988E-E43918FBB8A6",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.0.1:*:*:*:*:*:*:*",
                    "matchCriteriaId": "BE3A90B7-C632-4D3E-9A4F-21E46D273B42",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.0.2:*:*:*:*:*:*:*",
                    "matchCriteriaId": "386538BE-F258-4870-8E11-750ADA228026",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.0.3:*:*:*:*:*:*:*",
                    "matchCriteriaId": "B4CF15B9-3714-4206-9971-1F7D59E20483",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.0.4:*:*:*:*:*:*:*",
                    "matchCriteriaId": "DFA32D87-65C7-4589-86B7-500BE3203CFA",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.0.5:*:*:*:*:*:*:*",
                    "matchCriteriaId": "98C3FB11-4E24-4067-A3A9-021F849DAAE3",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.0.6:*:*:*:*:*:*:*",
                    "matchCriteriaId": "4DCF2D72-90F1-4D1B-94A2-5BB3D8C086C2",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.0.7:*:*:*:*:*:*:*",
                    "matchCriteriaId": "661F1610-9FCD-4FC1-BCA1-69C58E0A1389",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.0.8:*:*:*:*:*:*:*",
                    "matchCriteriaId": "D9C89E22-B106-4EAB-90A1-0EA86C165737",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.0.9:*:*:*:*:*:*:*",
                    "matchCriteriaId": "6E1BABB2-780E-47E0-87A9-A164906C8421",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.0.10:*:*:*:*:*:*:*",
                    "matchCriteriaId": "AC32348E-7EF4-411C-9A44-CD041ABFA0E2",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.0.11:*:*:*:*:*:*:*",
                    "matchCriteriaId": "94BD452B-AE41-4F7A-9DB9-4B1039582537",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.0.11.1:*:*:*:*:*:*:*",
                    "matchCriteriaId": "ACFDC53B-7B8E-4333-BC87-E01024EC9C21",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.0.11.2:*:*:*:*:*:*:*",
                    "matchCriteriaId": "9F0818E7-B617-4C30-BFAC-9FE2F375F8BD",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.0.12:*:*:*:*:*:*:*",
                    "matchCriteriaId": "50F4A58E-F3D4-4711-A37E-EA538B112371",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.0.13:*:*:*:*:*:*:*",
                    "matchCriteriaId": "EFFCC96F-FD87-4495-B8A5-19D7898D5662",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.0.14:*:*:*:*:*:*:*",
                    "matchCriteriaId": "DEA0424E-84B4-41BD-8E6C-93E2A77DD6CA",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.1.0:*:*:*:*:*:*:*",
                    "matchCriteriaId": "CEC53AE5-3640-4FE1-B0B1-EA26C5B9EB9B",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.1.1:*:*:*:*:*:*:*",
                    "matchCriteriaId": "662A2E4B-A76A-4498-98A6-F90DF65C62B7",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.1.2:*:*:*:*:*:*:*",
                    "matchCriteriaId": "4E720B3A-4CFB-47FE-B80C-67C59D4C7FD4",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.1.3:*:*:*:*:*:*:*",
                    "matchCriteriaId": "CA687B56-A09B-4741-84F1-2BD9569A3F76",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.1.4:*:*:*:*:*:*:*",
                    "matchCriteriaId": "0BC0E358-8B4D-480B-BFAE-966CB697310A",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.1.5:*:*:*:*:*:*:*",
                    "matchCriteriaId": "2B7E8E1C-C667-4AED-86A5-2BD0C62AAD76",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.1.6:*:*:*:*:*:*:*",
                    "matchCriteriaId": "88B3348C-1086-4A16-97E3-52DB65FF860A",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.1.8:*:*:*:*:*:*:*",
                    "matchCriteriaId": "3C65711D-9C5B-4644-A12D-82243CB6FB1E",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.1.8.1:*:*:*:*:*:*:*",
                    "matchCriteriaId": "FC1FA9A7-2C8E-4651-9400-190198528642",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.2.1:*:*:*:*:*:*:*",
                    "matchCriteriaId": "FA9093C0-AE6A-4285-B159-8FDBF37E33D7",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.2.1.1:*:*:*:*:*:*:*",
                    "matchCriteriaId": "267A1C33-1C95-41DA-8A01-6F20C7BE1772",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.2.3:*:*:*:*:*:*:*",
                    "matchCriteriaId": "7E4590B9-6A44-4DC6-B7DF-5E6CAAA9D25A",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.2.3.1:*:*:*:*:*:*:*",
                    "matchCriteriaId": "30860683-D403-4D24-B356-FD306AEFCA46",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.3.1:*:*:*:*:*:*:*",
                    "matchCriteriaId": "4E3316DA-9E34-4955-91CA-E35B141A7007",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.3.1.1:*:*:*:*:*:*:*",
                    "matchCriteriaId": "0D152B29-FAD5-4DEA-B187-278EBD37FEB4",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.3.1.2:*:*:*:*:*:*:*",
                    "matchCriteriaId": "2AC68463-F500-471C-8600-8F8FD9743B12",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.3.3:*:*:*:*:*:*:*",
                    "matchCriteriaId": "A92AAE08-4811-465A-8178-25F5F349B8BA",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:apache:struts:2.3.4:*:*:*:*:*:*:*",
                    "matchCriteriaId": "B487975D-6394-4136-B45C-C1F209465B24",
                    "vulnerable": true
                  }
                ],
                "negate": false,
                "operator": "OR"
              }
            ]
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "The token check mechanism in Apache Struts 2.0.0 through 2.3.4 does not properly validate the token name configuration parameter, which allows remote attackers to perform cross-site request forgery (CSRF) attacks by setting the token name configuration parameter to a session attribute."
          },
          {
            "lang": "es",
            "value": "El mecanismo de control token en Apache Struts v2.0.0 a trav\u00e9s de v2.3.4 no valida correctamente el par\u00e1metro de configuraci\u00f3n name permitiendo a atacantes remotos realizar  ataques de falsificaciones de petici\u00f3n en sitios cruzados (CSRF) estableciendo el par\u00e1metro name de la configuraci\u00f3n simb\u00f3lica a un atributo de sesi\u00f3n"
          }
        ],
        "id": "CVE-2012-4386",
        "lastModified": "2026-04-29T01:13:23.040",
        "metrics": {
          "cvssMetricV2": [
            {
              "acInsufInfo": false,
              "baseSeverity": "MEDIUM",
              "cvssData": {
                "accessComplexity": "MEDIUM",
                "accessVector": "NETWORK",
                "authentication": "NONE",
                "availabilityImpact": "PARTIAL",
                "baseScore": 6.8,
                "confidentialityImpact": "PARTIAL",
                "integrityImpact": "PARTIAL",
                "vectorString": "AV:N/AC:M/Au:N/C:P/I:P/A:P",
                "version": "2.0"
              },
              "exploitabilityScore": 8.6,
              "impactScore": 6.4,
              "obtainAllPrivilege": false,
              "obtainOtherPrivilege": false,
              "obtainUserPrivilege": false,
              "source": "nvd@nist.gov",
              "type": "Primary",
              "userInteractionRequired": true
            }
          ]
        },
        "published": "2012-09-05T23:55:02.663",
        "references": [
          {
            "source": "secalert@redhat.com",
            "tags": [
              "Vendor Advisory"
            ],
            "url": "http://secunia.com/advisories/50420"
          },
          {
            "source": "secalert@redhat.com",
            "tags": [
              "Vendor Advisory"
            ],
            "url": "http://struts.apache.org/2.x/docs/s2-010.html"
          },
          {
            "source": "secalert@redhat.com",
            "url": "http://www.openwall.com/lists/oss-security/2012/09/01/4"
          },
          {
            "source": "secalert@redhat.com",
            "url": "http://www.openwall.com/lists/oss-security/2012/09/01/5"
          },
          {
            "source": "secalert@redhat.com",
            "url": "http://www.securityfocus.com/bid/55346"
          },
          {
            "source": "secalert@redhat.com",
            "url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/78182"
          },
          {
            "source": "secalert@redhat.com",
            "url": "https://issues.apache.org/jira/browse/WW-3858"
          },
          {
            "source": "af854a3a-2127-422b-91ae-364da2661108",
            "tags": [
              "Vendor Advisory"
            ],
            "url": "http://secunia.com/advisories/50420"
          },
          {
            "source": "af854a3a-2127-422b-91ae-364da2661108",
            "tags": [
              "Vendor Advisory"
            ],
            "url": "http://struts.apache.org/2.x/docs/s2-010.html"
          },
          {
            "source": "af854a3a-2127-422b-91ae-364da2661108",
            "url": "http://www.openwall.com/lists/oss-security/2012/09/01/4"
          },
          {
            "source": "af854a3a-2127-422b-91ae-364da2661108",
            "url": "http://www.openwall.com/lists/oss-security/2012/09/01/5"
          },
          {
            "source": "af854a3a-2127-422b-91ae-364da2661108",
            "url": "http://www.securityfocus.com/bid/55346"
          },
          {
            "source": "af854a3a-2127-422b-91ae-364da2661108",
            "url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/78182"
          },
          {
            "source": "af854a3a-2127-422b-91ae-364da2661108",
            "url": "https://issues.apache.org/jira/browse/WW-3858"
          }
        ],
        "sourceIdentifier": "secalert@redhat.com",
        "vulnStatus": "Modified",
        "weaknesses": [
          {
            "description": [
              {
                "lang": "en",
                "value": "CWE-352"
              }
            ],
            "source": "nvd@nist.gov",
            "type": "Primary"
          }
        ]
      }
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.