# CVE-2022-22946: Weak cryptography in Spring Cloud Gateway

> Attackers can bypass certificate validation in Spring Cloud Gateway when HTTP2 is enabled without proper truststore configuration, allowing man-in-the-middle attacks.

- **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:** No
- **Published:** 4 Mar 2022
- **Updated:** 3 Aug 2024
- **Also known as:** GHSA-28g5-j6gh-p2vw

## What is CVE-2022-22946?

CVE-2022-22946 is a medium-severity vulnerability in Oracle Commerce Guided Search, published on 4 Mar 2022. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

In spring cloud gateway versions prior to 3.1.1+ , applications that are configured to enable HTTP2 and no key store or trusted certificates are set will be configured to use an insecure TrustManager. This makes the gateway able to connect to remote services with invalid or custom certificates.

Weakness: CWE-295 (Improper Certificate Validation)

## Which versions are affected by CVE-2022-22946?

It affects 6 products.


Products: Oracle Commerce Guided Search, Oracle Communications Cloud Native Core Binding Support Function, Oracle Communications Cloud Native Core Console, Oracle Communications Cloud Native Core Network Repository Function, Oracle Communications Cloud Native Core Security Edge Protection Proxy, Vmware Spring Cloud Gateway.

## How do I fix CVE-2022-22946?

No fix has been published for CVE-2022-22946 yet. Limit exposure of the affected software until one is available.

## Is CVE-2022-22946 being exploited?

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

## Other vulnerabilities in Oracle Commerce Guided Search

- [CVE-2022-22947](https://insights.sbomify.com/CVE-2022-22947/): VMware Spring Cloud Gateway Code Injection (critical 10.0, exploited in the wild)
- [CVE-2026-71037](https://insights.sbomify.com/CVE-2026-71037/): Missing authorization in Oracle Commerce Guided Search / Oracle Commerce Experience Manager (critical 9.3)
- [CVE-2026-71036](https://insights.sbomify.com/CVE-2026-71036/): Privilege escalation in Oracle Commerce Guided Search / Oracle Commerce Experience Manager (critical 9.1)
- [CVE-2016-5482](https://insights.sbomify.com/CVE-2016-5482/): Other in n/a (high 8.2)
- [CVE-2026-71038](https://insights.sbomify.com/CVE-2026-71038/): Auth bypass in Oracle Commerce Guided Search / Oracle Commerce Experience Manager (high 7.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2022-22946 and fix it if it is affected.

What it is: CVE-2022-22946 is a medium-severity vulnerability in Oracle Commerce Guided Search, published on 4 Mar 2022. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2022-22946 in the wild and no public exploit code.

Affected product: Oracle Commerce Guided Search. No package-level version data is available, so check the vendor advisory linked from the reference page.

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

## Sources

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

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