# CVE-2023-37945: Jenkins SAML Single Sign On(SSO) Plugin missing permission check

> Attackers with Read permission can download security realm details due to missing permission checks in the Jenkins SAML SSO Plugin.

- **Severity:** Medium 4.3 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 12 Jul 2023
- **Updated:** 7 Nov 2024
- **Also known as:** GHSA-p4wr-9wfm-f9jw

## What is CVE-2023-37945?

CVE-2023-37945 is a medium-severity missing authorization vulnerability in Jenkins SAML Single Sign On(SSO) Plugin, published on 12 Jul 2023. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

A missing permission check in Jenkins SAML Single Sign On(SSO) Plugin 2.1.0 through 2.3.0 (both inclusive) allows attackers with Overall/Read permission to download a string representation of the current security realm.

Weakness: CWE-862 (Missing Authorization)

## Which versions are affected by CVE-2023-37945?

2 open source packages ship an affected version, including io.jenkins.plugins:miniorange-saml-sp. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `io.jenkins.plugins:miniorange-saml-sp` | Maven | All versions | 2.3.1 |
| `io.jenkins.plugins:miniorange-saml-sp` | Maven | All versions | 2.3.1 |

Products: Jenkins Saml Single Sign On.

## How do I fix CVE-2023-37945?

Upgrade io.jenkins.plugins:miniorange-saml-sp to 2.3.1 or later.

## Is CVE-2023-37945 being exploited?

There is no known exploitation of CVE-2023-37945 in the wild and no public exploit code.

## Other vulnerabilities in Jenkins SAML Single Sign On(SSO) Plugin

- [CVE-2023-32991](https://insights.sbomify.com/CVE-2023-32991/): Jenkins SAML Single Sign On(SSO) Plugin Cross-Site Request Forgery vulnerability (high 8.8)
- [CVE-2023-32992](https://insights.sbomify.com/CVE-2023-32992/): Jenkins SAML Single Sign On(SSO) Plugin missing permission checks (high 8.8)
- [CVE-2023-32995](https://insights.sbomify.com/CVE-2023-32995/): Jenkins SAML Single Sign On(SSO) Plugin Cross-Site Request Forgery vulnerability (high 8.8)
- [CVE-2023-32993](https://insights.sbomify.com/CVE-2023-32993/): Jenkins SAML Single Sign On(SSO) Plugin missing hostname validation (medium 4.8)
- [CVE-2023-32994](https://insights.sbomify.com/CVE-2023-32994/): Jenkins SAML Single Sign On(SSO) Plugin unconditionally disables SSL/TLS certificate validation (low 3.7)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2023-37945 and fix it if it is affected.

What it is: CVE-2023-37945 is a medium-severity missing authorization vulnerability in Jenkins SAML Single Sign On(SSO) Plugin, published on 12 Jul 2023. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2023-37945 in the wild and no public exploit code.

Affected packages and fixed versions:
- io.jenkins.plugins:miniorange-saml-sp (Maven): affected all versions; fixed in 2.3.1
- io.jenkins.plugins:miniorange-saml-sp (Maven): affected all versions; fixed in 2.3.1

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2023-37945/ (Markdown: https://insights.sbomify.com/CVE-2023-37945/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2023-37945
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2023-37945
- OSV: https://osv.dev/vulnerability/CVE-2023-37945

---
From sbomify Insights: https://insights.sbomify.com/CVE-2023-37945/
Summaries are generated and may contain mistakes; the official description above is the record.
