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 #8

Open
CVEDetect opened this issue Apr 1, 2023 · 0 comments
Open

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

CVEDetect opened this issue Apr 1, 2023 · 0 comments

Comments

@CVEDetect
Copy link

Hi, In /yue-library-data-mybatis,there is a dependency org.yaml:snakeyaml:1.29 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 : 5

CVE Bug Invocation Path : 
ai.yue.library.data.mybatis.service.BaseService: insertBatch(java.util.Collection)Lai.yue.library.base.view.Result; /.m2/repository/jakarta/annotation/jakarta.annotation-api/1.3.5/jakarta.annotation-api-1.3.5.jar
org.yaml.snakeyaml.Yaml$2: next()Ljava.lang.Object; /.m2/repository/org/mybatis/spring/boot/mybatis-spring-boot-starter/2.2.2/mybatis-spring-boot-starter-2.2.2.jar
org.yaml.snakeyaml.Yaml$2: next()Lorg.yaml.snakeyaml.nodes.Node; /.m2/repository/org/mybatis/spring/boot/mybatis-spring-boot-starter/2.2.2/mybatis-spring-boot-starter-2.2.2.jar
org.yaml.snakeyaml.composer.Composer: getNode()Lorg.yaml.snakeyaml.nodes.Node; /.m2/repository/org/mybatis/spring/boot/mybatis-spring-boot-starter/2.2.2/mybatis-spring-boot-starter-2.2.2.jar
org.yaml.snakeyaml.composer.Composer: composeNode(org.yaml.snakeyaml.nodes.Node)Lorg.yaml.snakeyaml.nodes.Node;

Dependency tree--

[INFO] ai.ylyue:yue-library-data-mybatis:jar:j11.2.6.2-SNAPSHOT
[INFO] +- ai.ylyue:yue-library-base:jar:j11.2.6.2-SNAPSHOT:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter-json:jar:2.6.11:compile
[INFO] |  |  +- com.fasterxml.jackson.core:jackson-databind:jar:2.13.3:compile
[INFO] |  |  |  +- com.fasterxml.jackson.core:jackson-annotations:jar:2.13.3:compile
[INFO] |  |  |  \- com.fasterxml.jackson.core:jackson-core:jar:2.13.3:compile
[INFO] |  |  +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.13.3:compile
[INFO] |  |  +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.13.3:compile
[INFO] |  |  \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.13.3:compile
[INFO] |  +- org.hibernate.validator:hibernate-validator:jar:6.2.4.Final:compile
[INFO] |  |  +- jakarta.validation:jakarta.validation-api:jar:2.0.2:compile
[INFO] |  |  +- org.jboss.logging:jboss-logging:jar:3.4.3.Final:compile
[INFO] |  |  \- com.fasterxml:classmate:jar:1.5.1:compile
[INFO] |  +- org.springframework:spring-web:jar:5.3.22:compile
[INFO] |  |  +- org.springframework:spring-beans:jar:5.3.22:compile
[INFO] |  |  \- org.springframework:spring-core:jar:5.3.22:compile
[INFO] |  |     \- org.springframework:spring-jcl:jar:5.3.22:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter-actuator:jar:2.6.11:compile
[INFO] |  |  +- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:2.6.11:compile
[INFO] |  |  |  \- org.springframework.boot:spring-boot-actuator:jar:2.6.11:compile
[INFO] |  |  \- io.micrometer:micrometer-core:jar:1.8.9:compile
[INFO] |  |     +- org.hdrhistogram:HdrHistogram:jar:2.1.12:compile
[INFO] |  |     \- org.latencyutils:LatencyUtils:jar:2.0.3:runtime
[INFO] |  +- org.springframework.boot:spring-boot-configuration-processor:jar:2.6.11:compile
[INFO] |  +- com.alibaba:fastjson:jar:1.2.83:compile
[INFO] |  +- org.projectlombok:lombok:jar:1.18.24:compile
[INFO] |  +- cn.hutool:hutool-core:jar:5.8.11:compile
[INFO] |  \- com.google.code.findbugs:jsr305:jar:3.0.2:compile
[INFO] +- com.baomidou:mybatis-plus-boot-starter:jar:3.5.2:compile
[INFO] |  +- com.baomidou:mybatis-plus:jar:3.5.2:compile
[INFO] |  |  +- com.baomidou:mybatis-plus-extension:jar:3.5.2:compile
[INFO] |  |  |  \- com.baomidou:mybatis-plus-core:jar:3.5.2:compile
[INFO] |  |  |     \- com.baomidou:mybatis-plus-annotation:jar:3.5.2:compile
[INFO] |  |  \- org.jetbrains.kotlin:kotlin-stdlib-jdk8:jar:1.6.21:compile
[INFO] |  |     +- org.jetbrains.kotlin:kotlin-stdlib:jar:1.6.21:compile
[INFO] |  |     |  +- org.jetbrains.kotlin:kotlin-stdlib-common:jar:1.6.21:compile
[INFO] |  |     |  \- org.jetbrains:annotations:jar:13.0:compile
[INFO] |  |     \- org.jetbrains.kotlin:kotlin-stdlib-jdk7:jar:1.6.21:compile
[INFO] |  +- org.springframework.boot:spring-boot-autoconfigure:jar:2.6.11:compile
[INFO] |  |  \- org.springframework.boot:spring-boot:jar:2.6.11:compile
[INFO] |  |     \- org.springframework:spring-context:jar:5.3.22:compile
[INFO] |  |        +- org.springframework:spring-aop:jar:5.3.22:compile
[INFO] |  |        \- org.springframework:spring-expression:jar:5.3.22:compile
[INFO] |  \- org.springframework.boot:spring-boot-starter-jdbc:jar:2.6.11:compile
[INFO] |     +- com.zaxxer:HikariCP:jar:4.0.3:compile
[INFO] |     \- org.springframework:spring-jdbc:jar:5.3.22:compile
[INFO] |        \- org.springframework:spring-tx:jar:5.3.22:compile
[INFO] +- com.github.pagehelper:pagehelper-spring-boot-starter:jar:1.4.6:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter:jar:2.6.11:compile
[INFO] |  |  +- org.springframework.boot:spring-boot-starter-logging:jar:2.6.11:compile
[INFO] |  |  |  +- ch.qos.logback:logback-classic:jar:1.2.11:compile
[INFO] |  |  |  |  \- ch.qos.logback:logback-core:jar:1.2.11:compile
[INFO] |  |  |  +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.17.2:compile
[INFO] |  |  |  |  \- org.apache.logging.log4j:log4j-api:jar:2.17.2:compile
[INFO] |  |  |  \- org.slf4j:jul-to-slf4j:jar:1.7.36:compile
[INFO] |  |  +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
[INFO] |  |  \- org.yaml:snakeyaml:jar:1.29:compile
[INFO] |  +- org.mybatis.spring.boot:mybatis-spring-boot-starter:jar:2.2.2:compile
[INFO] |  |  +- org.mybatis.spring.boot:mybatis-spring-boot-autoconfigure:jar:2.2.2:compile
[INFO] |  |  +- org.mybatis:mybatis:jar:3.5.9:compile
[INFO] |  |  \- org.mybatis:mybatis-spring:jar:2.0.7:compile
[INFO] |  +- com.github.pagehelper:pagehelper-spring-boot-autoconfigure:jar:1.4.6:compile
[INFO] |  \- com.github.pagehelper:pagehelper:jar:5.3.2:compile
[INFO] |     \- com.github.jsqlparser:jsqlparser:jar:4.5:compile
[INFO] +- com.alibaba:druid-spring-boot-starter:jar:1.2.15:compile
[INFO] |  +- com.alibaba:druid:jar:1.2.15:compile
[INFO] |  \- org.slf4j:slf4j-api:jar:1.7.36:compile
[INFO] \- mysql:mysql-connector-java:jar:8.0.30:compile

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