Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2016-9879

An issue was discovered in Pivotal Spring Security before 3.2.10, 4.1.x before 4.1.4, and 4.2.x before 4.2.1. Spring Security does not consider URL path parameters when processing security constraints. By adding a URL path parameter with an encoded "/" to a request, an attacker may be able to bypass a security constraint. The root cause of this issue is a lack of clarity regarding the handling of path parameters in the Servlet Specification. Some Servlet containers include path parameters in the value returned for getPathInfo() and some do not. Spring Security uses the value returned by getPathInfo() as part of the process of mapping requests to security constraints. The unexpected presence of path parameters can cause a constraint to be bypassed. Users of Apache Tomcat (all current versions) are not affected by this vulnerability since Tomcat follows the guidance previously provided by the Servlet Expert group and strips path parameters from the value returned by getContextPath(), getServletPath(), and getPathInfo(). Users of other Servlet containers based on Apache Tomcat may or may not be affected depending on whether or not the handling of path parameters has been modified. Users of IBM WebSphere Application Server 8.5.x are known to be affected. Users of other containers that implement the Servlet specification may be affected.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2016-9879
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 06:36 UTC · Revision 1

Source evidence

CVE-2016-9879

core-osv · Original source

Published 6 Jan 2017, 22:59 UTC

An issue was discovered in Pivotal Spring Security before 3.2.10, 4.1.x before 4.1.4, and 4.2.x before 4.2.1. Spring Security does not consider URL path parameters when processing security constraints. By adding a URL path parameter with an encoded "/" to a request, an attacker may be able to bypass a security constraint. The root cause of this issue is a lack of clarity regarding the handling of path parameters in the Servlet Specification. Some Servlet containers include path parameters in the value returned for getPathInfo() and some do not. Spring Security uses the value returned by getPathInfo() as part of the process of mapping requests to security constraints. The unexpected presence of path parameters can cause a constraint to be bypassed. Users of Apache Tomcat (all current versions) are not affected by this vulnerability since Tomcat follows the guidance previously provided by the Servlet Expert group and strips path parameters from the value returned by getContextPath(), getServletPath(), and getPathInfo(). Users of other Servlet containers based on Apache Tomcat may or may not be affected depending on whether or not the handling of path parameters has been modified. Users of IBM WebSphere Application Server 8.5.x are known to be affected. Users of other containers that implement the Servlet specification may be affected.

osv:CVE-2016-9879
Complete source record
{
  "id": "50b184b5ff8078d93e27fdb12bc21573e6923261156d204ff18865ff9fd8edc0",
  "url": "https://osv.dev/vulnerability/CVE-2016-9879",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2016-9879",
    "summary": "An issue was discovered in Pivotal Spring Security before 3.2.10, 4.1.x before 4.1.4, and 4.2.x before 4.2.1. Spring Security does not consider URL path parameters when processing security constraints. By adding a URL path parameter with an encoded \"/\" to a request, an attacker may be able to bypass a security constraint. The root cause of this issue is a lack of clarity regarding the handling of path parameters in the Servlet Specification. Some Servlet containers include path parameters in the value returned for getPathInfo() and some do not. Spring Security uses the value returned by getPathInfo() as part of the process of mapping requests to security constraints. The unexpected presence of path parameters can cause a constraint to be bypassed. Users of Apache Tomcat (all current versions) are not affected by this vulnerability since Tomcat follows the guidance previously provided by the Servlet Expert group and strips path parameters from the value returned by getContextPath(), getServletPath(), and getPathInfo(). Users of other Servlet containers based on Apache Tomcat may or may not be affected depending on whether or not the handling of path parameters has been modified. Users of IBM WebSphere Application Server 8.5.x are known to be affected. Users of other containers that implement the Servlet specification may be affected.",
    "evidence": "osv:CVE-2016-9879",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2016-9879",
      "aliases": [
        "CVE-2016-9879",
        "GHSA-v35c-49j6-q8hq"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/spring-projects/spring-security",
              "type": "GIT",
              "events": [
                {
                  "introduced": "4619705e37fa49556480fb942247fb7b63727b3e"
                },
                {
                  "last_affected": "24fcb6c45a55333e5b856b6c73f14b68ceca0e19"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:vmware:spring_security:3.2.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.2.0"
                      },
                      {
                        "last_affected": "3.2.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:vmware:spring_security:3.2.1:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.2.1"
                      },
                      {
                        "last_affected": "3.2.1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:vmware:spring_security:3.2.2:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.2.2"
                      },
                      {
                        "last_affected": "3.2.2"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:vmware:spring_security:3.2.3:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.2.3"
                      },
                      {
                        "last_affected": "3.2.3"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:vmware:spring_security:3.2.4:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.2.4"
                      },
                      {
                        "last_affected": "3.2.4"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:vmware:spring_security:3.2.5:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.2.5"
                      },
                      {
                        "last_affected": "3.2.5"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:vmware:spring_security:3.2.6:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.2.6"
                      },
                      {
                        "last_affected": "3.2.6"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:vmware:spring_security:3.2.7:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.2.7"
                      },
                      {
                        "last_affected": "3.2.7"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:vmware:spring_security:3.2.8:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.2.8"
                      },
                      {
                        "last_affected": "3.2.8"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:vmware:spring_security:3.2.9:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.2.9"
                      },
                      {
                        "last_affected": "3.2.9"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:vmware:spring_security:4.1.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.1.0"
                      },
                      {
                        "last_affected": "4.1.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:vmware:spring_security:4.1.1:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.1.1"
                      },
                      {
                        "last_affected": "4.1.1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:vmware:spring_security:4.1.2:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.1.2"
                      },
                      {
                        "last_affected": "4.1.2"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:vmware:spring_security:4.1.3:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.1.3"
                      },
                      {
                        "last_affected": "4.1.3"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:vmware:spring_security:4.2.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.2.0"
                      },
                      {
                        "last_affected": "4.2.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "3.2.0",
            "3.2.1",
            "3.2.2",
            "3.2.3",
            "3.2.4",
            "3.2.5",
            "3.2.6",
            "3.2.7",
            "3.2.8",
            "3.2.9",
            "4.1.0",
            "4.1.1",
            "4.1.2",
            "4.1.3",
            "4.2.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-9879.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:42.057227042Z",
      "provider": "osv",
      "references": [
        "https://access.redhat.com/errata/RHSA-2017:1832",
        "https://pivotal.io/security/cve-2016-9879"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:ibm:websphere_application_server:8.5.0.0:*:*:*:*:*:*:*",
              "cpe:2.3:a:ibm:websphere_application_server:8.5.0.1:*:*:*:*:*:*:*",
              "cpe:2.3:a:ibm:websphere_application_server:8.5.0.2:*:*:*:*:*:*:*",
              "cpe:2.3:a:ibm:websphere_application_server:8.5.5.0:*:*:*:*:*:*:*",
              "cpe:2.3:a:ibm:websphere_application_server:8.5.5.1:*:*:*:*:*:*:*",
              "cpe:2.3:a:ibm:websphere_application_server:8.5.5.2:*:*:*:*:*:*:*",
              "cpe:2.3:a:ibm:websphere_application_server:8.5.5.3:*:*:*:*:*:*:*",
              "cpe:2.3:a:ibm:websphere_application_server:8.5.5.4:*:*:*:*:*:*:*",
              "cpe:2.3:a:ibm:websphere_application_server:8.5.5.5:*:*:*:*:*:*:*",
              "cpe:2.3:a:ibm:websphere_application_server:8.5.5.6:*:*:*:*:*:*:*",
              "cpe:2.3:a:ibm:websphere_application_server:8.5.5.7:*:*:*:*:*:*:*",
              "cpe:2.3:a:ibm:websphere_application_server:8.5.5.8:*:*:*:*:*:*:*",
              "cpe:2.3:a:ibm:websphere_application_server:8.5.5.9:*:*:*:*:*:*:*"
            ],
            "vendor_product": "ibm:websphere_application_server",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "8.5.0.0"
                  },
                  {
                    "last_affected": "8.5.0.0"
                  },
                  {
                    "introduced": "8.5.0.1"
                  },
                  {
                    "last_affected": "8.5.0.1"
                  },
                  {
                    "introduced": "8.5.0.2"
                  },
                  {
                    "last_affected": "8.5.0.2"
                  },
                  {
                    "introduced": "8.5.5.0"
                  },
                  {
                    "last_affected": "8.5.5.0"
                  },
                  {
                    "introduced": "8.5.5.1"
                  },
                  {
                    "last_affected": "8.5.5.1"
                  },
                  {
                    "introduced": "8.5.5.2"
                  },
                  {
                    "last_affected": "8.5.5.2"
                  },
                  {
                    "introduced": "8.5.5.3"
                  },
                  {
                    "last_affected": "8.5.5.3"
                  },
                  {
                    "introduced": "8.5.5.4"
                  },
                  {
                    "last_affected": "8.5.5.4"
                  },
                  {
                    "introduced": "8.5.5.5"
                  },
                  {
                    "last_affected": "8.5.5.5"
                  },
                  {
                    "introduced": "8.5.5.6"
                  },
                  {
                    "last_affected": "8.5.5.6"
                  },
                  {
                    "introduced": "8.5.5.7"
                  },
                  {
                    "last_affected": "8.5.5.7"
                  },
                  {
                    "introduced": "8.5.5.8"
                  },
                  {
                    "last_affected": "8.5.5.8"
                  },
                  {
                    "introduced": "8.5.5.9"
                  },
                  {
                    "last_affected": "8.5.5.9"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2016-9879",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 435280,
  "published_at": "2017-01-06T22:59:00.36+00:00"
}