Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vulnerability: Okio Signed to Unsigned Conversion Error (GHSA-w33c-445m-f8w7) #131

Open
Noel-01 opened this issue Dec 14, 2024 · 0 comments

Comments

@Noel-01
Copy link

Noel-01 commented Dec 14, 2024

I encountered a vulnerability in the Binance Java Connector related to the Okio library. The issue is a "Signed to Unsigned Conversion Error," identified by GitHub Security Advisory GHSA-w33c-445m-f8w7. This vulnerability could pose a security risk in applications using the connector with versions of Okio before 3.0.0.

Steps to Reproduce:

  1. Add the binance-connector-java dependency to your project (pom.xml).
  2. Run an OWASP Dependency Check or similar security tool to analyze your project.
  3. The tool flags the issue due to the use of Okio in the connector, specifically in versions 3.0.x and lower.

Affected Versions:

Binance Java Connector version 3.4.0 and earlier.

Solution:
To resolve the issue, I fixed the vulnerability by enforcing the use of Okio version 3.9.1, which addresses the security concern. Here is the fix I applied to my pom.xml file:

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>com.squareup.okio</groupId>
            <artifactId>okio</artifactId>
            <version>3.9.1</version>
        </dependency>
    </dependencies>
</dependencyManagement>

This forces the project to use Okio version 3.9.1, which is free from the vulnerability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant