# CVE-2024-53267: Vulnerability with bundle verification in sigstore-java

> Attackers can bypass transparency log verification in sigstore-java, allowing malicious artifacts to appear legitimately signed without proper logging proof.

- **Severity:** Medium 5.5 (`CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 26 Nov 2024
- **Updated:** 26 Nov 2024
- **Also known as:** GHSA-q4xm-6fjc-5f6w

## What is CVE-2024-53267?

CVE-2024-53267 is a medium-severity vulnerability in sigstore-java, published on 26 Nov 2024. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

sigstore-java is a sigstore java client for interacting with sigstore infrastructure. sigstore-java has insufficient verification for a situation where a validly-signed but "mismatched" bundle is presented as proof of inclusion into a transparency log. This bug impacts clients using any variation of KeylessVerifier.verify(). The verifier may accept a bundle with an unrelated log entry, cryptographically verifying everything but fails to ensure the log entry applies to the artifact in question, thereby "verifying" a bundle without any proof the signing event was logged. This allows the creation of a bundle without fulcio certificate and private key combined with an unrelated but time-correct log entry to fake logging of a signing event. A malicious actor using a compromised identity may want to do this to prevent discovery via rekor's log monitors. The signer's identity will still be available to the verifier. The signature on the bundle must still be on the correct artifact for the verifier to pass. sigstore-gradle-plugin and sigstore-maven-plugin are not affected by this as they only provide signing functionality. This issue has been patched in v1.1.0 release with PR #856. All users are advised to upgrade. There are no known workarounds for this vulnerability.

Weakness: CWE-347 (Improper Verification of Cryptographic Signature)

## Which versions are affected by CVE-2024-53267?

2 open source packages ship an affected version, including dev.sigstore:sigstore-java.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `dev.sigstore:sigstore-java` | Maven | From 1.0.0 | 1.1.0 |
| `dev.sigstore:sigstore-java` | Maven | From 1.0.0 | 1.1.0 |

## How do I fix CVE-2024-53267?

Upgrade dev.sigstore:sigstore-java to 1.1.0 or later.

## Is CVE-2024-53267 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-53267 exists.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-53267 and fix it if it is affected.

What it is: CVE-2024-53267 is a medium-severity vulnerability in sigstore-java, published on 26 Nov 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-53267 exists.

Affected packages and fixed versions:
- dev.sigstore:sigstore-java (Maven): affected from 1.0.0; fixed in 1.1.0
- dev.sigstore:sigstore-java (Maven): affected from 1.0.0; fixed in 1.1.0

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-2024-53267/ (Markdown: https://insights.sbomify.com/CVE-2024-53267/index.md)
```

## Sources

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

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