You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "twmb (via GitHub)" <gi...@apache.org> on 2026/06/23 19:18:47 UTC

[PR] [fix][schema] Replace archived hamba/avro/v2 with maintained iskorotkov/avro/v2 fork [pulsar-client-go]

twmb opened a new pull request, #1518:
URL: https://github.com/apache/pulsar-client-go/pull/1518

   ### Motivation
   
   `github.com/hamba/avro/v2`, used by `pulsar/schema.go` for Avro encode/decode, was archived in January 2026 and is no longer maintained. The maintainer confirmed this and explicitly endorsed forking — https://github.com/hamba/avro/issues/595 ("there will be no more releases on this project... You can fix the issue in your own fork if you wish"). It carries two advisories with no upstream fix:
   
   - CVE-2026-46384 — Integer Overflow (GHSA-mc57-h6j3-3hmv)
   - CVE-2026-46385 — Infinite loop (GHSA-w8j3-pq8g-8m7w)
   
   The maintained fork `github.com/iskorotkov/avro/v2` carries the fixes/mitigations. This is recorded in the official Go vulnerability database triage, where the fork author identified it as the source of the fix:
   
   - https://github.com/golang/vulndb/issues/5047 (CVE-2026-46384)
   - https://github.com/golang/vulndb/issues/5046 (CVE-2026-46385)
   
   ### Modifications
   
   Switch the Avro dependency to `github.com/iskorotkov/avro/v2` (v2.33.1). It is a drop-in replacement — same package name and the same `Parse` / `Marshal` / `Unmarshal` API — so the only code change is a single import-path swap in `pulsar/schema.go`. `go mod tidy` additionally prunes some already-orphaned indirect deps and applies minor MVS-forced version bumps pulled in by the fork. The fork is wire-compatible: it produces byte-identical Avro output to hamba for the same schema, and each library cleanly decodes the other's encoded bytes.
   
   **Alternative:** `github.com/twmb/avro` is my own maintained repo, not a fork, with a slightly different approach. This could be used instead if interested, but the patch as is is the minimal fix.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [fix][schema] Replace archived hamba/avro/v2 with maintained iskorotkov/avro/v2 fork [pulsar-client-go]

Posted by "jffp113 (via GitHub) via commits" <co...@pulsar.apache.org>.
jffp113 commented on PR #1518:
URL: https://github.com/apache/pulsar-client-go/pull/1518#issuecomment-6743750532

   Why is this ticket closed and not merged?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [fix][schema] Replace archived hamba/avro/v2 with maintained iskorotkov/avro/v2 fork [pulsar-client-go]

Posted by "twmb (via GitHub)" <gi...@apache.org>.
twmb closed pull request #1518: [fix][schema] Replace archived hamba/avro/v2 with maintained iskorotkov/avro/v2 fork
URL: https://github.com/apache/pulsar-client-go/pull/1518


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org