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

Dependency org.yaml:snakeyaml, leading to CVE problem #223

Open
CVEDetect opened this issue Mar 22, 2023 · 0 comments
Open

Dependency org.yaml:snakeyaml, leading to CVE problem #223

CVEDetect opened this issue Mar 22, 2023 · 0 comments

Comments

@CVEDetect
Copy link

Hi, In /,there is a dependency org.yaml:snakeyaml:1.17 that calls the risk method.

CVE-2022-25857

The scope of this CVE affected version is [0,1.31)

After further analysis, in this project, the main Api called is org.yaml.snakeyaml.composer.Composer: composeNode(org.yaml.snakeyaml.nodes.Node)Lorg.yaml.snakeyaml.nodes.Node;

Risk method repair link : GitHub

CVE Bug Invocation Path--

Path Length : 7

CVE Bug Invocation Path : 
bt.bencoding.model.YamlBEObjectModelLoader: load(java.io.InputStream)Lbt.bencoding.model.BEObjectModel; /.m2/repository/com/google/guava/guava/30.1-jre/guava-30.1-jre.jar
org.yaml.snakeyaml.Yaml: load(java.io.InputStream)Ljava.lang.Object; /.m2/repository/com/google/guava/guava/30.1-jre/guava-30.1-jre.jar
org.yaml.snakeyaml.Yaml: loadFromReader(org.yaml.snakeyaml.reader.StreamReader,java.lang.Class)Ljava.lang.Object; /.m2/repository/com/google/guava/guava/30.1-jre/guava-30.1-jre.jar
org.yaml.snakeyaml.constructor.BaseConstructor: getSingleData(java.lang.Class)Ljava.lang.Object; /.m2/repository/com/google/guava/guava/30.1-jre/guava-30.1-jre.jar
org.yaml.snakeyaml.composer.Composer: getSingleNode()Lorg.yaml.snakeyaml.nodes.Node; .m2/repository/com/google/guava/guava/30.1-jre/guava-30.1-jre.jar
org.yaml.snakeyaml.composer.Composer: composeDocument()Lorg.yaml.snakeyaml.nodes.Node; /.m2/repository/com/google/guava/guava/30.1-jre/guava-30.1-jre.jar
org.yaml.snakeyaml.composer.Composer: composeNode(org.yaml.snakeyaml.nodes.Node)Lorg.yaml.snakeyaml.nodes.Node;

Dependency tree--

[INFO] com.github.atomashpolskiy:bt-bencoding:jar:1.11-SNAPSHOT
[INFO] +- org.yaml:snakeyaml:jar:1.17:compile
[INFO] +- com.google.guava:guava:jar:30.1-jre:compile
[INFO] |  +- com.google.guava:failureaccess:jar:1.0.1:compile
[INFO] |  +- com.google.guava:listenablefuture:jar:9999.0-empty-to-avoid-conflict-with-guava:compile
[INFO] |  +- com.google.code.findbugs:jsr305:jar:3.0.2:compile
[INFO] |  +- org.checkerframework:checker-qual:jar:3.5.0:compile
[INFO] |  +- com.google.errorprone:error_prone_annotations:jar:2.3.4:compile
[INFO] |  \- com.google.j2objc:j2objc-annotations:jar:1.3:compile
[INFO] +- junit:junit:jar:4.12:test
[INFO] |  \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] \- org.mockito:mockito-all:jar:1.10.19:test

Suggested solutions:

Update dependency version

Thank you very much.

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