datacite / lupo

DataCite REST API
https://api.datacite.org
MIT License
11 stars 8 forks source link

upgrade google-protobuf due to potential denial of service issue #1247

Closed wendelfabianchinsamy closed 1 week ago

wendelfabianchinsamy commented 2 weeks ago

Purpose

When parsing unknown fields in the Protobuf Java Lite and Full library, a maliciously crafted message can cause a StackOverflow error and lead to a program crash.

Reporter: Alexis Challande, Trail of Bits Ecosystem Security Team ecosystem@trailofbits.com

Affected versions: This issue affects all versions of both the Java full and lite Protobuf runtimes, as well as Protobuf for Kotlin and JRuby, which themselves use the Java Protobuf runtime.

closes: https://github.com/datacite/lupo/issues/1246

Approach

Open Questions and Pre-Merge TODOs

Learning

Types of changes

Reviewer, please remember our guidelines:

richardhallett commented 1 week ago

Uh, what are we using protobuf for in the first place? Is it used by a dependency? Also we're not running jruby or does this dependency run that in the background for it to work?

wendelfabianchinsamy commented 1 week ago

Uh, what are we using protobuf for in the first place? Is it used by a dependency? Also we're not running jruby or does this dependency run that in the background for it to work?

It is a dependency of apollo-federation (related to GraphQL).