{
  "id": "CVE-2025-22235",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-22235",
  "published_at": "2025-04-28T07:10:35.37Z",
  "title": "Spring Boot EndpointRequest.to() creates wrong matcher if actuator endpoint is not exposed",
  "vendor": "Spring",
  "product": "Spring Boot",
  "cvss": {
    "score": 7.3,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2025-08-21T07:01:36Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 115,
    "repo": "idealzh/cve-2025-22235-demo",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "EndpointRequest.to() creates a matcher for null/** if the actuator endpoint, for which the EndpointRequest has been created, is disabled or not exposed.\n\nYour application may be affected by this if all the following conditions are met:\n\n  *  You use Spring Security\n  *  EndpointRequest.to() has been used in a Spring Security chain configuration\n  *  The endpoint which EndpointRequest references is disabled or not exposed via web\n  *  Your application handles requests to /null and this path needs protection\n\n\nYou are not affected if any of the following is true:\n\n  *  You don't use Spring Security\n  *  You don't use EndpointRequest.to()\n  *  The endpoint which EndpointRequest.to() refers to is enabled and is exposed\n  *  Your application does not handle requests to /null or this path does not need protection",
  "cwe": "CWE-20",
  "cvss_by_source": {
    "cna": 7.3
  },
  "repos": [
    {
      "repo": "idealzh/cve-2025-22235-demo",
      "url": "https://github.com/idealzh/cve-2025-22235-demo",
      "created_at": "2025-08-21T07:01:36Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2014-09-02T06:20:07Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "Spring",
        "product": "Spring Boot",
        "ranges": [
          "\u003e= 2.7.x, \u003c 2.7.25",
          "\u003e= 3.1.x, \u003c 3.1.16",
          "\u003e= 3.2.x, \u003c 3.2.14",
          "\u003e= 3.3.x, \u003c 3.3.11",
          "\u003e= 3.4.x, \u003c 3.4.5"
        ],
        "fixed_in": [
          "2.7.25",
          "3.1.16",
          "3.2.14",
          "3.3.11",
          "3.4.5"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Spring Boot to 2.7.25 or 3.1.16 or 3.2.14 or 3.3.11 or 3.4.5 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/actuator/health",
      "ports": [
        8080
      ],
      "protocol": "http",
      "repos": [
        "idealzh/cve-2025-22235-demo"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "idealzh/cve-2025-22235-demo/test_vulnerability.py:47"
      ]
    },
    {
      "method": "GET",
      "path_template": "/actuator/info",
      "ports": [
        8080
      ],
      "protocol": "http",
      "repos": [
        "idealzh/cve-2025-22235-demo"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "idealzh/cve-2025-22235-demo/test_vulnerability.py:58"
      ]
    },
    {
      "method": "GET",
      "path_template": "/info",
      "ports": [
        8080
      ],
      "protocol": "http",
      "repos": [
        "idealzh/cve-2025-22235-demo"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "idealzh/cve-2025-22235-demo/test_vulnerability.py:36"
      ]
    },
    {
      "method": "GET",
      "path_template": "/null",
      "ports": [
        8080
      ],
      "protocol": "http",
      "repos": [
        "idealzh/cve-2025-22235-demo"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "idealzh/cve-2025-22235-demo/test_vulnerability.py:22"
      ]
    }
  ],
  "rules": []
}
