iceberg icon indicating copy to clipboard operation
iceberg copied to clipboard

Patch release request CVE-2025-30065

Open ted-jenks opened this issue 1 year ago • 22 comments

Hello,

CVE-2025-30065 is pretty hairy. It is fixed on main and we were hoping we could get a patch release to cover it.

Thanks!

ted-jenks avatar Apr 08 '25 22:04 ted-jenks

+1 are we able to patch release this to older versions of Iceberg?

kgduong avatar Apr 09 '25 20:04 kgduong

We are planning for 1.9.0 RC today. So, new version of Iceberg will be out with this CVE fix.

Regarding patch release. Are you looking for 1.8.x or 1.7.x? But this CVE exits for all previous versions. So, it will be impractical to bump all the recent releases. Is it possible to use the latest 1.9.0 release?

@nastra : Thoughts?

ajantha-bhat avatar Apr 09 '25 20:04 ajantha-bhat

1.9.0 RC0 is out for voting. Which has a fix for this CVE https://lists.apache.org/thread/fvm5dg2kd7ofm7x2xo3oyjjl9r8dcssq

ajantha-bhat avatar Apr 09 '25 22:04 ajantha-bhat

@ajantha-bhat we are interested in patching 1.6.x, 1.7.x, and 1.8.x. There are two reasons we are asking for this:

  1. We really need to address those security issues as soon as possible. We can't wait until 1.9.0 is out.
  2. Upgrading newer version requires extensive testing on our side. It's much safer to patch the existing versions and fast track the deployment.

If we create PRs, would the community open to release the patched version to maven?

jeremysong avatar Apr 10 '25 16:04 jeremysong

If we create PRs, would the community open to release the patched version to maven?

Yes. Iceberg community welcomes patch releases independent of release cycle if there is a blocker issue like this. Yeah, please feel free to raise a PR on branches (maybe for 1.8.x first). I am not sure about 1.7.x and 1.6.x releases yet.

One of the PMCs like @nastra or @Fokko will help in uploading the artifacts and creating the tags.

ajantha-bhat avatar Apr 10 '25 18:04 ajantha-bhat

@jeremysong have you finished those Pr's yet?

RussellSpitzer avatar Apr 10 '25 18:04 RussellSpitzer

Created a pull request: https://github.com/apache/iceberg/pull/12767. This is for 1.8.x, will send another pr for 1.7 and 1.6

akhilyendluri avatar Apr 10 '25 23:04 akhilyendluri

Created pull requests for 1.7 and 1.6:

1.7.x: https://github.com/apache/iceberg/pull/12778 1.6.x: https://github.com/apache/iceberg/pull/12780

akhilyendluri avatar Apr 11 '25 23:04 akhilyendluri

I opened a discussion on dev list. Please chime in.

manuzhang avatar Apr 12 '25 14:04 manuzhang

I think your prs need a fix to the tests because some of the metrics are not the same between 13 and 15

On Sat, Apr 12, 2025 at 9:54 AM Manu Zhang @.***> wrote:

I opened a discussion on dev list https://lists.apache.org/thread/0tnnc81p6nw2kz32oz1fscvm2ztf8wtb. Please chime in.

— Reply to this email directly, view it on GitHub https://github.com/apache/iceberg/issues/12749#issuecomment-2798861989, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADE2YKIGEDMS5TY5FS32PT2ZESLXAVCNFSM6AAAAAB2XNZBECVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOOJYHA3DCOJYHE . You are receiving this because you commented.Message ID: @.***> manuzhang left a comment (apache/iceberg#12749) https://github.com/apache/iceberg/issues/12749#issuecomment-2798861989

I opened a discussion on dev list https://lists.apache.org/thread/0tnnc81p6nw2kz32oz1fscvm2ztf8wtb. Please chime in.

— Reply to this email directly, view it on GitHub https://github.com/apache/iceberg/issues/12749#issuecomment-2798861989, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADE2YKIGEDMS5TY5FS32PT2ZESLXAVCNFSM6AAAAAB2XNZBECVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOOJYHA3DCOJYHE . You are receiving this because you commented.Message ID: @.***>

RussellSpitzer avatar Apr 12 '25 20:04 RussellSpitzer

I think your prs need a fix to the tests because some of the metrics are not the same between 13 and 15 …

Are these changes are breaking changes for users? Can we move forward anyway? Do we need to highlight these changes for the users?

pvary avatar Apr 13 '25 05:04 pvary

Are these changes are breaking changes for users? Can we move forward anyway? Do we need to highlight these changes for the users?

Previously, we also updated metrics when in tests upgrading parquet from 1.13.1 to 1.14.3

manuzhang avatar Apr 14 '25 01:04 manuzhang

Are these changes are breaking changes for users? Can we move forward anyway? Do we need to highlight these changes for the users?

Previously, we also updated metrics when in tests upgrading parquet from 1.13.1 to 1.14.3

If I understand correctly, that change happened for a minor release. We are talking about a patch release here, which usually has more strict compatibility guarantees. 🤔

pvary avatar Apr 14 '25 05:04 pvary

Why is an Iceberg release needed? Can't this dependency version be overridden in downstream projects?

rdblue avatar Apr 14 '25 15:04 rdblue

Why is an Iceberg release needed? Can't this dependency version be overridden in downstream projects?

@rdblue this is true for most of the projects. But Iceberg Spark runtime is an exception. It already includes all dependencies in the jar. So we would have to unzip the jar, replace paruqet-avro classes, and create a new jar.

jeremysong avatar Apr 14 '25 16:04 jeremysong

@rdblue this is true for most of the projects. But Iceberg Spark runtime is an exception. It already includes all dependencies in the jar. So we would have to unzip the jar, replace paruqet-avro classes, and create a new jar.

If this is the main concern, then I think our recommendation should be to update the version of the Iceberg runtime bundle.

Runtime bundles are plugins that use the Iceberg API within another engine or framework, like Flink or Spark. Users are insulated from problems because they rely on the API of that engine. If you're using one of the convenience bundles, then it should be fine to upgrade to one that includes the updated dependency and we don't need to backport to older release lines than the current (1.8.x).

rdblue avatar Apr 14 '25 22:04 rdblue

If this is the main concern, then I think our recommendation should be to update the version of the Iceberg runtime bundle.

@rdblue But the newer version of the Iceberg runtime bundle does tie to specific Iceberg versions as well, and different versions do introduce differences that warrant some thorough testing in our system. For example, object storage file layout in 1.6.x have different pattern from 1.8.x. If any one takes some dependencies on the particular structure in 1.6.x, they would very cautious to bump the version to 1.8.x. Usually when we upgrade the Iceberg versions, we will go a lot of testing to verify its correctness, performance, and backward compatibility, to leave no stone unturned.

Given that 1.6.1 was released on August 27, 2024, less than 1 year ago, I do think the community should continue supporting it for critical security/bug fixes like this one. However, if the community already decided that users should always upgrade to latest version ASAP, I rest my case.

Meanwhile, @nastra @pvary since PR https://github.com/apache/iceberg/pull/12767 has already merged, what's the next step to release it?

jeremysong avatar Apr 15 '25 03:04 jeremysong

In the past the community has always recommended users to upgrade to the latest version. The reason I thought it might be a good idea to get this into 1.8.x (and not any older versions) is because 1.9.0 wasn't ready yet and doing a Parquet upgrade in 1.8.x shouldn't be an issue, since it only bumps its patch version.

nastra avatar Apr 15 '25 06:04 nastra

In the past the community has always recommended users to upgrade to the latest version. The reason I thought it might be a good idea to get this into 1.8.x (and not any older versions) is because 1.9.0 wasn't ready yet and doing a Parquet upgrade in 1.8.x shouldn't be an issue, since it only bumps its patch version.

@nastra Thank you for the confirmation. We can try to use the latest version. This also means that we need to always prioritize upgrading to the latest version going forward. What should we do to release https://github.com/apache/iceberg/pull/12767? I assume we need to release a new version 1.8.2?

jeremysong avatar Apr 15 '25 16:04 jeremysong

I assume we need to release a new version 1.8.2?

Yes, we would need a 1.8.2 release, which is currently being discussed on the mailing list

nastra avatar Apr 15 '25 18:04 nastra