ghsa-hh3m-g4qj-4835
Vulnerability from github
Published
2025-03-24 18:31
Modified
2025-03-24 21:20
Summary
Spring Security Vulnerable to Authorization Bypass via Security Annotations
Details

Spring Security 6.4.0 - 6.4.3 may not correctly locate method security annotations on parameterized types or methods. This may cause an authorization bypass. 

You are not affected if you are not using @EnableMethodSecurity, or you do not have method security annotations on parameterized types or methods, or all method security annotations are attached to target methods

Show details on source website


{
   affected: [
      {
         package: {
            ecosystem: "Maven",
            name: "org.springframework.security:spring-security-core",
         },
         ranges: [
            {
               events: [
                  {
                     introduced: "6.4.0",
                  },
                  {
                     fixed: "6.4.4",
                  },
               ],
               type: "ECOSYSTEM",
            },
         ],
      },
   ],
   aliases: [
      "CVE-2025-22223",
   ],
   database_specific: {
      cwe_ids: [
         "CWE-290",
      ],
      github_reviewed: true,
      github_reviewed_at: "2025-03-24T21:20:53Z",
      nvd_published_at: "2025-03-24T18:15:22Z",
      severity: "MODERATE",
   },
   details: "Spring Security 6.4.0 - 6.4.3 may not correctly locate method security annotations on parameterized types or methods. This may cause an authorization bypass. \n\nYou are not affected if you are not using @EnableMethodSecurity, or you do not have method security annotations on parameterized types or methods, or all method security annotations are attached to target methods",
   id: "GHSA-hh3m-g4qj-4835",
   modified: "2025-03-24T21:20:53Z",
   published: "2025-03-24T18:31:03Z",
   references: [
      {
         type: "ADVISORY",
         url: "https://nvd.nist.gov/vuln/detail/CVE-2025-22223",
      },
      {
         type: "WEB",
         url: "https://github.com/spring-projects/spring-security/commit/dc2e1af2dab8ef81cd4edd25b56a2babeaab8cf9",
      },
      {
         type: "PACKAGE",
         url: "https://github.com/spring-projects/spring-security",
      },
      {
         type: "WEB",
         url: "https://spring.io/security/cve-2025-22223",
      },
   ],
   schema_version: "1.4.0",
   severity: [
      {
         score: "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N",
         type: "CVSS_V3",
      },
   ],
   summary: "Spring Security Vulnerable to Authorization Bypass via Security Annotations",
}


Log in or create an account to share your comment.

Security Advisory comment format.

This schema specifies the format of a comment related to a security advisory.

UUIDv4 of the comment
UUIDv4 of the Vulnerability-Lookup instance
When the comment was created originally
When the comment was last updated
Title of the comment
Description of the comment
The identifier of the vulnerability (CVE ID, GHSA-ID, PYSEC ID, etc.).



Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.