# CVE-2022-1278: WildFly vulnerable to Insecure Default Initialization of Resource

> An attacker can view sensitive deployment names and endpoints if trace logging is enabled in WildFly.

- **Severity:** High 7.5 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 13 Sep 2022
- **Updated:** 2 Aug 2024
- **Also known as:** BIT-wildfly-2022-1278, GHSA-fmq7-gh8v-mjvc

## What is CVE-2022-1278?

CVE-2022-1278 is a high-severity vulnerability in Redhat Single Sign-On, published on 13 Sep 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

A flaw was found in WildFly, where an attacker can see deployment names, endpoints, and any other data the trace payload may contain.

Weakness: CWE-1188 (Initialization of a Resource with an Insecure Default)

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

3 open source packages ship an affected version, including org.wildfly.bom:wildfly and wildfly. It affects 8 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `org.wildfly.bom:wildfly` | Maven | All versions | 27.0.0.Beta1 |
| `org.wildfly.bom:wildfly` | Maven | All versions | 27.0.0.Beta1 |
| `wildfly` | Bitnami | All versions | 27.0.0 |

Products: Redhat Amq, Redhat Amq Online, Redhat Integration Camel K, Redhat Integration Service Registry, Redhat Jboss A-Mq, Redhat Jboss Enterprise Application Platform Expansion Pack, Redhat Single Sign-On, Redhat Wildfly.

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

Upgrade org.wildfly.bom:wildfly to 27.0.0.Beta1 or later.

## Is CVE-2022-1278 being exploited?

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

## Other vulnerabilities in Redhat Single Sign-On

- [CVE-2015-5182](https://insights.sbomify.com/CVE-2015-5182/): Cross-site request forgery in n/a (high 8.8)
- [CVE-2015-5183](https://insights.sbomify.com/CVE-2015-5183/): Security feature bypass in n/a (high 7.5)
- [CVE-2015-5184](https://insights.sbomify.com/CVE-2015-5184/): Misconfiguration in n/a (high 7.5)
- [CVE-2020-14297](https://insights.sbomify.com/CVE-2020-14297/): Wildfly EJB Client causes DoS (medium 6.5)
- [CVE-2020-14307](https://insights.sbomify.com/CVE-2020-14307/): Denial of service in wildfly (medium 6.5)

## Fix prompt for AI coding agents

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

What it is: CVE-2022-1278 is a high-severity vulnerability in Redhat Single Sign-On, published on 13 Sep 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2022-1278 in the wild and no public exploit code.

Affected packages and fixed versions:
- org.wildfly.bom:wildfly (Maven): affected all versions; fixed in 27.0.0.Beta1
- org.wildfly.bom:wildfly (Maven): affected all versions; fixed in 27.0.0.Beta1
- wildfly (Bitnami): affected all versions; fixed in 27.0.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-2022-1278/ (Markdown: https://insights.sbomify.com/CVE-2022-1278/index.md)
```

## Sources

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

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