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

fix(deps): update module google.golang.org/protobuf to v1.33.0 [security] (release-1.13) - autoclosed #5591

Conversation

crossplane-renovate[bot]
Copy link
Contributor

@crossplane-renovate crossplane-renovate bot commented Apr 17, 2024

This PR contains the following updates:

Package Type Update Change
google.golang.org/protobuf require minor v1.31.0 -> v1.33.0

Infinite loop in JSON unmarshaling in google.golang.org/protobuf

CVE-2024-24786 / GHSA-8r3f-844c-mc37 / GO-2024-2611

More information

Details

The protojson.Unmarshal function can enter an infinite loop when unmarshaling certain forms of invalid JSON. This condition can occur when unmarshaling into a message which contains a google.protobuf.Any value, or when the UnmarshalOptions.DiscardUnknown option is set.

Severity

Unknown

References

This data is provided by OSV and the Go Vulnerability Database (CC-BY 4.0).


Golang protojson.Unmarshal function infinite loop when unmarshaling certain forms of invalid JSON

CVE-2024-24786 / GHSA-8r3f-844c-mc37 / GO-2024-2611

More information

Details

The protojson.Unmarshal function can enter an infinite loop when unmarshaling certain forms of invalid JSON. This condition can occur when unmarshaling into a message which contains a google.protobuf.Any value, or when the UnmarshalOptions.DiscardUnknown option is set.

Severity

Moderate

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


Release Notes

protocolbuffers/protobuf-go (google.golang.org/protobuf)

v1.33.0

Compare Source

This release contains one security fix:

  • encoding/protojson: Unmarshal could enter an infinite loop when unmarshaling certain forms of invalid JSON. This condition can occur when unmarshaling into a message which contains a google.protobuf.Any value, or when the UnmarshalOptions.DiscardUnknown option is set. Unmarshal now correctly returns an error when handling these inputs. This is CVE-2024-24786.

v1.32.0

Compare Source

Full Changelog: protocolbuffers/protobuf-go@v1.31.0...v1.32.0

This release contains commit protocolbuffers/protobuf-go@bfcd647, which fixes a denial of service vulnerability by preventing a stack overflow through a default maximum recursion limit. See https://github.com/golang/protobuf/issues/1583 and https://github.com/golang/protobuf/issues/1584 for details.


Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@crossplane-renovate crossplane-renovate bot requested review from a team as code owners April 17, 2024 09:02
@crossplane-renovate crossplane-renovate bot force-pushed the renovate/release-1.13-go-google.golang.org/protobuf-vulnerability branch from 5cde078 to 13c76c3 Compare April 17, 2024 09:48
@crossplane-renovate
Copy link
Contributor Author

crossplane-renovate bot commented Apr 17, 2024

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: go.mod
Command failed: make generate
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xa07b8f]

goroutine 147 [running]:
go/types.(*Checker).handleBailout(0xc001667400, 0xc000da3d40)
	/opt/containerbase/tools/golang/1.22.2/src/go/types/check.go:367 +0x88
panic({0xbbe6a0?, 0x12a64a0?})
	/opt/containerbase/tools/golang/1.22.2/src/runtime/panic.go:770 +0x132
go/types.(*StdSizes).Sizeof(0x0, {0xdb8358, 0x12aec40})
	/opt/containerbase/tools/golang/1.22.2/src/go/types/sizes.go:228 +0x30f
go/types.(*Config).sizeof(...)
	/opt/containerbase/tools/golang/1.22.2/src/go/types/sizes.go:333
go/types.representableConst.func1({0xdb8358?, 0x12aec40?})
	/opt/containerbase/tools/golang/1.22.2/src/go/types/const.go:76 +0x9e
go/types.representableConst({0xdbe6b0, 0x1279c80}, 0xc001667400, 0x12aec40, 0x0)
	/opt/containerbase/tools/golang/1.22.2/src/go/types/const.go:92 +0x192
go/types.(*Checker).arrayLength(0xc001667400, {0xdbc958, 0xc0018996a0?})
	/opt/containerbase/tools/golang/1.22.2/src/go/types/typexpr.go:510 +0x2d3
go/types.(*Checker).typInternal(0xc001667400, {0xdbaf78, 0xc001893650}, 0x0)
	/opt/containerbase/tools/golang/1.22.2/src/go/types/typexpr.go:299 +0x49d
go/types.(*Checker).definedType(0xc001667400, {0xdbaf78, 0xc001893650}, 0xc000da3328?)
	/opt/containerbase/tools/golang/1.22.2/src/go/types/typexpr.go:180 +0x37
go/types.(*Checker).varType(0xc001667400, {0xdbaf78, 0xc001893650})
	/opt/containerbase/tools/golang/1.22.2/src/go/types/typexpr.go:145 +0x25
go/types.(*Checker).structType(0xc001667400, 0xc0018b2d50, 0xc0018b2d50?)
	/opt/containerbase/tools/golang/1.22.2/src/go/types/struct.go:113 +0x19f
go/types.(*Checker).typInternal(0xc001667400, {0xdbaee8, 0xc001891110}, 0xc0018b6550)
	/opt/containerbase/tools/golang/1.22.2/src/go/types/typexpr.go:316 +0x1345
go/types.(*Checker).definedType(0xc001667400, {0xdbaee8, 0xc001891110}, 0xc8796c?)
	/opt/containerbase/tools/golang/1.22.2/src/go/types/typexpr.go:180 +0x37
go/types.(*Checker).typeDecl(0xc001667400, 0xc0018b6550, 0xc001896f40, 0x0)
	/opt/containerbase/tools/golang/1.22.2/src/go/types/decl.go:615 +0x44d
go/types.(*Checker).objDecl(0xc001667400, {0xdc3c00, 0xc0018b6550}, 0x0)
	/opt/containerbase/tools/golang/1.22.2/src/go/types/decl.go:197 +0xa7f
go/types.(*Checker).packageObjects(0xc001667400)
	/opt/containerbase/tools/golang/1.22.2/src/go/types/resolver.go:681 +0x425
go/types.(*Checker).checkFiles(0xc001667400, {0xc0017a43f0, 0x3, 0x3})
	/opt/containerbase/tools/golang/1.22.2/src/go/types/check.go:408 +0x1a5
go/types.(*Checker).Files(...)
	/opt/containerbase/tools/golang/1.22.2/src/go/types/check.go:372
sigs.k8s.io/controller-tools/pkg/loader.(*loader).typeCheck(0xc000265440, 0xc000420020)
	/go/pkg/mod/sigs.k8s.io/controller-tools@v0.12.1/pkg/loader/loader.go:286 +0x36a
sigs.k8s.io/controller-tools/pkg/loader.(*Package).NeedTypesInfo(0xc000420020)
	/go/pkg/mod/sigs.k8s.io/controller-tools@v0.12.1/pkg/loader/loader.go:99 +0x39
sigs.k8s.io/controller-tools/pkg/loader.(*TypeChecker).check(0xc000725560, 0xc000420020)
	/go/pkg/mod/sigs.k8s.io/controller-tools@v0.12.1/pkg/loader/refs.go:268 +0x2b7
sigs.k8s.io/controller-tools/pkg/loader.(*TypeChecker).check.func1(0x3a?)
	/go/pkg/mod/sigs.k8s.io/controller-tools@v0.12.1/pkg/loader/refs.go:262 +0x53
created by sigs.k8s.io/controller-tools/pkg/loader.(*TypeChecker).check in goroutine 102
	/go/pkg/mod/sigs.k8s.io/controller-tools@v0.12.1/pkg/loader/refs.go:260 +0x1c5
exit status 2
apis/generate.go:45: running "go": exit status 1
make[1]: *** [build/makelib/golang.mk:240: go.generate] Error 1
make: *** [build/makelib/common.mk:434: generate] Error 2

@crossplane-renovate crossplane-renovate bot force-pushed the renovate/release-1.13-go-google.golang.org/protobuf-vulnerability branch from 13c76c3 to 46565e5 Compare April 17, 2024 09:59
@crossplane-renovate crossplane-renovate bot changed the title fix(deps): update module google.golang.org/protobuf to v1.33.0 [security] (release-1.13) fix(deps): update module google.golang.org/protobuf to v1.33.0 [security] (release-1.13) - autoclosed May 16, 2024
@crossplane-renovate crossplane-renovate bot deleted the renovate/release-1.13-go-google.golang.org/protobuf-vulnerability branch May 16, 2024 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants