{
  "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
  "bomFormat": "CycloneDX",
  "specVersion": "1.6",
  "serialNumber": "urn:uuid:325fb61a-b619-5df7-9898-c3e588058786",
  "version": 1,
  "metadata": {
    "supplier": {
      "name": "TuxCare",
      "url": [
        "https://tuxcare.com"
      ]
    }
  },
  "components": [
    {
      "name": "spring-security-bom",
      "purl": "pkg:maven/org.springframework.security/spring-security-bom@5.4.6-tuxcare.1",
      "type": "library",
      "group": "org.springframework.security",
      "bom-ref": "pkg:maven/org.springframework.security/spring-security-bom@5.4.6-tuxcare.1",
      "version": "5.4.6-tuxcare.1",
      "licenses": [
        {
          "license": {
            "url": "https://tuxcare.com/legal/",
            "name": "TuxCare License"
          }
        }
      ],
      "pedigree": {
        "ancestors": [
          {
            "name": "spring-security-bom",
            "purl": "pkg:maven/org.springframework.security/spring-security-bom@5.4.6",
            "type": "library",
            "group": "org.springframework.security",
            "version": "5.4.6"
          }
        ]
      },
      "supplier": {
        "url": [
          "https://tuxcare.com"
        ],
        "name": "TuxCare"
      }
    }
  ],
  "vulnerabilities": [
    {
      "id": "CVE-2021-22112",
      "affects": [
        {
          "ref": "pkg:maven/org.springframework.security/spring-security-bom@5.4.6-tuxcare.1"
        }
      ],
      "bom-ref": "urn:uuid:625f03d1-3d3a-5c97-bb2a-44ef174dc60e",
      "analysis": {
        "state": "not_affected",
        "detail": "Vulnerability CVE-2021-22112 does not affect version 5.4.6-tuxcare.1 of org.springframework.security:spring-security-bom. CVE-2021-22112 describes a vulnerability in Spring Security where the SecurityContext fails to save if changed more than once in a single request, potentially allowing privilege escalation. The target is Spring Security version 5.4.6. The CVE states that versions 5.4.x < 5.4.4 are vulnerable, meaning 5.4.4+ contain the upstream fix. Analysis confirmed that the fix (commit c72a6fac04 by Rob Winch) is present in the target at HEAD. The fix introduces an isSaveContextInvoked boolean flag to track save attempts and modifies contextChanged() to include this flag, ensuring subsequent SecurityContext modifications are properly detected and persisted. The fix was already present in the upstream Spring Security 5.4.6 release when TuxCare onboarded it (commit 5736daa5ee). Therefore, the target is not affected by this vulnerability.\n\nAdvisory cross-check (dlmn): outside the affected ranges of GitHub (>= 5.4.0, < 5.4.4; >= 5.3.0, < 5.3.8; < 5.2.9; >= 5.4.0, < 5.4.4; >= 5.3.0, < 5.3.8; < 5.2.9), NVD (< 5.2.9; >= 5.3.0, < 5.3.8; >= 5.4.0, < 5.4.4), cve.org (>= 5.4, < 5.4.4; >= 5.3, < 5.3.8.RELEASE; >= 5.2, < 5.2.9.RELEASE), Snyk (>= 5.4.0, < 5.4.4; >= 5.3.0.RELEASE, < 5.3.8.RELEASE; < 5.2.9.RELEASE).",
        "justification": "code_not_present"
      }
    }
  ],
  "dependencies": [
    {
      "ref": "pkg:maven/org.springframework.security/spring-security-bom@5.4.6-tuxcare.1"
    }
  ]
}