You are viewing a plain text version of this content. The canonical link for it is here.
Posted to security-discuss@community.apache.org by "Piotr P. Karwasz" <pi...@mailing.copernik.eu> on 2025/02/05 08:41:36 UTC

Legal implications of publishing VEX files

Hi all,

The current "upgrade hamster wheel" pushes us to make a release each 
time a dependency has a vulnerability, regardless of the kind of 
vulnerability and its exploitability in our projects. VEX files seem the 
ideal tool to limit the number of releases or the chain of upgrades that 
happens, when a deeply nested dependency has a problem (Apache 
Commons?). [In my definition VEX files only contain informations about 
CVEs published by dependencies, not the project itself]

Integrating VEX-es into our upgrade policy could be really beneficial: 
if something happens to a transitive dependency, but all our direct 
dependencies publish a "not affected" VEX statement, we can skip the 
upgrade and publish a "not_affected" VEX statement ourselves. If a 
direct dependency publishes an "exploitable" VEX statement and a nice 
description of the conditions under which the bug can be triggered, we 
can still check if we meet those conditions in our own code. We won't 
have to analyze the code of our dependencies! Maybe we are not affected 
and we can just publish a VEX statement that says so.

However, as pointed out by Jarek, what happens if we make a mistake? 
Will the ASF or ourselves be liable?

VEX-es are going to happen, whether we want it or not, because the USA 
is pushing for them. If there is a legal risk, however, I will choose to 
always publish an "exploitable" VEX statement to be safe and only in the 
details I would write "Our analysis shows that the bug is not 
exploitable in Foo. Disclaimer: this does not constitute a security 
advise, consult your own security expert".

Piotr


---------------------------------------------------------------------
To unsubscribe, e-mail: security-discuss-unsubscribe@community.apache.org
For additional commands, e-mail: security-discuss-help@community.apache.org


Re: Legal implications of publishing VEX files

Posted by Gary Gregory <ga...@gmail.com>.
On Fri, Feb 7, 2025, 03:12 Jarek Potiuk <ja...@potiuk.com> wrote:

> > The CRA mandates manufacturers to supply patches upstream, I wonder if
> this could be extended to VEX-es
>
> Actually, this is an interesting "take". I wonder if we can have some ways
> of publishing our VEX-es by a third party, not by us and allowing users to
> contribute there same as - making it effectively "crowd-sourced" and not
> "officially published by the ASF".
>
> I think if we can work it out and have such independent, trusted 3rd-party
> (parties?) where you could submit VEX information but not be "solely
> responsible" for the content in the VEX's, all my legal concerns are gone.
>

Unless I am misunderstanding, that doesn't sound safe to me. As we don't
allow anyone to publish CVEs for our wares but us (we are a CNA), shouldn't
this apply to other metadata especially when related to security?

Gary

>
>
> On Fri, Feb 7, 2025 at 8:45 AM Piotr P. Karwasz <piotr@mailing.copernik.eu
> >
> wrote:
>
> > Hi Arnout,
> >
> > On 5.02.2025 12:19, Arnout Engelen wrote:
> > > On Wed, Feb 5, 2025 at 9:41 AM Piotr P. Karwasz<
> > piotr@mailing.copernik.eu>
> > > wrote:
> > >
> > >> if something happens to a transitive dependency, but all our direct
> > >> dependencies publish a "not affected" VEX statement, we can skip the
> > >> upgrade
> > > Possibly (or perhaps doing the update but not rushing a release)
> >
> > Sure, in ecosystems where the latest release is not chosen
> > automatically, we should always try to use the latest versions.
> >
> > >> and publish a "not_affected" VEX statement ourselves.
> > > In this case, shouldn't downstream projects consume that upstream VEX
> > > themselves? I'm not sure we should repeat that information.
> > Publishing a "not_affected" VEX statement would show that we did analyze
> > the CVE and the VEX file is maintained.
> > >> If a
> > >> direct dependency publishes an "exploitable" VEX statement and a nice
> > >> description of the conditions under which the bug can be triggered, we
> > >> can still check if we meet those conditions in our own code. We won't
> > >> have to analyze the code of our dependencies! Maybe we are not
> affected
> > >> and we can just publish a VEX statement that says so.
> > >>
> > > This would be interesting. It would also be nice to be able to accept
> > such
> > > statements/descriptions as contributions.
> >
> > The CRA mandates manufacturers to supply patches upstream, I wonder if
> > this could be extended to VEX-es.
> >
> > Piotr
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> security-discuss-unsubscribe@community.apache.org
> > For additional commands, e-mail:
> > security-discuss-help@community.apache.org
> >
> >
>

Re: Legal implications of publishing VEX files

Posted by "Piotr P. Karwasz" <pi...@mailing.copernik.eu>.
Hi Olle,

On 7.02.2025 10:27, Olle E. Johansson wrote:
> In my head, the VEX files applies to an SBOM for a single version of a single product.
> At some point, that version becomes problematic and I would like to find a clear
> way to say “This version is replaced by the next version and you should NOT EVER
> use this version. It’s the end of the line. Get out of here.” because there is indeed
> a vulnerability that will be fixed in a new release.
>
> Another statement would be “there’s no known problems here at this date,
> but we will now stop looking and you should get out of this series of releases.”
> marking end-of-support.

I am not sure we will publish a separate VEX file for each version, more 
probably we will have a separate VEX file per minor version (TEA Leaf?) 
or even a single file for the entire major version. In Log4j we check 
vulnerability reports for all releases in the current major version, so 
it would make sense to do the same for VEX files.

Besides that I totally agree, we need to have a way to say:

* Go out of here, we don't check this release against vulnerability 
reports (and more important, we will not forward those reports to you).

* Go out of here or you risk a "smooth" upgrade between minor versions 
if a problem occurs. In my experience, an upgrade between minor versions 
has always some unexpected "side-effects".

Piotr


---------------------------------------------------------------------
To unsubscribe, e-mail: security-discuss-unsubscribe@community.apache.org
For additional commands, e-mail: security-discuss-help@community.apache.org


Re: Legal implications of publishing VEX files

Posted by "Olle E. Johansson" <oe...@edvina.net>.

> On 7 Feb 2025, at 09:11, Jarek Potiuk <ja...@potiuk.com> wrote:
> 
>> The CRA mandates manufacturers to supply patches upstream, I wonder if
> this could be extended to VEX-es
> 
> Actually, this is an interesting "take". I wonder if we can have some ways
> of publishing our VEX-es by a third party, not by us and allowing users to
> contribute there same as - making it effectively "crowd-sourced" and not
> "officially published by the ASF".
> 
> I think if we can work it out and have such independent, trusted 3rd-party
> (parties?) where you could submit VEX information but not be "solely
> responsible" for the content in the VEX's, all my legal concerns are gone.
That’s an interesting take. There are situations where a third party attestation
in the form of a vex file makes sense. The question is how we publish and discover
all relevant documents for a given product.

Right now the TEA solution focuses on what a single vendor has to say. When
discussing trust in a wider sense one need a trust and transparency archictecture,
which may be what the SCITT WG in IETF is coming up with.

In my head, the VEX files applies to an SBOM for a single version of a single product.
At some point, that version becomes problematic and I would like to find a clear
way to say “This version is replaced by the next version and you should NOT EVER
use this version. It’s the end of the line. Get out of here.” because there is indeed
a vulnerability that will be fixed in a new release.

Another statement would be “there’s no known problems here at this date,
but we will now stop looking and you should get out of this series of releases.”
marking end-of-support.

/O
> 
> 
> On Fri, Feb 7, 2025 at 8:45 AM Piotr P. Karwasz <pi...@mailing.copernik.eu>
> wrote:
> 
>> Hi Arnout,
>> 
>> On 5.02.2025 12:19, Arnout Engelen wrote:
>>> On Wed, Feb 5, 2025 at 9:41 AM Piotr P. Karwasz<
>> piotr@mailing.copernik.eu>
>>> wrote:
>>> 
>>>> if something happens to a transitive dependency, but all our direct
>>>> dependencies publish a "not affected" VEX statement, we can skip the
>>>> upgrade
>>> Possibly (or perhaps doing the update but not rushing a release)
>> 
>> Sure, in ecosystems where the latest release is not chosen
>> automatically, we should always try to use the latest versions.
>> 
>>>> and publish a "not_affected" VEX statement ourselves.
>>> In this case, shouldn't downstream projects consume that upstream VEX
>>> themselves? I'm not sure we should repeat that information.
>> Publishing a "not_affected" VEX statement would show that we did analyze
>> the CVE and the VEX file is maintained.
>>>> If a
>>>> direct dependency publishes an "exploitable" VEX statement and a nice
>>>> description of the conditions under which the bug can be triggered, we
>>>> can still check if we meet those conditions in our own code. We won't
>>>> have to analyze the code of our dependencies! Maybe we are not affected
>>>> and we can just publish a VEX statement that says so.
>>>> 
>>> This would be interesting. It would also be nice to be able to accept
>> such
>>> statements/descriptions as contributions.
>> 
>> The CRA mandates manufacturers to supply patches upstream, I wonder if
>> this could be extended to VEX-es.
>> 
>> Piotr
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: security-discuss-unsubscribe@community.apache.org
>> For additional commands, e-mail:
>> security-discuss-help@community.apache.org
>> 
>> 


---------------------------------------------------------------------
To unsubscribe, e-mail: security-discuss-unsubscribe@community.apache.org
For additional commands, e-mail: security-discuss-help@community.apache.org


Re: Legal implications of publishing VEX files

Posted by Jarek Potiuk <ja...@potiuk.com>.
> The CRA mandates manufacturers to supply patches upstream, I wonder if
this could be extended to VEX-es

Actually, this is an interesting "take". I wonder if we can have some ways
of publishing our VEX-es by a third party, not by us and allowing users to
contribute there same as - making it effectively "crowd-sourced" and not
"officially published by the ASF".

I think if we can work it out and have such independent, trusted 3rd-party
(parties?) where you could submit VEX information but not be "solely
responsible" for the content in the VEX's, all my legal concerns are gone.


On Fri, Feb 7, 2025 at 8:45 AM Piotr P. Karwasz <pi...@mailing.copernik.eu>
wrote:

> Hi Arnout,
>
> On 5.02.2025 12:19, Arnout Engelen wrote:
> > On Wed, Feb 5, 2025 at 9:41 AM Piotr P. Karwasz<
> piotr@mailing.copernik.eu>
> > wrote:
> >
> >> if something happens to a transitive dependency, but all our direct
> >> dependencies publish a "not affected" VEX statement, we can skip the
> >> upgrade
> > Possibly (or perhaps doing the update but not rushing a release)
>
> Sure, in ecosystems where the latest release is not chosen
> automatically, we should always try to use the latest versions.
>
> >> and publish a "not_affected" VEX statement ourselves.
> > In this case, shouldn't downstream projects consume that upstream VEX
> > themselves? I'm not sure we should repeat that information.
> Publishing a "not_affected" VEX statement would show that we did analyze
> the CVE and the VEX file is maintained.
> >> If a
> >> direct dependency publishes an "exploitable" VEX statement and a nice
> >> description of the conditions under which the bug can be triggered, we
> >> can still check if we meet those conditions in our own code. We won't
> >> have to analyze the code of our dependencies! Maybe we are not affected
> >> and we can just publish a VEX statement that says so.
> >>
> > This would be interesting. It would also be nice to be able to accept
> such
> > statements/descriptions as contributions.
>
> The CRA mandates manufacturers to supply patches upstream, I wonder if
> this could be extended to VEX-es.
>
> Piotr
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: security-discuss-unsubscribe@community.apache.org
> For additional commands, e-mail:
> security-discuss-help@community.apache.org
>
>

Re: Legal implications of publishing VEX files

Posted by "Piotr P. Karwasz" <pi...@mailing.copernik.eu>.
Hi Arnout,

On 5.02.2025 12:19, Arnout Engelen wrote:
> On Wed, Feb 5, 2025 at 9:41 AM Piotr P. Karwasz<pi...@mailing.copernik.eu>
> wrote:
>
>> if something happens to a transitive dependency, but all our direct
>> dependencies publish a "not affected" VEX statement, we can skip the
>> upgrade
> Possibly (or perhaps doing the update but not rushing a release)

Sure, in ecosystems where the latest release is not chosen 
automatically, we should always try to use the latest versions.

>> and publish a "not_affected" VEX statement ourselves.
> In this case, shouldn't downstream projects consume that upstream VEX
> themselves? I'm not sure we should repeat that information.
Publishing a "not_affected" VEX statement would show that we did analyze 
the CVE and the VEX file is maintained.
>> If a
>> direct dependency publishes an "exploitable" VEX statement and a nice
>> description of the conditions under which the bug can be triggered, we
>> can still check if we meet those conditions in our own code. We won't
>> have to analyze the code of our dependencies! Maybe we are not affected
>> and we can just publish a VEX statement that says so.
>>
> This would be interesting. It would also be nice to be able to accept such
> statements/descriptions as contributions.

The CRA mandates manufacturers to supply patches upstream, I wonder if 
this could be extended to VEX-es.

Piotr


---------------------------------------------------------------------
To unsubscribe, e-mail: security-discuss-unsubscribe@community.apache.org
For additional commands, e-mail: security-discuss-help@community.apache.org


Re: Legal implications of publishing VEX files

Posted by Arnout Engelen <en...@apache.org>.
On Wed, Feb 5, 2025 at 9:41 AM Piotr P. Karwasz <pi...@mailing.copernik.eu>
wrote:

> The current "upgrade hamster wheel" pushes us to make a release each
> time a dependency has a vulnerability, regardless of the kind of
> vulnerability and its exploitability in our projects.


Jup.


> VEX files seem the
> ideal tool to limit the number of releases or the chain of upgrades that
> happens, when a deeply nested dependency has a problem (Apache
> Commons?). [In my definition VEX files only contain informations about
> CVEs published by dependencies, not the project itself]
>

That is indeed interesting (see also
https://cwiki.apache.org/confluence/display/SECURITY/Dealing+with+security+advisories+for+dependencies),
though I've seen relatively few projects successfully consume VEXes yet. Of
course it's a bit of a chicken-and-egg thing.

Integrating VEX-es into our upgrade policy could be really beneficial:
> if something happens to a transitive dependency, but all our direct
> dependencies publish a "not affected" VEX statement, we can skip the
> upgrade


Possibly (or perhaps doing the update but not rushing a release)


> and publish a "not_affected" VEX statement ourselves.


In this case, shouldn't downstream projects consume that upstream VEX
themselves? I'm not sure we should repeat that information.


> If a
> direct dependency publishes an "exploitable" VEX statement and a nice
> description of the conditions under which the bug can be triggered, we
> can still check if we meet those conditions in our own code. We won't
> have to analyze the code of our dependencies! Maybe we are not affected
> and we can just publish a VEX statement that says so.
>

This would be interesting. It would also be nice to be able to accept such
statements/descriptions as contributions.


> However, as pointed out by Jarek, what happens if we make a mistake?
> Will the ASF or ourselves be liable?
>
> VEX-es are going to happen, whether we want it or not, because the USA
> is pushing for them. If there is a legal risk, however, I will choose to
> always publish an "exploitable" VEX statement to be safe and only in the
> details I would write "Our analysis shows that the bug is not
> exploitable in Foo. Disclaimer: this does not constitute a security
> advise, consult your own security expert".
>

IANAL, TINLA, but: I don't see a reason to treat this any differently to
any of the other 'possibly wrong' things we publish, such as code,
documentation, and license information. So we should apply our regular
common sense and review/monitoring processes for VEX information just like
we do for code and releases, and then publishing a 'not affected' statement
(perhaps with a "Disclaimer: this does not constitute a security advice,
consult your own security expert" note) should be fine. In the end it is in
everyone's interest that we share this information if we have it. Companies
that apply our software in particularly-risky areas will still have to do
their own due diligence, the same way they don't take our word for "it's
Apache 2.0 licensed" but do additional checks there as well.


Kind regards,

-- 
Arnout Engelen
ASF Security Response
Apache Pekko PMC member, ASF Member
NixOS Committer
Independent Open Source consultant

Re: Legal implications of publishing VEX files

Posted by Jarek Potiuk <ja...@potiuk.com>.
Cool. Let's see where it gets us :)

On Wed, Feb 5, 2025 at 2:58 PM Piotr P. Karwasz <pi...@mailing.copernik.eu>
wrote:

> Hi all,
>
> On 5.02.2025 14:11, Piotr P. Karwasz wrote:
> > On 5.02.2025 13:47, Jarek Potiuk wrote:
> >> But VEX is a different thing. At some point of time VEX might be
> >> expected
> >> as what "regulators" want. And it will become much more "official" then.
> >> And .... Do we actually have a licence for the VEX we publish? Is it
> >> published under the ASF 2.0 and do we have proper protection there ? I
> >> seriously doubt either of the two statements are true:
> >>
> >> a) I think we do not have any way to put any licence attached to VEX we
> >> publish - until we have some ways that we can attach a licence they are
> >> published "as is"
> >> b) I think Apache 2.0 licence does not cover responsibility for
> >> 3rd-party
> >> vulnerabilities that we might assume by publishing VEX
> >
> > At least in CycloneDX, there is an option for that[1]. The
> > `$.metadata.licenses` element is described as:
> >
> >     The license information for the BOM document.
> >     This may be different from the license(s) of the component(s) that
> > the BOM describes.
> >
> > So the question is: what license should we put here?
>
> Thank you for helping me better classify the problem. I have opened:
>
> https://issues.apache.org/jira/browse/LEGAL-698
>
> to ask LEGAL about the best license for CycloneDX documents.
>
> Piotr
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: security-discuss-unsubscribe@community.apache.org
> For additional commands, e-mail:
> security-discuss-help@community.apache.org
>
>

Re: Legal implications of publishing VEX files

Posted by "Piotr P. Karwasz" <pi...@mailing.copernik.eu>.
Hi all,

On 5.02.2025 14:11, Piotr P. Karwasz wrote:
> On 5.02.2025 13:47, Jarek Potiuk wrote:
>> But VEX is a different thing. At some point of time VEX might be 
>> expected
>> as what "regulators" want. And it will become much more "official" then.
>> And .... Do we actually have a licence for the VEX we publish? Is it
>> published under the ASF 2.0 and do we have proper protection there ? I
>> seriously doubt either of the two statements are true:
>>
>> a) I think we do not have any way to put any licence attached to VEX we
>> publish - until we have some ways that we can attach a licence they are
>> published "as is"
>> b) I think Apache 2.0 licence does not cover responsibility for 
>> 3rd-party
>> vulnerabilities that we might assume by publishing VEX
>
> At least in CycloneDX, there is an option for that[1]. The 
> `$.metadata.licenses` element is described as:
>
>     The license information for the BOM document.
>     This may be different from the license(s) of the component(s) that 
> the BOM describes.
>
> So the question is: what license should we put here?

Thank you for helping me better classify the problem. I have opened:

https://issues.apache.org/jira/browse/LEGAL-698

to ask LEGAL about the best license for CycloneDX documents.

Piotr


---------------------------------------------------------------------
To unsubscribe, e-mail: security-discuss-unsubscribe@community.apache.org
For additional commands, e-mail: security-discuss-help@community.apache.org


Re: Legal implications of publishing VEX files

Posted by "Piotr P. Karwasz" <pi...@mailing.copernik.eu>.
Hi Jarek,

On 5.02.2025 13:47, Jarek Potiuk wrote:
> But VEX is a different thing. At some point of time VEX might be expected
> as what "regulators" want. And it will become much more "official" then.
> And .... Do we actually have a licence for the VEX we publish? Is it
> published under the ASF 2.0 and do we have proper protection there ? I
> seriously doubt either of the two statements are true:
>
> a) I think we do not have any way to put any licence attached to VEX we
> publish - until we have some ways that we can attach a licence they are
> published "as is"
> b) I think Apache 2.0 licence does not cover responsibility for 3rd-party
> vulnerabilities that we might assume by publishing VEX

At least in CycloneDX, there is an option for that[1]. The 
`$.metadata.licenses` element is described as:

     The license information for the BOM document.
     This may be different from the license(s) of the component(s) that 
the BOM describes.

So the question is: what license should we put here?

Piotr

[1] https://cyclonedx.org/docs/1.6/json/#metadata_licenses

Re: Legal implications of publishing VEX files

Posted by Jarek Potiuk <ja...@potiuk.com>.
> IANAL, TINLA, but: I don't see a reason to treat this any differently to
any of the other 'possibly wrong' things we publish, such as code,
documentation, and license information. So we should apply our regular
common sense and review/monitoring processes for VEX information just like
we do for code and releases, and then publishing a 'not affected' statement
(perhaps with a "Disclaimer: this does not constitute a security advice,
consult your own security expert" note) should be fine. In the end it is in
everyone's interest that we share this information if we have it. Companies
that apply our software in particularly-risky areas will still have to do
their own due diligence, the same way they don't take our word for "it's
Apache 2.0 licensed" but do additional checks there as well.

IANAL,TINLA as well. But....

I think when we publish code, it is covered by our licence which explicitly
removes our responsibility and due to the way the licence is constructed in
Apache 2.0, we are even protected against not only against mistakes but
also against any patent litigations (as of Apache 2.0) - I think it was
very, very smart from the ASF people to come up with the patent protection
clause there - basically ASF keeping in check everyone who would like to
sue ASF for it. It's a marvel of legal stuff if you ask me.

But VEX is a different thing. At some point of time VEX might be expected
as what "regulators" want. And it will become much more "official" then.
And .... Do we actually have a licence for the VEX we publish? Is it
published under the ASF 2.0 and do we have proper protection there ? I
seriously doubt either of the two statements are true:

a) I think we do not have any way to put any licence attached to VEX we
publish - until we have some ways that we can attach a licence they are
published "as is"
b) I think Apache 2.0 licence does not cover responsibility for 3rd-party
vulnerabilities that we might assume by publishing VEX

Possibly we need an Apache 3.0 licence that covers it - but again IANAL.
But I would never, ever tell anyone "our project is not vulnerable to this
3rd-party vulnerabilty" if I am acting in "official" capacity -
representing my PMC and ASF. This is far too risky IMHO




On Wed, Feb 5, 2025 at 1:22 PM Piotr P. Karwasz <pi...@mailing.copernik.eu>
wrote:

> Hi Gary,
>
> On 5.02.2025 13:09, Gary Gregory wrote:
> > Why is this not done as an Apache project?
>
> It is an experiment. For now we will profit from the simplified release
> procedure and low support expectations for this kind of projects. Rest
> assured that if this becomes popular enough, we'll submit it to Apache
> or OWASP CycloneDX.
>
> SBOMs is such a moving target that half of the projects that exist today
> will reach EOL in one year.
>
> Piotr
>
> [1] https://oss-review-toolkit.org/ort/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: security-discuss-unsubscribe@community.apache.org
> For additional commands, e-mail:
> security-discuss-help@community.apache.org
>
>

Re: Legal implications of publishing VEX files

Posted by Mark J Cox <mj...@apache.org>.
I'm with MarkT on this one.

We publish CVE all the time that may state "Apache Foo 1.0 was affected,
fixed in 1.1, 2.0 was not affected".  And we sometimes get that wrong, if
1.1 didn't fix the CVE or 2.0 was affected we issue a new and different
CVE.  The act of publishing a new CVE is the call to action and is designed
to ensure any automation or downstream statements propagate the right info.

We also make statements about big issues all the time that don't affect
various components in non-machine readable format, and also case by case by
email to our users questions.

VEX is a dynamic document and designed to have the state change, so making
a mistake is simply corrected by an update.  I'd see no problems with us
issuing VEX and making 'not affected' statements.

(I've not looked at VEX in much detail, but I did work to implement OVAL at
Red Hat which had a similar machine readable version list, and VEX has
replaced:
https://www.redhat.com/en/blog/vulnerability-exploitability-exchange-vex-beta-files-now-available
)

Regards, Mark J Cox
ASF Security


On Thu, Feb 6, 2025 at 8:10 AM Mark Thomas <ma...@apache.org> wrote:

> On 05/02/2025 14:53, Jarek Potiuk wrote:
> >> If this is true, then I don't see how anyone, ever, would issue a
> > "not affected" statement as mentioned by Arnout.
> >
> > Yep. I don't see it either. I would not do it for sure if I knew what
> legal
> > implications it brings.
> >
> > This is why my response to those questions are like this:
> >
> https://github.com/apache/airflow/discussions/44865#discussioncomment-11656354
> > and this https://github.com/apache/airflow/discussions/40590 and I would
> > never, ever respond differently.
> >
> > It makes some of our users angry, but I don't see how I can answer
> > differently currently without putting ASF and myself at risk. Not until
> we
> > have clarity on how to do it at least.
>
> I think risk of the scenario outlined a couple of messages earlier in
> this thread (and shown below) happening is very low.
>
> The statement that Apache ABC is "not affected" by a CVE is no different
> to the statement that the CVE "is mitigated" in Apache ABC by doing X.
>
> We (and everybody else writing software) have been doing the latter for
> years. Sometimes we get it wrong, and the result is simply a new CVE
> with the updated (hopefully complete) mitigation.
>
> I don't see how VEX introduces a new risk here.
>
> Statements around CVEs have always had the implied caveats of "To the
> best of our knowledge...", "As as as we are aware..." etc and I don't
> see why VEX statements should be any different.
>
> I certainly doesn't hurt to be more explicit about stating these caveats
> and I think there are benefits to being explicit. But I don't think
> there is a big new risk here.
>
> Mark
>
>
> > J.
> >
> >
> > On Wed, Feb 5, 2025 at 3:44 PM Gilles Sadowski <gi...@gmail.com>
> wrote:
> >
> >> Hi.
> >>
> >> Le mer. 5 févr. 2025 à 13:51, Jarek Potiuk <ja...@potiuk.com> a écrit :
> >>>
> >>> And let me repeat what I wrote on slack today:
> >>>
> >>> For ASF the legal risk is huge. If someone gets billions of dollars in
> >>> damage because they trusted we told them "we are not vulnerable to this
> >>> 3rd-party vulnerability" - they might sue ASF and demand all our
> >> trademarks
> >>> as compensation (not the money we have in the bank). This is is a HUGE
> >> risk
> >>> for ASF and the whole open-source community if you ask me.
> >>
> >> If this is true, then I don't see how anyone, ever, would issue a
> >> "not affected" statement as mentioned by Arnout.
> >>
> >> Regards,
> >> Gilles
> >>
> >>>> [...]
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail:
> security-discuss-unsubscribe@community.apache.org
> >> For additional commands, e-mail:
> >> security-discuss-help@community.apache.org
> >>
> >>
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: security-discuss-unsubscribe@community.apache.org
> For additional commands, e-mail:
> security-discuss-help@community.apache.org
>
>

Re: Legal implications of publishing VEX files

Posted by Lars Francke <la...@gmail.com>.
We (as a company) are publishing VEX (in CSAF) statements and we think
about them as we do about any other piece of code that enters our
codebase: Every statement needs a review by a second person.

I know that not every ASF project follows a review-then-commit workflow.
Personally I'd say a PMC vote is too much but a review process makes
sense to me.

We looked at dozens of tools and couldn't find one to support such a
workflow so we engaged with an open-source project and got it
implemented there: https://github.com/MaibornWolff/SecObserve

On Thu, Feb 6, 2025 at 9:39 AM Jarek Potiuk <ja...@potiuk.com> wrote:
>
> Also - should we vote on VEX's publishing/release with that information
> and have 3 +1 PMC votes? This is what we do with code we release with
> fixes, and this is the legal act of foundation.
>
> On Thu, Feb 6, 2025 at 9:37 AM Jarek Potiuk <ja...@potiuk.com> wrote:
>
> > And let me explain the difference vs. when we talk about "our" code.
> >
> > * When we release a fix to CVE in our code, the code we release is covered
> > by the ASF 2,0 licence. Clearly and plainly. No responsibility whatsoever.
> > * What happens when we release a statement about others code?  If we add
> > ASF 2.0 licence to VEX file - does it cover the liability ? it's not the
> > code we are releasing, we are releasing metadata about other's code. Is it
> > covered by ASF 2.0 licence we attach to the VEX? I am not sure.IANAL. But
> > at least we - as a Foundation with legal and our board eventually should
> > discuss this and agree what is our interpretation. Or maybe come up with a
> > different licence, or amendment to the existing licence.
> >
> > I am just not at all sure that the current licence is good for that case.
> >
> > J.
> >
> >
> > On Thu, Feb 6, 2025 at 9:22 AM Jarek Potiuk <ja...@potiuk.com> wrote:
> >
> >> > I don't see how VEX introduces a new risk here.
> >>
> >> It really depends on whether the VEX entry states: "Not affected" or
> >> "Possibly not affected". As you see in my responses - those are exactly
> >> what I am explaining in my responses is exactly what you explained. In one
> >> of those issues I responded to the user that "we do not use that affected
> >> functionally, so likely we are not affected". But yet the user demanded,
> >> and expected and was very persistent about it, to have 100% certainty and
> >> an authoritative answer.
> >>
> >> I am absolutely fine in putting in VEX:
> >>
> >> * don't know, did not check (when we did not want to spend days
> >> investigating it and it's difficult)
> >> * possibly not affected (when we think we are not affected)
> >> * affected, please upgrade (when we know)
> >>
> >> All those are fine, and if in the VEX we will be able to do it and be
> >> very clear that this is the meaning, I am perfectly fine with it.
> >>
> >> But I would - under any circumstances - never put "Certainly not
> >> affected" there. And this is what all commercial users will be expecting.
> >> None of the above answers (except affected) is satisfying to the consumer
> >> of VEX if you ask me and it's pretty useless.
> >>
> >>
> >> J.
> >>
> >>
> >> On Thu, Feb 6, 2025 at 9:10 AM Mark Thomas <ma...@apache.org> wrote:
> >>
> >>> On 05/02/2025 14:53, Jarek Potiuk wrote:
> >>> >> If this is true, then I don't see how anyone, ever, would issue a
> >>> > "not affected" statement as mentioned by Arnout.
> >>> >
> >>> > Yep. I don't see it either. I would not do it for sure if I knew what
> >>> legal
> >>> > implications it brings.
> >>> >
> >>> > This is why my response to those questions are like this:
> >>> >
> >>> https://github.com/apache/airflow/discussions/44865#discussioncomment-11656354
> >>> > and this https://github.com/apache/airflow/discussions/40590 and I
> >>> would
> >>> > never, ever respond differently.
> >>> >
> >>> > It makes some of our users angry, but I don't see how I can answer
> >>> > differently currently without putting ASF and myself at risk. Not
> >>> until we
> >>> > have clarity on how to do it at least.
> >>>
> >>> I think risk of the scenario outlined a couple of messages earlier in
> >>> this thread (and shown below) happening is very low.
> >>>
> >>> The statement that Apache ABC is "not affected" by a CVE is no different
> >>> to the statement that the CVE "is mitigated" in Apache ABC by doing X.
> >>>
> >>> We (and everybody else writing software) have been doing the latter for
> >>> years. Sometimes we get it wrong, and the result is simply a new CVE
> >>> with the updated (hopefully complete) mitigation.
> >>>
> >>> I don't see how VEX introduces a new risk here.
> >>>
> >>> Statements around CVEs have always had the implied caveats of "To the
> >>> best of our knowledge...", "As as as we are aware..." etc and I don't
> >>> see why VEX statements should be any different.
> >>>
> >>> I certainly doesn't hurt to be more explicit about stating these caveats
> >>> and I think there are benefits to being explicit. But I don't think
> >>> there is a big new risk here.
> >>>
> >>> Mark
> >>>
> >>>
> >>> > J.
> >>> >
> >>> >
> >>> > On Wed, Feb 5, 2025 at 3:44 PM Gilles Sadowski <gi...@gmail.com>
> >>> wrote:
> >>> >
> >>> >> Hi.
> >>> >>
> >>> >> Le mer. 5 févr. 2025 à 13:51, Jarek Potiuk <ja...@potiuk.com> a
> >>> écrit :
> >>> >>>
> >>> >>> And let me repeat what I wrote on slack today:
> >>> >>>
> >>> >>> For ASF the legal risk is huge. If someone gets billions of dollars
> >>> in
> >>> >>> damage because they trusted we told them "we are not vulnerable to
> >>> this
> >>> >>> 3rd-party vulnerability" - they might sue ASF and demand all our
> >>> >> trademarks
> >>> >>> as compensation (not the money we have in the bank). This is is a
> >>> HUGE
> >>> >> risk
> >>> >>> for ASF and the whole open-source community if you ask me.
> >>> >>
> >>> >> If this is true, then I don't see how anyone, ever, would issue a
> >>> >> "not affected" statement as mentioned by Arnout.
> >>> >>
> >>> >> Regards,
> >>> >> Gilles
> >>> >>
> >>> >>>> [...]
> >>> >>
> >>> >> ---------------------------------------------------------------------
> >>> >> To unsubscribe, e-mail:
> >>> security-discuss-unsubscribe@community.apache.org
> >>> >> For additional commands, e-mail:
> >>> >> security-discuss-help@community.apache.org
> >>> >>
> >>> >>
> >>> >
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail:
> >>> security-discuss-unsubscribe@community.apache.org
> >>> For additional commands, e-mail:
> >>> security-discuss-help@community.apache.org
> >>>
> >>>

---------------------------------------------------------------------
To unsubscribe, e-mail: security-discuss-unsubscribe@community.apache.org
For additional commands, e-mail: security-discuss-help@community.apache.org


Re: Legal implications of publishing VEX files

Posted by Jarek Potiuk <ja...@potiuk.com>.
Also - should we vote on VEX's publishing/release with that information
and have 3 +1 PMC votes? This is what we do with code we release with
fixes, and this is the legal act of foundation.

On Thu, Feb 6, 2025 at 9:37 AM Jarek Potiuk <ja...@potiuk.com> wrote:

> And let me explain the difference vs. when we talk about "our" code.
>
> * When we release a fix to CVE in our code, the code we release is covered
> by the ASF 2,0 licence. Clearly and plainly. No responsibility whatsoever.
> * What happens when we release a statement about others code?  If we add
> ASF 2.0 licence to VEX file - does it cover the liability ? it's not the
> code we are releasing, we are releasing metadata about other's code. Is it
> covered by ASF 2.0 licence we attach to the VEX? I am not sure.IANAL. But
> at least we - as a Foundation with legal and our board eventually should
> discuss this and agree what is our interpretation. Or maybe come up with a
> different licence, or amendment to the existing licence.
>
> I am just not at all sure that the current licence is good for that case.
>
> J.
>
>
> On Thu, Feb 6, 2025 at 9:22 AM Jarek Potiuk <ja...@potiuk.com> wrote:
>
>> > I don't see how VEX introduces a new risk here.
>>
>> It really depends on whether the VEX entry states: "Not affected" or
>> "Possibly not affected". As you see in my responses - those are exactly
>> what I am explaining in my responses is exactly what you explained. In one
>> of those issues I responded to the user that "we do not use that affected
>> functionally, so likely we are not affected". But yet the user demanded,
>> and expected and was very persistent about it, to have 100% certainty and
>> an authoritative answer.
>>
>> I am absolutely fine in putting in VEX:
>>
>> * don't know, did not check (when we did not want to spend days
>> investigating it and it's difficult)
>> * possibly not affected (when we think we are not affected)
>> * affected, please upgrade (when we know)
>>
>> All those are fine, and if in the VEX we will be able to do it and be
>> very clear that this is the meaning, I am perfectly fine with it.
>>
>> But I would - under any circumstances - never put "Certainly not
>> affected" there. And this is what all commercial users will be expecting.
>> None of the above answers (except affected) is satisfying to the consumer
>> of VEX if you ask me and it's pretty useless.
>>
>>
>> J.
>>
>>
>> On Thu, Feb 6, 2025 at 9:10 AM Mark Thomas <ma...@apache.org> wrote:
>>
>>> On 05/02/2025 14:53, Jarek Potiuk wrote:
>>> >> If this is true, then I don't see how anyone, ever, would issue a
>>> > "not affected" statement as mentioned by Arnout.
>>> >
>>> > Yep. I don't see it either. I would not do it for sure if I knew what
>>> legal
>>> > implications it brings.
>>> >
>>> > This is why my response to those questions are like this:
>>> >
>>> https://github.com/apache/airflow/discussions/44865#discussioncomment-11656354
>>> > and this https://github.com/apache/airflow/discussions/40590 and I
>>> would
>>> > never, ever respond differently.
>>> >
>>> > It makes some of our users angry, but I don't see how I can answer
>>> > differently currently without putting ASF and myself at risk. Not
>>> until we
>>> > have clarity on how to do it at least.
>>>
>>> I think risk of the scenario outlined a couple of messages earlier in
>>> this thread (and shown below) happening is very low.
>>>
>>> The statement that Apache ABC is "not affected" by a CVE is no different
>>> to the statement that the CVE "is mitigated" in Apache ABC by doing X.
>>>
>>> We (and everybody else writing software) have been doing the latter for
>>> years. Sometimes we get it wrong, and the result is simply a new CVE
>>> with the updated (hopefully complete) mitigation.
>>>
>>> I don't see how VEX introduces a new risk here.
>>>
>>> Statements around CVEs have always had the implied caveats of "To the
>>> best of our knowledge...", "As as as we are aware..." etc and I don't
>>> see why VEX statements should be any different.
>>>
>>> I certainly doesn't hurt to be more explicit about stating these caveats
>>> and I think there are benefits to being explicit. But I don't think
>>> there is a big new risk here.
>>>
>>> Mark
>>>
>>>
>>> > J.
>>> >
>>> >
>>> > On Wed, Feb 5, 2025 at 3:44 PM Gilles Sadowski <gi...@gmail.com>
>>> wrote:
>>> >
>>> >> Hi.
>>> >>
>>> >> Le mer. 5 févr. 2025 à 13:51, Jarek Potiuk <ja...@potiuk.com> a
>>> écrit :
>>> >>>
>>> >>> And let me repeat what I wrote on slack today:
>>> >>>
>>> >>> For ASF the legal risk is huge. If someone gets billions of dollars
>>> in
>>> >>> damage because they trusted we told them "we are not vulnerable to
>>> this
>>> >>> 3rd-party vulnerability" - they might sue ASF and demand all our
>>> >> trademarks
>>> >>> as compensation (not the money we have in the bank). This is is a
>>> HUGE
>>> >> risk
>>> >>> for ASF and the whole open-source community if you ask me.
>>> >>
>>> >> If this is true, then I don't see how anyone, ever, would issue a
>>> >> "not affected" statement as mentioned by Arnout.
>>> >>
>>> >> Regards,
>>> >> Gilles
>>> >>
>>> >>>> [...]
>>> >>
>>> >> ---------------------------------------------------------------------
>>> >> To unsubscribe, e-mail:
>>> security-discuss-unsubscribe@community.apache.org
>>> >> For additional commands, e-mail:
>>> >> security-discuss-help@community.apache.org
>>> >>
>>> >>
>>> >
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail:
>>> security-discuss-unsubscribe@community.apache.org
>>> For additional commands, e-mail:
>>> security-discuss-help@community.apache.org
>>>
>>>

Re: Legal implications of publishing VEX files

Posted by Jarek Potiuk <ja...@potiuk.com>.
And let me explain the difference vs. when we talk about "our" code.

* When we release a fix to CVE in our code, the code we release is covered
by the ASF 2,0 licence. Clearly and plainly. No responsibility whatsoever.
* What happens when we release a statement about others code?  If we add
ASF 2.0 licence to VEX file - does it cover the liability ? it's not the
code we are releasing, we are releasing metadata about other's code. Is it
covered by ASF 2.0 licence we attach to the VEX? I am not sure.IANAL. But
at least we - as a Foundation with legal and our board eventually should
discuss this and agree what is our interpretation. Or maybe come up with a
different licence, or amendment to the existing licence.

I am just not at all sure that the current licence is good for that case.

J.


On Thu, Feb 6, 2025 at 9:22 AM Jarek Potiuk <ja...@potiuk.com> wrote:

> > I don't see how VEX introduces a new risk here.
>
> It really depends on whether the VEX entry states: "Not affected" or
> "Possibly not affected". As you see in my responses - those are exactly
> what I am explaining in my responses is exactly what you explained. In one
> of those issues I responded to the user that "we do not use that affected
> functionally, so likely we are not affected". But yet the user demanded,
> and expected and was very persistent about it, to have 100% certainty and
> an authoritative answer.
>
> I am absolutely fine in putting in VEX:
>
> * don't know, did not check (when we did not want to spend days
> investigating it and it's difficult)
> * possibly not affected (when we think we are not affected)
> * affected, please upgrade (when we know)
>
> All those are fine, and if in the VEX we will be able to do it and be very
> clear that this is the meaning, I am perfectly fine with it.
>
> But I would - under any circumstances - never put "Certainly not affected"
> there. And this is what all commercial users will be expecting. None of the
> above answers (except affected) is satisfying to the consumer of VEX if you
> ask me and it's pretty useless.
>
>
> J.
>
>
> On Thu, Feb 6, 2025 at 9:10 AM Mark Thomas <ma...@apache.org> wrote:
>
>> On 05/02/2025 14:53, Jarek Potiuk wrote:
>> >> If this is true, then I don't see how anyone, ever, would issue a
>> > "not affected" statement as mentioned by Arnout.
>> >
>> > Yep. I don't see it either. I would not do it for sure if I knew what
>> legal
>> > implications it brings.
>> >
>> > This is why my response to those questions are like this:
>> >
>> https://github.com/apache/airflow/discussions/44865#discussioncomment-11656354
>> > and this https://github.com/apache/airflow/discussions/40590 and I
>> would
>> > never, ever respond differently.
>> >
>> > It makes some of our users angry, but I don't see how I can answer
>> > differently currently without putting ASF and myself at risk. Not until
>> we
>> > have clarity on how to do it at least.
>>
>> I think risk of the scenario outlined a couple of messages earlier in
>> this thread (and shown below) happening is very low.
>>
>> The statement that Apache ABC is "not affected" by a CVE is no different
>> to the statement that the CVE "is mitigated" in Apache ABC by doing X.
>>
>> We (and everybody else writing software) have been doing the latter for
>> years. Sometimes we get it wrong, and the result is simply a new CVE
>> with the updated (hopefully complete) mitigation.
>>
>> I don't see how VEX introduces a new risk here.
>>
>> Statements around CVEs have always had the implied caveats of "To the
>> best of our knowledge...", "As as as we are aware..." etc and I don't
>> see why VEX statements should be any different.
>>
>> I certainly doesn't hurt to be more explicit about stating these caveats
>> and I think there are benefits to being explicit. But I don't think
>> there is a big new risk here.
>>
>> Mark
>>
>>
>> > J.
>> >
>> >
>> > On Wed, Feb 5, 2025 at 3:44 PM Gilles Sadowski <gi...@gmail.com>
>> wrote:
>> >
>> >> Hi.
>> >>
>> >> Le mer. 5 févr. 2025 à 13:51, Jarek Potiuk <ja...@potiuk.com> a écrit
>> :
>> >>>
>> >>> And let me repeat what I wrote on slack today:
>> >>>
>> >>> For ASF the legal risk is huge. If someone gets billions of dollars in
>> >>> damage because they trusted we told them "we are not vulnerable to
>> this
>> >>> 3rd-party vulnerability" - they might sue ASF and demand all our
>> >> trademarks
>> >>> as compensation (not the money we have in the bank). This is is a HUGE
>> >> risk
>> >>> for ASF and the whole open-source community if you ask me.
>> >>
>> >> If this is true, then I don't see how anyone, ever, would issue a
>> >> "not affected" statement as mentioned by Arnout.
>> >>
>> >> Regards,
>> >> Gilles
>> >>
>> >>>> [...]
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail:
>> security-discuss-unsubscribe@community.apache.org
>> >> For additional commands, e-mail:
>> >> security-discuss-help@community.apache.org
>> >>
>> >>
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: security-discuss-unsubscribe@community.apache.org
>> For additional commands, e-mail:
>> security-discuss-help@community.apache.org
>>
>>

Re: Legal implications of publishing VEX files

Posted by "Piotr P. Karwasz" <pi...@mailing.copernik.eu>.
On 6.02.2025 13:15, Jarek Potiuk wrote:
>> I agree that we should only publish VEXes for the currently supported
> version (i.e. usually the most recent one).
>
> Do you know if there is a way to "unpublish" VEX's ? (mark them not
> maintained).
> Because that is what will effectively happen, we will have to start
> publishing new VEX's for the latest version and make sure that all the
> consumers of previous VEX know it's not maintained any more.

In CycloneDX you can specify, which versions of your component are 
affected by a CVE[1]. There are 3 states "affected", "unaffected" or 
"unknown". We can use the last status for versions that are no longer 
maintained.

If the VEX file itself becomes unmaintained, currently you probably need 
to rely on the same heuristic that you use to check if an OSS project is 
alive: if the timestamp in the VEX file is a couple of years old, the 
file is unmaintained. This is probably not a problem, since currently 
VEX-es are not required. If a downstream project needs some information 
from an OSS project, they can do the analysis themselves and make a PR.

In the midterm future the Common Lifecycle Enumeration will be ready and 
consumers can use that data to check if the VEX file is maintained. The 
definition of `endOfSupport`[3] in the initial draft[2] describes the 
end of support as:

```

Indicates when the manufacturer ceases any and all support of a 
component or service. This point in time marks a transfer of risk from 
the manufacturer to the consuming organisation or user of the component 
or service, encompassing all cybersecurity knowledge and known 
vulnerabilities, with no further assistance provided by the manufacturer.

```

Basically, once EOS is reached the VEX can be considered unmaintained.

[1] https://cyclonedx.org/docs/1.6/json/#vulnerabilities_items_affects

[2] https://github.com/Ecma-TC54/tg3/pull/3

[3] 
https://github.com/Ecma-TC54/tg3/blob/db8c721628c03bde3846cff3169ce37bb0349a08/SPECIFICATION.md#endofsupport

> As long as they are published in a way that we can discover them
> automatically - which is not the case currently, but hopefully transparency
> exchange API will make it possible,
If you can find an SBOM, you can find VDR-s and VEX-es via external 
references. In the Maven world, where SBOMs can be identified via a 
naming convention (not a formal spec), you can already do it.
> I guess also there will be a long tail
> of projects that do not have VEX's or VDRS or SBOMS for years to come, so
> the question is what we do with those dependencies? But I am afraid we are
> a few years from even a small percentage of our deps to support it. And if
> our users are regulators, ask us - what do we say?  We need to have a good
> answer prepared.

There will be dependencies without SBOMs for at least a decade. The Java 
Platform Module System was introduced in 2014. Today there are still 
basic libraries, which are not modules and you can not (reliably) use 
them in a modular library. JPMS can be harder to implement than SBOMs (I 
think it is not an accident that the abbreviation ends in PMS), but for 
simple libraries it is not difficult. You can contribute JPMS support to 
upstream projects. Sometimes they accept it, sometimes they don't.

With SBOMs we can do something similar: we can contribute SBOM 
generation and VEX entries, but if they don't want to, we tell users 
that we can not (reliably) publish VEX-es, because upstream projects 
don't do it.

> Good example is a Werkzeug dependency (that we did such analysis on):
>
> * Airflow 2 uses Werkzeug - transitively through several of our dependencies
> * For quite a while there is a known and serious vulnerability in Werkzeug (
> https://github.com/apache/airflow/discussions/44865 - CVE-2024-49767) in
> version 2.2.3 we have - fixed in version 3.0.0 . We believe it does not
> affect us as we do not seem to use that feature that affects us (uploading
> files) - but we are not sure, because this dependency is used by about 5 or
> 6 other dependencies of ours - not directly by us - and we have not done
> complete analysis of those - that would require a lot of digging and
> analysing 3rd-party code to that we have no expertise in.
> …
>
> Our users (happened multiple times) DEMAND from us to remove that
> dependency, because it is shown in their scans as critical. And it's not
> the image. The Werkzeug dependency is installed every time Airflow is
> installed - version 2.3.0 that is vulnerable and we cannot do anything
> about it - until Airflow 3.

Nice conundrum! I think we should solve it by clearly specifying the 
limits of our cybersecurity information. All the deps are OSS, so users 
simply need to ask all the projects between Airflow 2 and Werkzeug to 
provide an official statement. Once they do that, Airflow can provide a 
statement based on that information.

This is why I would like to start publishing VEX-es for libraries 
(almost) on the bottom of the dependency stack. Without that information 
commercial application manufacturers will spend millions in security 
analysis. They can as well use some of that money to crowdfund VEX-es in 
OSS projects.

Piotr


---------------------------------------------------------------------
To unsubscribe, e-mail: security-discuss-unsubscribe@community.apache.org
For additional commands, e-mail: security-discuss-help@community.apache.org


Re: Legal implications of publishing VEX files

Posted by Jarek Potiuk <ja...@potiuk.com>.
In short (summarising to those who do not want to read my long mail) as I
see this working for us long term:

* we need to have a way to say VEX are not maintained for old versions
* we will publish SBOMs for "main" development so that our users can
automatically see if problems are fixed in the upcoming release
* for all CVES we will have "in triage" state - we can automate that
* we will only publish "known" state for those dependencies that we
actually analysed and know the state(there will be just few of those)
* we should be able to say "no idea, help us to find out if this is
`affected` state but you will never hear "not affected" from us"

If we can do that, then yes - that's workable at scale, but I am afraid
it's not the expectation of those who want those VEXs :)

J.


On Thu, Feb 6, 2025 at 1:15 PM Jarek Potiuk <ja...@potiuk.com> wrote:

> > I agree that we should only publish VEXes for the currently supported
> version (i.e. usually the most recent one).
>
> Do you know if there is a way to "unpublish" VEX's ? (mark them not
> maintained).
> Because that is what will effectively happen, we will have to start
> publishing new VEX's for the latest version and make sure that all the
> consumers of previous VEX know it's not maintained any more.
>
> Since looking through somebody else's code is error-prone and time
>> consuming, I would restrict the generation of VEX statements to the
>> following two situation:
>>
>> 1. The CVE is in a dependency that is only used by your project, not
>> your project's dependencies. In this case you can directly read the CVE
>> (or VDR document) and identify if you use the affected feature in your
>> code.
>>
>
> As long as they are published in a way that we can discover them
> automatically - which is not the case currently, but hopefully transparency
> exchange API will make it possible, I guess also there will be a long tail
> of projects that do not have VEX's or VDRS or SBOMS for years to come, so
> the question is what we do with those dependencies? But I am afraid we are
> a few years from even a small percentage of our deps to support it. And if
> our users are regulators, ask us - what do we say?  We need to have a good
> answer prepared.
>
>
>> 2. The CVE is in a transitive dependency. In this case you wait until
>> all your **direct** dependencies potentially affected publish a VEX
>> statement. Only then you publish a statement based on what your
>> dependencies say in their VEX records.
>>
>
> Same - we need some discoverability and a way to say "no idea" if an
> automated way of discovering those does not work or the dependency does not
> publish those.
>
>
>>
>> Note the the utility of VEXes varies greatly between ecosystems. In the
>> case of Python applications users download the application and its
>> dependencies directly from PyPI. Unless I am mistaken, if there is a
>> vulnerability in one of your dependencies, you don't need to make a new
>> AirFlow release, users can easily upgrade their system themselves.
>> VEX-es might be only useful to those that create an Airflow Docker image
>> to know if they need to regenerate it. They will probably do it anyway.
>>
>
> It's not that simple -  It very much depends. All variations are possible
> and that's what makes it complex because you need to sometimes perform
> deeper analysis, Sometimes your application or library introduces
> upper-binding that effectively makes it impossible to upgrade. Sometimes
> this is implied by upper-binding or other limitations coming from our
> dependencies or dependencies of our dependencies.
>
> Good example is a Werkzeug dependency (that we did such analysis on):
>
> * Airflow 2 uses Werkzeug - transitively through several of our
> dependencies
> * For quite a while there is a known and serious vulnerability in Werkzeug
> (https://github.com/apache/airflow/discussions/44865 - CVE-2024-49767) in
> version 2.2.3 we have - fixed in version 3.0.0 . We believe it does not
> affect us as we do not seem to use that feature that affects us (uploading
> files) - but we are not sure, because this dependency is used by about 5 or
> 6 other dependencies of ours - not directly by us - and we have not done
> complete analysis of those - that would require a lot of digging and
> analysing 3rd-party code to that we have no expertise in. So our answer is
> "we think we are not affected, but we are not really sure - if you find an
> exploitable path, let us know, please by providing a reproducible report".
> * Up until ~ last year several of our dependencies did not allow us to
> upgrade - they were upper-bound. This has improved over time and many of
> them released versions that have no such limitation
> * But the one remaining - Connexion 2 only updated to the new Werkzeug 3
> in Connexion 3 - and they heavily changed the architecture of Connexion 3 -
> so that we cannot upgrade easily. Actually - we cannot upgrade at all. We
> spend (particularly me) weeks of effort to do that, 2 interns from Major
> League Hacking trying to solve the problems and make upgrade happen - and
> we even had a green PR after 4 months - that no-one in the right mind would
> accept, because it was band-aid-over-band-aid-over-band-aiid. We worked
> together with Connexion maintainers and they helped us, but they would not
> release Connexion 2 with Werkzeug 3 support as they stopped maintaining it
> for good (actually they are new maintainers who took over from old ones,
> and they only exclusively worked on rewriting Connexion 3 to use ASGI
> instead of WSGI and they know and care almost nothing about Connexion 2.
> The old maintainers are gone with the wind (of change).
> * We are dropping Connexion in Airflow 3 - in favour of Fast API- part of
> the reason is the security issue. That requires several months of effort
> from about.3 people working on it pretty much full time.
>
> Our users (happened multiple times) DEMAND from us to remove that
> dependency, because it is shown in their scans as critical. And it's not
> the image. The Werkzeug dependency is installed every time Airflow is
> installed - version 2.3.0 that is vulnerable and we cannot do anything
> about it - until Airflow 3.
>
> So - in short, even being able to answer and triage this issue and see
> what we can tell the users was literally months of effort, POC that failed,
> and the end result is still "won't fix, we are likely not affected". So
> essentially it's none of that: "resolved, resolved_with_pedigree,
> exploitable, in_triage, false_positive, not_affected". It's something of
> "we really don't know, but what we know is that we will not fix it in
> Airflow 2".  If we knew of an exploitable way, we could likely monkey-patch
> it, so if someone reports it to us that would be the remediation, but we
> have no knowledge about any exploit.
>
> This is but one example. And of course it's not an often case - but  you
> can see that we have a chain of dependencies and pretty complex
> interactions between them and deep analysis and literally weeks of effort
> might be needed to just be able to say "anything" about such an issue.
>
> This is ONE example. only. We have 180 direct and 700 indirect
> dependencies. Also there are other variations. Some of our dependencies
> have limits to versions of Python and platforms they are supported on.
> (this is pretty common actually) - which means that in some cases our users
> can upgrade dependency on Python 3.10, but not on Python 3.8. And this
> might be only known after deep analysis of the chain of dependencies,
> because this might come from transitive ways how dependencies are resolved.
>
> What I am trying to say is that expecting us to say "not affected" or any
> other "firm" statement often requires a lot of effort to just find the
> right answer.
>
>
> * If something like CVE-2022-1471[2] happens, the Jackson team will
>> create a "not_affected" VEX record and Log4j Core will pass the same
>> result to Kafka. Note that this will not generate a lot of additional
>> work for the Jackson team, since they provided a human-readable version
>> anyway[3]. It could even generate less work, if users consume the VEX
>> file.
>>
>
>
>> * If something like CVE-2022-38752[4] happens, the Jackson team will
>> create an upgrade recommendation for those that parse untrusted YAML.
>> Log4j Core will generate a "not_affected" VEX record (we only use YAML
>> to parse a config file) and yet again Kafka does not need a new release.
>> Again, Jackson had to deal with a user question about it[5], so a VEX
>> statement will not generate a lot of additional work.
>>
>>
> Yes, If we can automatically discover vex's of all our deps, that use
> transitive dep, and all of them say "not affected", fine. But this will not
> happen in such cases. Even if Connexion 3 says "Affected" and we do not use
> that particular functionality, we are not automatically affected as well -
> because we might use only a subset of the functionality of the transient
> dependency ourselves. In the example above. Connexion 2 would be "affected"
> and following your logic, we would have to also say "affected", even if we
> believe we are not (but have no proof of that -- this is next to impossible
> to have proof of not being affected in this case).
>
> That means that Airflow 2 would have "affected" Critical Werkzeug
> vulnerability - even if we currently believe we are not - and nobody would
> be able to  install Airflow if they want to be "CRA compliant". Airflow 3
> will be out in 3 months. So everyone would have to wait for it. We have
> literally no other actions we can do currently. We could take the risk of
> course and say "not affected". But we really do not know. So what it
> basically means it will be perpetually "in triage" for us. I see no other
> way.
>
> And yes that's one example only, but It's all but guaranteed it will
> continue to happen as more CVEs will be discovered - especially for old
> versions of Airflow. I really hope we can only limit ourselves to publish
> only "last version" VEXes - that would help us immensely to at least
> attempt to realistically assess those.
>
>
>
>> Summarizing: let us restrict VEX-es to the current version of our
>> projects and publish them only when the CVE has been analyzed by all our
>> "suppliers". We should be open to external companies helping us with the
>> analysis through PRs, but let us not do any additional work ourselves.
>> Of course there are exceptions: when Log5Shell happens, we can do the
>> entire analysis ourselves.
>>
>
> Yep. I would love to see the users who have Airflow 2.7 to ask for VEX for
> it only to get 2.10.5 one (being voted now) and getting the answers
> "upgrade to latest version if you want to have current VEX". And I really
> love the idea - because that's what we are telling them now. So If we
> really can use VEX's to stimulate that and have a way to say "Those VEXes
> we published for all past Airflow versions are not maintained any more and
> we don't care any more for that - upgrade".  That's my wet dream as a
> maintainer. But I am afraid we have to work with the regulators and our
> users to make sure that they have the same expectations - but I seriously
> doubt it to be honest. I hope I am wrong :)
>
>
>>
>>

Re: Legal implications of publishing VEX files

Posted by Jarek Potiuk <ja...@potiuk.com>.
> I agree that we should only publish VEXes for the currently supported
version (i.e. usually the most recent one).

Do you know if there is a way to "unpublish" VEX's ? (mark them not
maintained).
Because that is what will effectively happen, we will have to start
publishing new VEX's for the latest version and make sure that all the
consumers of previous VEX know it's not maintained any more.

Since looking through somebody else's code is error-prone and time
> consuming, I would restrict the generation of VEX statements to the
> following two situation:
>
> 1. The CVE is in a dependency that is only used by your project, not
> your project's dependencies. In this case you can directly read the CVE
> (or VDR document) and identify if you use the affected feature in your
> code.
>

As long as they are published in a way that we can discover them
automatically - which is not the case currently, but hopefully transparency
exchange API will make it possible, I guess also there will be a long tail
of projects that do not have VEX's or VDRS or SBOMS for years to come, so
the question is what we do with those dependencies? But I am afraid we are
a few years from even a small percentage of our deps to support it. And if
our users are regulators, ask us - what do we say?  We need to have a good
answer prepared.


> 2. The CVE is in a transitive dependency. In this case you wait until
> all your **direct** dependencies potentially affected publish a VEX
> statement. Only then you publish a statement based on what your
> dependencies say in their VEX records.
>

Same - we need some discoverability and a way to say "no idea" if an
automated way of discovering those does not work or the dependency does not
publish those.


>
> Note the the utility of VEXes varies greatly between ecosystems. In the
> case of Python applications users download the application and its
> dependencies directly from PyPI. Unless I am mistaken, if there is a
> vulnerability in one of your dependencies, you don't need to make a new
> AirFlow release, users can easily upgrade their system themselves.
> VEX-es might be only useful to those that create an Airflow Docker image
> to know if they need to regenerate it. They will probably do it anyway.
>

It's not that simple -  It very much depends. All variations are possible
and that's what makes it complex because you need to sometimes perform
deeper analysis, Sometimes your application or library introduces
upper-binding that effectively makes it impossible to upgrade. Sometimes
this is implied by upper-binding or other limitations coming from our
dependencies or dependencies of our dependencies.

Good example is a Werkzeug dependency (that we did such analysis on):

* Airflow 2 uses Werkzeug - transitively through several of our dependencies
* For quite a while there is a known and serious vulnerability in Werkzeug (
https://github.com/apache/airflow/discussions/44865 - CVE-2024-49767) in
version 2.2.3 we have - fixed in version 3.0.0 . We believe it does not
affect us as we do not seem to use that feature that affects us (uploading
files) - but we are not sure, because this dependency is used by about 5 or
6 other dependencies of ours - not directly by us - and we have not done
complete analysis of those - that would require a lot of digging and
analysing 3rd-party code to that we have no expertise in. So our answer is
"we think we are not affected, but we are not really sure - if you find an
exploitable path, let us know, please by providing a reproducible report".
* Up until ~ last year several of our dependencies did not allow us to
upgrade - they were upper-bound. This has improved over time and many of
them released versions that have no such limitation
* But the one remaining - Connexion 2 only updated to the new Werkzeug 3 in
Connexion 3 - and they heavily changed the architecture of Connexion 3 - so
that we cannot upgrade easily. Actually - we cannot upgrade at all. We
spend (particularly me) weeks of effort to do that, 2 interns from Major
League Hacking trying to solve the problems and make upgrade happen - and
we even had a green PR after 4 months - that no-one in the right mind would
accept, because it was band-aid-over-band-aid-over-band-aiid. We worked
together with Connexion maintainers and they helped us, but they would not
release Connexion 2 with Werkzeug 3 support as they stopped maintaining it
for good (actually they are new maintainers who took over from old ones,
and they only exclusively worked on rewriting Connexion 3 to use ASGI
instead of WSGI and they know and care almost nothing about Connexion 2.
The old maintainers are gone with the wind (of change).
* We are dropping Connexion in Airflow 3 - in favour of Fast API- part of
the reason is the security issue. That requires several months of effort
from about.3 people working on it pretty much full time.

Our users (happened multiple times) DEMAND from us to remove that
dependency, because it is shown in their scans as critical. And it's not
the image. The Werkzeug dependency is installed every time Airflow is
installed - version 2.3.0 that is vulnerable and we cannot do anything
about it - until Airflow 3.

So - in short, even being able to answer and triage this issue and see what
we can tell the users was literally months of effort, POC that failed, and
the end result is still "won't fix, we are likely not affected". So
essentially it's none of that: "resolved, resolved_with_pedigree,
exploitable, in_triage, false_positive, not_affected". It's something of
"we really don't know, but what we know is that we will not fix it in
Airflow 2".  If we knew of an exploitable way, we could likely monkey-patch
it, so if someone reports it to us that would be the remediation, but we
have no knowledge about any exploit.

This is but one example. And of course it's not an often case - but  you
can see that we have a chain of dependencies and pretty complex
interactions between them and deep analysis and literally weeks of effort
might be needed to just be able to say "anything" about such an issue.

This is ONE example. only. We have 180 direct and 700 indirect
dependencies. Also there are other variations. Some of our dependencies
have limits to versions of Python and platforms they are supported on.
(this is pretty common actually) - which means that in some cases our users
can upgrade dependency on Python 3.10, but not on Python 3.8. And this
might be only known after deep analysis of the chain of dependencies,
because this might come from transitive ways how dependencies are resolved.

What I am trying to say is that expecting us to say "not affected" or any
other "firm" statement often requires a lot of effort to just find the
right answer.


* If something like CVE-2022-1471[2] happens, the Jackson team will
> create a "not_affected" VEX record and Log4j Core will pass the same
> result to Kafka. Note that this will not generate a lot of additional
> work for the Jackson team, since they provided a human-readable version
> anyway[3]. It could even generate less work, if users consume the VEX file.
>


> * If something like CVE-2022-38752[4] happens, the Jackson team will
> create an upgrade recommendation for those that parse untrusted YAML.
> Log4j Core will generate a "not_affected" VEX record (we only use YAML
> to parse a config file) and yet again Kafka does not need a new release.
> Again, Jackson had to deal with a user question about it[5], so a VEX
> statement will not generate a lot of additional work.
>
>
Yes, If we can automatically discover vex's of all our deps, that use
transitive dep, and all of them say "not affected", fine. But this will not
happen in such cases. Even if Connexion 3 says "Affected" and we do not use
that particular functionality, we are not automatically affected as well -
because we might use only a subset of the functionality of the transient
dependency ourselves. In the example above. Connexion 2 would be "affected"
and following your logic, we would have to also say "affected", even if we
believe we are not (but have no proof of that -- this is next to impossible
to have proof of not being affected in this case).

That means that Airflow 2 would have "affected" Critical Werkzeug
vulnerability - even if we currently believe we are not - and nobody would
be able to  install Airflow if they want to be "CRA compliant". Airflow 3
will be out in 3 months. So everyone would have to wait for it. We have
literally no other actions we can do currently. We could take the risk of
course and say "not affected". But we really do not know. So what it
basically means it will be perpetually "in triage" for us. I see no other
way.

And yes that's one example only, but It's all but guaranteed it will
continue to happen as more CVEs will be discovered - especially for old
versions of Airflow. I really hope we can only limit ourselves to publish
only "last version" VEXes - that would help us immensely to at least
attempt to realistically assess those.



> Summarizing: let us restrict VEX-es to the current version of our
> projects and publish them only when the CVE has been analyzed by all our
> "suppliers". We should be open to external companies helping us with the
> analysis through PRs, but let us not do any additional work ourselves.
> Of course there are exceptions: when Log5Shell happens, we can do the
> entire analysis ourselves.
>

Yep. I would love to see the users who have Airflow 2.7 to ask for VEX for
it only to get 2.10.5 one (being voted now) and getting the answers
"upgrade to latest version if you want to have current VEX". And I really
love the idea - because that's what we are telling them now. So If we
really can use VEX's to stimulate that and have a way to say "Those VEXes
we published for all past Airflow versions are not maintained any more and
we don't care any more for that - upgrade".  That's my wet dream as a
maintainer. But I am afraid we have to work with the regulators and our
users to make sure that they have the same expectations - but I seriously
doubt it to be honest. I hope I am wrong :)


>
>

Re: Legal implications of publishing VEX files

Posted by "Piotr P. Karwasz" <pi...@mailing.copernik.eu>.
Hi Jarek,

On 6.02.2025 10:52, Jarek Potiuk wrote:
> I can think of one way we could make it manageable  - we only publish VEX's
> for the last released version in the "maintained" line of a package - that
> could give better chances that what is there is "right" - and reject any
> requests and questions about past versions - essentially "freeze" VEXs for
> previous versions when we release a new one. That **might** have a chance
> to work, because in the vast majority of cases the CVES found in 3rd-party
> libraries will be for old versions of those that we won't use already in
> the last version. That would dramatically drop the exposure for users
> asking for state (providing that we automate that and filter out
> automatically and reject the questions about past versions - it's pretty
> doable). We could even - in this case make a dependabot-style automated and
> proactive work, whenever a vulnerabilty is detected in a library, we could
> see if it is already updated in the "in-progress" version and act
> accordingly and automatically publish state in the last VEX "in_triage" for
> example, and maybe have a way to manually review and update those (but only
> for last released version in the maintained line). We could allow
> indefinite "in triage" in this case if we are not sure, and maybe sometimes
> - very rarely we could put "not affected". but that would be a unicorn
> IMHO.
>
> But then - except the few exceptions - there is no real value from having
> such VEXs if you ask me. That will become a cargo cult very quickly.

I agree that we should only publish VEXes for the currently supported 
version (i.e. usually the most recent one).

Since looking through somebody else's code is error-prone and time 
consuming, I would restrict the generation of VEX statements to the 
following two situation:

1. The CVE is in a dependency that is only used by your project, not 
your project's dependencies. In this case you can directly read the CVE 
(or VDR document) and identify if you use the affected feature in your code.

2. The CVE is in a transitive dependency. In this case you wait until 
all your **direct** dependencies potentially affected publish a VEX 
statement. Only then you publish a statement based on what your 
dependencies say in their VEX records.

Note the the utility of VEXes varies greatly between ecosystems. In the 
case of Python applications users download the application and its 
dependencies directly from PyPI. Unless I am mistaken, if there is a 
vulnerability in one of your dependencies, you don't need to make a new 
AirFlow release, users can easily upgrade their system themselves. 
VEX-es might be only useful to those that create an Airflow Docker image 
to know if they need to regenerate it. They will probably do it anyway.

In the case of Java applications, all dependencies are bundled in some 
downloadable archive (WAR, Zip, tar.gz). To upgrade those dependencies 
the project needs to make a new release. VEX-es can help deciding if 
they need to do it right now or they can wait with the upgrade until the 
next scheduled release.

My preferred example is applications like Kafka that recently switched 
to Log4j 2 Core and use YAML as configuration format. We parse YAML 
through Jackson, which uses SnakeYaml as low level parser. What happens 
if SnakeYaml has a CVE[1]?

* If something like CVE-2022-1471[2] happens, the Jackson team will 
create a "not_affected" VEX record and Log4j Core will pass the same 
result to Kafka. Note that this will not generate a lot of additional 
work for the Jackson team, since they provided a human-readable version 
anyway[3]. It could even generate less work, if users consume the VEX file.

* If something like CVE-2022-38752[4] happens, the Jackson team will 
create an upgrade recommendation for those that parse untrusted YAML. 
Log4j Core will generate a "not_affected" VEX record (we only use YAML 
to parse a config file) and yet again Kafka does not need a new release. 
Again, Jackson had to deal with a user question about it[5], so a VEX 
statement will not generate a lot of additional work.

Summarizing: let us restrict VEX-es to the current version of our 
projects and publish them only when the CVE has been analyzed by all our 
"suppliers". We should be open to external companies helping us with the 
analysis through PRs, but let us not do any additional work ourselves. 
Of course there are exceptions: when Log5Shell happens, we can do the 
entire analysis ourselves.

Piotr


[1] 
https://nvd.nist.gov/vuln/search/results?form_type=Advanced&results_type=overview&search_type=all&isCpeNameSearch=false&cpe_vendor=cpe%3A%2F%3Asnakeyaml_project&cpe_product=cpe%3A%2F%3Asnakeyaml_project%3Asnakeyaml

[2] https://nvd.nist.gov/vuln/detail/CVE-2022-1471

[3] https://github.com/FasterXML/jackson/discussions/141

[4] https://nvd.nist.gov/vuln/detail/CVE-2022-38752

[5] https://github.com/FasterXML/jackson-dataformats-text/issues/342


---------------------------------------------------------------------
To unsubscribe, e-mail: security-discuss-unsubscribe@community.apache.org
For additional commands, e-mail: security-discuss-help@community.apache.org


Re: Legal implications of publishing VEX files

Posted by "Piotr P. Karwasz" <pi...@mailing.copernik.eu>.
Hi Arnout,

On 6.02.2025 11:39, Arnout Engelen wrote:
> On Thu, Feb 6, 2025 at 10:53 AM Jarek Potiuk <ja...@potiuk.com> wrote:
>
>
>> We could even - in this case make a dependabot-style automated and
>> proactive work, whenever a vulnerabilty is detected in a library, we could
>> see if it is already updated in the "in-progress" version and act
>> accordingly and automatically publish state in the last VEX "in_triage" for
>> example, and maybe have a way to manually review and update those (but only
>> for last released version in the maintained line).
>
> I'm not sure that would be useful - users are going to be asking us about
> those versions anyway, whether we set those or not. I could see us
> publishing SBOMs for the main branch, so we can easily answer the question
> of "will this be updated in the next version?", though.

Nice idea!

For eco-systems with snapshots that is probably already the case: you 
can publish your SBOM with the snapshot.

For projects that publish a binary distribution only to 
`downloads.apache.org`, we would need a way to regularly upload and 
update the SBOM of the next release. Maybe this is something we could 
add to the ATR requirements after the first few versions have been shipped.

Piotr


---------------------------------------------------------------------
To unsubscribe, e-mail: security-discuss-unsubscribe@community.apache.org
For additional commands, e-mail: security-discuss-help@community.apache.org


Re: Legal implications of publishing VEX files

Posted by Arnout Engelen <en...@apache.org>.
On Thu, Feb 6, 2025 at 10:53 AM Jarek Potiuk <ja...@potiuk.com> wrote:

> Yes. That's exactly the problem Piotr. We have no "we don't know and we
> will likely never tell you". Unless we use "in_triage" for that.


I think we can just leave those advisories out of the VEX entirely.


> but except some specific cases, I don't see how our VEX's could have
> anything else
> than "in_triage" for vast majority of CVEs
>

I also expect the vast majority to remain unspecified.


> QUESTION: I wonder what are you all thinking about what should the VEXes be
> published about? Should we publish it for all versions released?



> When Airflow (for example) has 700+ dependencies and we have about, 50 of
> `2.*` airflow packages released  + about 90 providers (each with 20
> versions of so) - this is about 2000 vex files to keep updated every time
> one of those versions of one of those libraries we publish gets updated
> with a new CVE - if we were to publish them for all versions our users can
> have in the maintained line.
>


> So the only way we can do it is to automate generation of those VEXs,
> putting "in-triage" everywhere - realistically.  But there is absolutely no
> way any of those entries will be "not affected" in scale. Maybe there are
> few cases where I could have certainty and "know" it's not affected - but
> anything else requires a lot of time to even get close to a conclusion
> (multiplied by 100s or 1000s of vulnerabilities and potentially multiplied
> by all the versions we released). I am almost sure we cannot set
> "exploitable" as well with any reasonable certainty. because that requires
> manual checking if the problem is exploitable in particular versions. We
> could of course put "exploitable" in all cases, but that would miss the
> point of having this state informative.
>

I think we should update the VEX only if we have new exploitability
information.


> Of course - we could also put only information about those issues someone
> ask us for, but in no-time this will be automated by commercial users and
> we will get asked about every single CVE published for any of our
> dependencies - this will happen a day after those commercial users will be
> asked to use those VEX's in their analysis. We will get flooded by
> questions 'what is the state of this or that dependency". In no time at all
> we will have to put the state for All CVEs in all our dependencies when we
> publish VEX.
>

Yes, users will continue to try and ask us about advisories in
dependencies, and we should continue to tell them to do their own research
(and maybe contribute to the VEX, though I don't expect that to be common
;) ) - https://security.apache.org/report-dependency/.


> If we don't automate it, we have no chance to deal with that - simply
> because our current work on analysing those will get multiplied by 10 or 20
> or 700 times, depending on how many dependencies we have. Even if we limit
> ourselves to direct dependencies and rely on their VEX's. I am afraid that
> will end up with everyone putting stuff to "in_triage' and calling it a day
> eventually - I don't see how other open-source projects could do it
> differently.
>
> Of course we can start thinking how to make it more "reasonable" - i.e.
> built in the fact that we have volunteers and limited time.
>
> I can think of one way we could make it manageable  - we only publish VEX's
> for the last released version in the "maintained" line of a package - that
> could give better chances that what is there is "right" - and reject any
> requests and questions about past versions - essentially "freeze" VEXs for
> previous versions when we release a new one.


That seems fine to me.


> That **might** have a chance
> to work, because in the vast majority of cases the CVES found in 3rd-party
> libraries will be for old versions of those that we won't use already in
> the last version. That would dramatically drop the exposure for users
> asking for state (providing that we automate that and filter out
> automatically and reject the questions about past versions - it's pretty
> doable).


I don't think we need anything too fancy for that, but sure.


> We could even - in this case make a dependabot-style automated and
> proactive work, whenever a vulnerabilty is detected in a library, we could
> see if it is already updated in the "in-progress" version and act
> accordingly and automatically publish state in the last VEX "in_triage" for
> example, and maybe have a way to manually review and update those (but only
> for last released version in the maintained line).


I'm not sure that would be useful - users are going to be asking us about
those versions anyway, whether we set those or not. I could see us
publishing SBOMs for the main branch, so we can easily answer the question
of "will this be updated in the next version?", though.


> We could allow
> indefinite "in triage" in this case if we are not sure, and maybe sometimes
> - very rarely we could put "not affected". but that would be a unicorn
> IMHO.
>


> But then - except the few exceptions - there is no real value from having
> such VEXs if you ask me. That will become a cargo cult very quickly.
>

I agree we should keep them minimal.


Kind regards,

Arnout

On Thu, Feb 6, 2025 at 10:02 AM Piotr P. Karwasz <pi...@mailing.copernik.eu>
> wrote:
>
> > Hi Jarek,
> >
> > On 6.02.2025 09:22, Jarek Potiuk wrote:
> > >> I don't see how VEX introduces a new risk here.
> > > It really depends on whether the VEX entry states: "Not affected" or
> > > "Possibly not affected". As you see in my responses - those are exactly
> > > what I am explaining in my responses is exactly what you explained. In
> > one
> > > of those issues I responded to the user that "we do not use that
> affected
> > > functionally, so likely we are not affected". But yet the user
> demanded,
> > > and expected and was very persistent about it, to have 100% certainty
> and
> > > an authoritative answer.
> > >
> > > I am absolutely fine in putting in VEX:
> > >
> > > * don't know, did not check (when we did not want to spend days
> > > investigating it and it's difficult)
> > > * possibly not affected (when we think we are not affected)
> > > * affected, please upgrade (when we know)
> >
> > I think I understand, where the problem lies. Looking only a
> > CycloneDX[1] there are two important fields to describe a VEX entry:
> >
> > * A `state` field with values in: resolved, resolved_with_pedigree,
> > exploitable, in_triage, false_positive, not_affected. There is no
> > "possibly not affected" state.
> >
> > * A `detail` field, where we describe the problem to humans, including
> > how we did come to a certain conclusion:
> >
> > ```
> >
> > Detailed description of the impact including methods used during
> > assessment. If a vulnerability is not exploitable, this field should
> > include specific details on why the component or service is not impacted
> > by this vulnerability.
> >
> > ```
> >
> > I believe that as long as we fill in this carefully, the risk for the
> > Foundation is minimal. The whole point of publishing a VEX statement
> > (currently optional) is NOT to use an `exploitable` state and write "We
> > did not perform any exploitability analysis, but unit/integration tests
> > show that the patched version of `libfoo` is compatible with our
> > library. Please upgrade the vulnerable component."
> >
> > Piotr
> >
> > [1] https://cyclonedx.org/docs/1.6/json/#vulnerabilities_items_analysis
> >
> >
>


-- 
Arnout Engelen
ASF Security Response
Apache Pekko PMC member, ASF Member
NixOS Committer
Independent Open Source consultant

Re: Legal implications of publishing VEX files

Posted by Jarek Potiuk <ja...@potiuk.com>.
Yes. That's exactly the problem Piotr. We have no "we don't know and we
will likely never tell you". Unless we use "in_triage" for that. I don't
think there is any expectation on how long "in triage" will be, but except
some specific cases, I don't see how our VEX's could have anything else
than "in_triage" for vast majority of CVEs

I can set "in_triage" - even automatically for all CVEs in all 700
dependencies - that could be easily automated for volunteer driven projects
with many dependencies. If that would be our approach - fine (exploitable
etc we can also set it in case we have log4j). we can set "false_positive"
(also automatically) for all the dependencies that are "accidentally" in
our SBOM (though I'd rather fix SBOM in this case).

And yes, we can even play around that automation to make it manageable and
maybe even "sometimes" set a different stage there. But there are some
caveats/

QUESTION: I wonder what are you all thinking about what should the VEXes be
published about? Should we publish it for all versions released?

When Airflow (for example) has 700+ dependencies and we have about, 50 of
`2.*` airflow packages released  + about 90 providers (each with 20
versions of so) - this is about 2000 vex files to keep updated every time
one of those versions of one of those libraries we publish gets updated
with a new CVE - if we were to publish them for all versions our users can
have in the maintained line.

So the only way we can do it is to automate generation of those VEXs,
putting "in-triage" everywhere - realistically.  But there is absolutely no
way any of those entries will be "not affected" in scale. Maybe there are
few cases where I could have certainty and "know" it's not affected - but
anything else requires a lot of time to even get close to a conclusion
(multiplied by 100s or 1000s of vulnerabilities and potentially multiplied
by all the versions we released). I am almost sure we cannot set
"exploitable" as well with any reasonable certainty. because that requires
manual checking if the problem is exploitable in particular versions. We
could of course put "exploitable" in all cases, but that would miss the
point of having this state informative.

Of course - we could also put only information about those issues someone
ask us for, but in no-time this will be automated by commercial users and
we will get asked about every single CVE published for any of our
dependencies - this will happen a day after those commercial users will be
asked to use those VEX's in their analysis. We will get flooded by
questions 'what is the state of this or that dependency". In no time at all
we will have to put the state for All CVEs in all our dependencies when we
publish VEX.

If we don't automate it, we have no chance to deal with that - simply
because our current work on analysing those will get multiplied by 10 or 20
or 700 times, depending on how many dependencies we have. Even if we limit
ourselves to direct dependencies and rely on their VEX's. I am afraid that
will end up with everyone putting stuff to "in_triage' and calling it a day
eventually - I don't see how other open-source projects could do it
differently.

Of course we can start thinking how to make it more "reasonable" - i.e.
built in the fact that we have volunteers and limited time.

I can think of one way we could make it manageable  - we only publish VEX's
for the last released version in the "maintained" line of a package - that
could give better chances that what is there is "right" - and reject any
requests and questions about past versions - essentially "freeze" VEXs for
previous versions when we release a new one. That **might** have a chance
to work, because in the vast majority of cases the CVES found in 3rd-party
libraries will be for old versions of those that we won't use already in
the last version. That would dramatically drop the exposure for users
asking for state (providing that we automate that and filter out
automatically and reject the questions about past versions - it's pretty
doable). We could even - in this case make a dependabot-style automated and
proactive work, whenever a vulnerabilty is detected in a library, we could
see if it is already updated in the "in-progress" version and act
accordingly and automatically publish state in the last VEX "in_triage" for
example, and maybe have a way to manually review and update those (but only
for last released version in the maintained line). We could allow
indefinite "in triage" in this case if we are not sure, and maybe sometimes
- very rarely we could put "not affected". but that would be a unicorn
IMHO.

But then - except the few exceptions - there is no real value from having
such VEXs if you ask me. That will become a cargo cult very quickly.

J.

On Thu, Feb 6, 2025 at 10:02 AM Piotr P. Karwasz <pi...@mailing.copernik.eu>
wrote:

> Hi Jarek,
>
> On 6.02.2025 09:22, Jarek Potiuk wrote:
> >> I don't see how VEX introduces a new risk here.
> > It really depends on whether the VEX entry states: "Not affected" or
> > "Possibly not affected". As you see in my responses - those are exactly
> > what I am explaining in my responses is exactly what you explained. In
> one
> > of those issues I responded to the user that "we do not use that affected
> > functionally, so likely we are not affected". But yet the user demanded,
> > and expected and was very persistent about it, to have 100% certainty and
> > an authoritative answer.
> >
> > I am absolutely fine in putting in VEX:
> >
> > * don't know, did not check (when we did not want to spend days
> > investigating it and it's difficult)
> > * possibly not affected (when we think we are not affected)
> > * affected, please upgrade (when we know)
>
> I think I understand, where the problem lies. Looking only a
> CycloneDX[1] there are two important fields to describe a VEX entry:
>
> * A `state` field with values in: resolved, resolved_with_pedigree,
> exploitable, in_triage, false_positive, not_affected. There is no
> "possibly not affected" state.
>
> * A `detail` field, where we describe the problem to humans, including
> how we did come to a certain conclusion:
>
> ```
>
> Detailed description of the impact including methods used during
> assessment. If a vulnerability is not exploitable, this field should
> include specific details on why the component or service is not impacted
> by this vulnerability.
>
> ```
>
> I believe that as long as we fill in this carefully, the risk for the
> Foundation is minimal. The whole point of publishing a VEX statement
> (currently optional) is NOT to use an `exploitable` state and write "We
> did not perform any exploitability analysis, but unit/integration tests
> show that the patched version of `libfoo` is compatible with our
> library. Please upgrade the vulnerable component."
>
> Piotr
>
> [1] https://cyclonedx.org/docs/1.6/json/#vulnerabilities_items_analysis
>
>

Re: Legal implications of publishing VEX files

Posted by "Piotr P. Karwasz" <pi...@mailing.copernik.eu>.
Hi Jarek,

On 6.02.2025 09:22, Jarek Potiuk wrote:
>> I don't see how VEX introduces a new risk here.
> It really depends on whether the VEX entry states: "Not affected" or
> "Possibly not affected". As you see in my responses - those are exactly
> what I am explaining in my responses is exactly what you explained. In one
> of those issues I responded to the user that "we do not use that affected
> functionally, so likely we are not affected". But yet the user demanded,
> and expected and was very persistent about it, to have 100% certainty and
> an authoritative answer.
>
> I am absolutely fine in putting in VEX:
>
> * don't know, did not check (when we did not want to spend days
> investigating it and it's difficult)
> * possibly not affected (when we think we are not affected)
> * affected, please upgrade (when we know)

I think I understand, where the problem lies. Looking only a 
CycloneDX[1] there are two important fields to describe a VEX entry:

* A `state` field with values in: resolved, resolved_with_pedigree, 
exploitable, in_triage, false_positive, not_affected. There is no 
"possibly not affected" state.

* A `detail` field, where we describe the problem to humans, including 
how we did come to a certain conclusion:

```

Detailed description of the impact including methods used during 
assessment. If a vulnerability is not exploitable, this field should 
include specific details on why the component or service is not impacted 
by this vulnerability.

```

I believe that as long as we fill in this carefully, the risk for the 
Foundation is minimal. The whole point of publishing a VEX statement 
(currently optional) is NOT to use an `exploitable` state and write "We 
did not perform any exploitability analysis, but unit/integration tests 
show that the patched version of `libfoo` is compatible with our 
library. Please upgrade the vulnerable component."

Piotr

[1] https://cyclonedx.org/docs/1.6/json/#vulnerabilities_items_analysis


Re: Legal implications of publishing VEX files

Posted by Jarek Potiuk <ja...@potiuk.com>.
> I don't see how VEX introduces a new risk here.

It really depends on whether the VEX entry states: "Not affected" or
"Possibly not affected". As you see in my responses - those are exactly
what I am explaining in my responses is exactly what you explained. In one
of those issues I responded to the user that "we do not use that affected
functionally, so likely we are not affected". But yet the user demanded,
and expected and was very persistent about it, to have 100% certainty and
an authoritative answer.

I am absolutely fine in putting in VEX:

* don't know, did not check (when we did not want to spend days
investigating it and it's difficult)
* possibly not affected (when we think we are not affected)
* affected, please upgrade (when we know)

All those are fine, and if in the VEX we will be able to do it and be very
clear that this is the meaning, I am perfectly fine with it.

But I would - under any circumstances - never put "Certainly not affected"
there. And this is what all commercial users will be expecting. None of the
above answers (except affected) is satisfying to the consumer of VEX if you
ask me and it's pretty useless.


J.


On Thu, Feb 6, 2025 at 9:10 AM Mark Thomas <ma...@apache.org> wrote:

> On 05/02/2025 14:53, Jarek Potiuk wrote:
> >> If this is true, then I don't see how anyone, ever, would issue a
> > "not affected" statement as mentioned by Arnout.
> >
> > Yep. I don't see it either. I would not do it for sure if I knew what
> legal
> > implications it brings.
> >
> > This is why my response to those questions are like this:
> >
> https://github.com/apache/airflow/discussions/44865#discussioncomment-11656354
> > and this https://github.com/apache/airflow/discussions/40590 and I would
> > never, ever respond differently.
> >
> > It makes some of our users angry, but I don't see how I can answer
> > differently currently without putting ASF and myself at risk. Not until
> we
> > have clarity on how to do it at least.
>
> I think risk of the scenario outlined a couple of messages earlier in
> this thread (and shown below) happening is very low.
>
> The statement that Apache ABC is "not affected" by a CVE is no different
> to the statement that the CVE "is mitigated" in Apache ABC by doing X.
>
> We (and everybody else writing software) have been doing the latter for
> years. Sometimes we get it wrong, and the result is simply a new CVE
> with the updated (hopefully complete) mitigation.
>
> I don't see how VEX introduces a new risk here.
>
> Statements around CVEs have always had the implied caveats of "To the
> best of our knowledge...", "As as as we are aware..." etc and I don't
> see why VEX statements should be any different.
>
> I certainly doesn't hurt to be more explicit about stating these caveats
> and I think there are benefits to being explicit. But I don't think
> there is a big new risk here.
>
> Mark
>
>
> > J.
> >
> >
> > On Wed, Feb 5, 2025 at 3:44 PM Gilles Sadowski <gi...@gmail.com>
> wrote:
> >
> >> Hi.
> >>
> >> Le mer. 5 févr. 2025 à 13:51, Jarek Potiuk <ja...@potiuk.com> a écrit :
> >>>
> >>> And let me repeat what I wrote on slack today:
> >>>
> >>> For ASF the legal risk is huge. If someone gets billions of dollars in
> >>> damage because they trusted we told them "we are not vulnerable to this
> >>> 3rd-party vulnerability" - they might sue ASF and demand all our
> >> trademarks
> >>> as compensation (not the money we have in the bank). This is is a HUGE
> >> risk
> >>> for ASF and the whole open-source community if you ask me.
> >>
> >> If this is true, then I don't see how anyone, ever, would issue a
> >> "not affected" statement as mentioned by Arnout.
> >>
> >> Regards,
> >> Gilles
> >>
> >>>> [...]
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail:
> security-discuss-unsubscribe@community.apache.org
> >> For additional commands, e-mail:
> >> security-discuss-help@community.apache.org
> >>
> >>
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: security-discuss-unsubscribe@community.apache.org
> For additional commands, e-mail:
> security-discuss-help@community.apache.org
>
>

Re: Legal implications of publishing VEX files

Posted by Mark Thomas <ma...@apache.org>.
On 05/02/2025 14:53, Jarek Potiuk wrote:
>> If this is true, then I don't see how anyone, ever, would issue a
> "not affected" statement as mentioned by Arnout.
> 
> Yep. I don't see it either. I would not do it for sure if I knew what legal
> implications it brings.
> 
> This is why my response to those questions are like this:
> https://github.com/apache/airflow/discussions/44865#discussioncomment-11656354
> and this https://github.com/apache/airflow/discussions/40590 and I would
> never, ever respond differently.
> 
> It makes some of our users angry, but I don't see how I can answer
> differently currently without putting ASF and myself at risk. Not until we
> have clarity on how to do it at least.

I think risk of the scenario outlined a couple of messages earlier in 
this thread (and shown below) happening is very low.

The statement that Apache ABC is "not affected" by a CVE is no different 
to the statement that the CVE "is mitigated" in Apache ABC by doing X.

We (and everybody else writing software) have been doing the latter for 
years. Sometimes we get it wrong, and the result is simply a new CVE 
with the updated (hopefully complete) mitigation.

I don't see how VEX introduces a new risk here.

Statements around CVEs have always had the implied caveats of "To the 
best of our knowledge...", "As as as we are aware..." etc and I don't 
see why VEX statements should be any different.

I certainly doesn't hurt to be more explicit about stating these caveats 
and I think there are benefits to being explicit. But I don't think 
there is a big new risk here.

Mark


> J.
> 
> 
> On Wed, Feb 5, 2025 at 3:44 PM Gilles Sadowski <gi...@gmail.com> wrote:
> 
>> Hi.
>>
>> Le mer. 5 févr. 2025 à 13:51, Jarek Potiuk <ja...@potiuk.com> a écrit :
>>>
>>> And let me repeat what I wrote on slack today:
>>>
>>> For ASF the legal risk is huge. If someone gets billions of dollars in
>>> damage because they trusted we told them "we are not vulnerable to this
>>> 3rd-party vulnerability" - they might sue ASF and demand all our
>> trademarks
>>> as compensation (not the money we have in the bank). This is is a HUGE
>> risk
>>> for ASF and the whole open-source community if you ask me.
>>
>> If this is true, then I don't see how anyone, ever, would issue a
>> "not affected" statement as mentioned by Arnout.
>>
>> Regards,
>> Gilles
>>
>>>> [...]
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: security-discuss-unsubscribe@community.apache.org
>> For additional commands, e-mail:
>> security-discuss-help@community.apache.org
>>
>>
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: security-discuss-unsubscribe@community.apache.org
For additional commands, e-mail: security-discuss-help@community.apache.org


Re: Legal implications of publishing VEX files

Posted by Jarek Potiuk <ja...@potiuk.com>.
> If this is true, then I don't see how anyone, ever, would issue a
"not affected" statement as mentioned by Arnout.

Yep. I don't see it either. I would not do it for sure if I knew what legal
implications it brings.

This is why my response to those questions are like this:
https://github.com/apache/airflow/discussions/44865#discussioncomment-11656354
and this https://github.com/apache/airflow/discussions/40590 and I would
never, ever respond differently.

It makes some of our users angry, but I don't see how I can answer
differently currently without putting ASF and myself at risk. Not until we
have clarity on how to do it at least.

J.


On Wed, Feb 5, 2025 at 3:44 PM Gilles Sadowski <gi...@gmail.com> wrote:

> Hi.
>
> Le mer. 5 févr. 2025 à 13:51, Jarek Potiuk <ja...@potiuk.com> a écrit :
> >
> > And let me repeat what I wrote on slack today:
> >
> > For ASF the legal risk is huge. If someone gets billions of dollars in
> > damage because they trusted we told them "we are not vulnerable to this
> > 3rd-party vulnerability" - they might sue ASF and demand all our
> trademarks
> > as compensation (not the money we have in the bank). This is is a HUGE
> risk
> > for ASF and the whole open-source community if you ask me.
>
> If this is true, then I don't see how anyone, ever, would issue a
> "not affected" statement as mentioned by Arnout.
>
> Regards,
> Gilles
>
> > > [...]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: security-discuss-unsubscribe@community.apache.org
> For additional commands, e-mail:
> security-discuss-help@community.apache.org
>
>

Re: Legal implications of publishing VEX files

Posted by Gilles Sadowski <gi...@gmail.com>.
Hi.

Le mer. 5 févr. 2025 à 13:51, Jarek Potiuk <ja...@potiuk.com> a écrit :
>
> And let me repeat what I wrote on slack today:
>
> For ASF the legal risk is huge. If someone gets billions of dollars in
> damage because they trusted we told them "we are not vulnerable to this
> 3rd-party vulnerability" - they might sue ASF and demand all our trademarks
> as compensation (not the money we have in the bank). This is is a HUGE risk
> for ASF and the whole open-source community if you ask me.

If this is true, then I don't see how anyone, ever, would issue a
"not affected" statement as mentioned by Arnout.

Regards,
Gilles

> > [...]

---------------------------------------------------------------------
To unsubscribe, e-mail: security-discuss-unsubscribe@community.apache.org
For additional commands, e-mail: security-discuss-help@community.apache.org


Re: Legal implications of publishing VEX files

Posted by Jarek Potiuk <ja...@potiuk.com>.
And let me repeat what I wrote on slack today:

For ASF the legal risk is huge. If someone gets billions of dollars in
damage because they trusted we told them "we are not vulnerable to this
3rd-party vulnerability" - they might sue ASF and demand all our trademarks
as compensation (not the money we have in the bank). This is is a HUGE risk
for ASF and the whole open-source community if you ask me.

On Wed, Feb 5, 2025 at 1:45 PM Dirk-Willem van Gulik <di...@webweaving.org>
wrote:

> On 5 Feb 2025, at 13:22, Piotr P. Karwasz <pi...@mailing.copernik.eu>
> wrote:
> > On 5.02.2025 13:09, Gary Gregory wrote:
> >> Why is this not done as an Apache project?
> >
> > It is an experiment. For now we will profit from the simplified release
> procedure and low support expectations for this kind of projects. Rest
> assured that if this becomes popular enough, we'll submit it to Apache or
> OWASP CycloneDX.
> >
> > SBOMs is such a moving target that half of the projects that exist today
> will reach EOL in one year.
>
> One thing that may help discriminate/affect staying power is to what
> extend the SBOM is a win-win, rather than `make work'. Which means that
> slightly richer SBOMs, which allow you to express things such as EOL state,
> announced EOL dates, provenance/source/`vendor', source URLs, license-URLs,
> ECCN Classifier numbers, and other `stuff' that can let you automate CI/CD,
> compliance, governance reports and so on, help a lot.
>
> Dw
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: security-discuss-unsubscribe@community.apache.org
> For additional commands, e-mail:
> security-discuss-help@community.apache.org
>
>

Re: Legal implications of publishing VEX files

Posted by Dirk-Willem van Gulik <di...@webweaving.org>.
On 5 Feb 2025, at 13:22, Piotr P. Karwasz <pi...@mailing.copernik.eu> wrote:
> On 5.02.2025 13:09, Gary Gregory wrote:
>> Why is this not done as an Apache project?
> 
> It is an experiment. For now we will profit from the simplified release procedure and low support expectations for this kind of projects. Rest assured that if this becomes popular enough, we'll submit it to Apache or OWASP CycloneDX.
> 
> SBOMs is such a moving target that half of the projects that exist today will reach EOL in one year.

One thing that may help discriminate/affect staying power is to what extend the SBOM is a win-win, rather than `make work'. Which means that slightly richer SBOMs, which allow you to express things such as EOL state, announced EOL dates, provenance/source/`vendor', source URLs, license-URLs, ECCN Classifier numbers, and other `stuff' that can let you automate CI/CD, compliance, governance reports and so on, help a lot.

Dw


---------------------------------------------------------------------
To unsubscribe, e-mail: security-discuss-unsubscribe@community.apache.org
For additional commands, e-mail: security-discuss-help@community.apache.org


Re: Legal implications of publishing VEX files

Posted by "Piotr P. Karwasz" <pi...@mailing.copernik.eu>.
Hi Gary,

On 5.02.2025 13:09, Gary Gregory wrote:
> Why is this not done as an Apache project?

It is an experiment. For now we will profit from the simplified release 
procedure and low support expectations for this kind of projects. Rest 
assured that if this becomes popular enough, we'll submit it to Apache 
or OWASP CycloneDX.

SBOMs is such a moving target that half of the projects that exist today 
will reach EOL in one year.

Piotr

[1] https://oss-review-toolkit.org/ort/


---------------------------------------------------------------------
To unsubscribe, e-mail: security-discuss-unsubscribe@community.apache.org
For additional commands, e-mail: security-discuss-help@community.apache.org


Re: Legal implications of publishing VEX files

Posted by Gary Gregory <ga...@gmail.com>.
Why is this not done as an Apache project?

Gary

On Wed, Feb 5, 2025, 06:53 Piotr P. Karwasz <pi...@mailing.copernik.eu>
wrote:

> Hi Gary,
>
> On 5.02.2025 12:26, Gary Gregory wrote:
> > Would it be possible to treat a VEX like a POM and let other tooling deal
> > with building an "effective" VEX like Maven builds an effective POM?
>
> This is one of the goals of a small Maven plugin I am developing with
> Christian[1]. Right now we are working on achieving an "effective"
> CycloneDX SBOM, i.e. an SBOM that contains both the information from
> your SBOM and those published by your dependencies.
>
> In a phase 10 we would like to merge VDR/VEX documents for the entire
> dependency tree.
>
> Piotr
>
> [1] https://github.com/sbom-enforcer/sbom-enforcer
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: security-discuss-unsubscribe@community.apache.org
> For additional commands, e-mail:
> security-discuss-help@community.apache.org
>
>

Re: Legal implications of publishing VEX files

Posted by "Piotr P. Karwasz" <pi...@mailing.copernik.eu>.
Hi Gary,

On 5.02.2025 12:26, Gary Gregory wrote:
> Would it be possible to treat a VEX like a POM and let other tooling deal
> with building an "effective" VEX like Maven builds an effective POM?

This is one of the goals of a small Maven plugin I am developing with 
Christian[1]. Right now we are working on achieving an "effective" 
CycloneDX SBOM, i.e. an SBOM that contains both the information from 
your SBOM and those published by your dependencies.

In a phase 10 we would like to merge VDR/VEX documents for the entire 
dependency tree.

Piotr

[1] https://github.com/sbom-enforcer/sbom-enforcer


---------------------------------------------------------------------
To unsubscribe, e-mail: security-discuss-unsubscribe@community.apache.org
For additional commands, e-mail: security-discuss-help@community.apache.org


Re: Legal implications of publishing VEX files

Posted by Gary Gregory <ga...@gmail.com>.
Would it be possible to treat a VEX like a POM and let other tooling deal
with building an "effective" VEX like Maven builds an effective POM?

Gary

On Wed, Feb 5, 2025, 03:41 Piotr P. Karwasz <pi...@mailing.copernik.eu>
wrote:

> Hi all,
>
> The current "upgrade hamster wheel" pushes us to make a release each
> time a dependency has a vulnerability, regardless of the kind of
> vulnerability and its exploitability in our projects. VEX files seem the
> ideal tool to limit the number of releases or the chain of upgrades that
> happens, when a deeply nested dependency has a problem (Apache
> Commons?). [In my definition VEX files only contain informations about
> CVEs published by dependencies, not the project itself]
>
> Integrating VEX-es into our upgrade policy could be really beneficial:
> if something happens to a transitive dependency, but all our direct
> dependencies publish a "not affected" VEX statement, we can skip the
> upgrade and publish a "not_affected" VEX statement ourselves. If a
> direct dependency publishes an "exploitable" VEX statement and a nice
> description of the conditions under which the bug can be triggered, we
> can still check if we meet those conditions in our own code. We won't
> have to analyze the code of our dependencies! Maybe we are not affected
> and we can just publish a VEX statement that says so.
>
> However, as pointed out by Jarek, what happens if we make a mistake?
> Will the ASF or ourselves be liable?
>
> VEX-es are going to happen, whether we want it or not, because the USA
> is pushing for them. If there is a legal risk, however, I will choose to
> always publish an "exploitable" VEX statement to be safe and only in the
> details I would write "Our analysis shows that the bug is not
> exploitable in Foo. Disclaimer: this does not constitute a security
> advise, consult your own security expert".
>
> Piotr
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: security-discuss-unsubscribe@community.apache.org
> For additional commands, e-mail:
> security-discuss-help@community.apache.org
>
>