# GHSA-hwvm-vfw8-93mw: Vulnerable dependency in XTDB connector


- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Fix available:** Yes
- **Published:** 16 Dec 2021

## What is GHSA-hwvm-vfw8-93mw?

GHSA-hwvm-vfw8-93mw is a vulnerability in org.odpi.egeria:egeria-connector-xtdb, published on 16 Dec 2021. 

### Official description

### Impact

The impacted portion of the XTDB connector is its connectivity to S3 as a backing store: this is the only portion of the connector that uses this vulnerable `httpclient` dependency. Per the description, the vulnerability regards URIs that may be misinterpreted, which given the area of impact within the connector we understand to be any URI used to configure connectivity to S3. Note therefore that if you do not use or configure S3 as a backing store in your use of the connector, you should not be exposed to any vulnerability from this component.

### Patches

The problem has been addressed in version 4.5.13 of the httpclient library, which is included as a replacement dependency version for the build of the XTDB connector from release 3.5 onwards. Therefore, using release 3.5 (or newer) of the connector will include the fixes to address this CVE.

### Workarounds

We have not investigated specific workarounds, but per the description of the issue it seems likely that ensuring the proper URIs are used for any S3 connectivity used by the connector (and ensuring there are appropriate controls around modifying such URIs in the connector's configuration) would be the first point of investigation.

### References

https://nvd.nist.gov/vuln/detail/CVE-2020-13956

## Which versions are affected by GHSA-hwvm-vfw8-93mw?

2 open source packages ship an affected version, including org.odpi.egeria:egeria-connector-xtdb.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `org.odpi.egeria:egeria-connector-xtdb` | Maven | All versions | 3.5 |
| `org.odpi.egeria:egeria-connector-xtdb` | Maven | All versions | 3.5 |

## How do I fix GHSA-hwvm-vfw8-93mw?

Upgrade org.odpi.egeria:egeria-connector-xtdb to 3.5 or later.

## Is GHSA-hwvm-vfw8-93mw being exploited?

There is no known exploitation of GHSA-hwvm-vfw8-93mw in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-hwvm-vfw8-93mw and fix it if it is affected.

What it is: GHSA-hwvm-vfw8-93mw is a vulnerability in org.odpi.egeria:egeria-connector-xtdb, published on 16 Dec 2021. 
Exploitation: There is no known exploitation of GHSA-hwvm-vfw8-93mw in the wild and no public exploit code.

Affected packages and fixed versions:
- org.odpi.egeria:egeria-connector-xtdb (Maven): affected all versions; fixed in 3.5
- org.odpi.egeria:egeria-connector-xtdb (Maven): affected all versions; fixed in 3.5

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/GHSA-hwvm-vfw8-93mw/ (Markdown: https://insights.sbomify.com/GHSA-hwvm-vfw8-93mw/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-hwvm-vfw8-93mw

---
From sbomify Insights: https://insights.sbomify.com/GHSA-hwvm-vfw8-93mw/
Summaries are generated and may contain mistakes; the official description above is the record.
