Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore bogus advisories #756

Merged
merged 2 commits into from
Dec 3, 2024
Merged

Conversation

jderusse
Copy link
Contributor

@jderusse jderusse commented Dec 3, 2024

By design, anyone can register a CVE, and sometimes these are false positive. Like the one in cURL https://curl.se/docs/CVE-2023-52071.html

Sadly, it's almost impossible to discard a CVE. This PR aims to ignore a list of advisories in roave/security-advisories, in a similar way packagist does composer/packagist#1493 and how this repository already patches some entries

'too aggressive `laminas/laminas-form` affected range in published advisory' => [

side note: This PR does not use the RuleProviderFactory because I believe "matching only the package/version" could be an issue: If one day another CVE (a real one) is open with the same original constraint the rule will patch it. As a result, the output will miss the original constraint

@Ocramius
Copy link
Member

Ocramius commented Dec 3, 2024

@jderusse some minor adjustments needed, then shippable

@jderusse jderusse marked this pull request as draft December 3, 2024 13:52
@jderusse
Copy link
Contributor Author

jderusse commented Dec 3, 2024

maybe not needed, Github security team might withdraw the 2 advisories.
github/advisory-database#5046 (comment)

@Ocramius
Copy link
Member

Ocramius commented Dec 3, 2024

That's generally the best course of action

@Ocramius Ocramius marked this pull request as ready for review December 3, 2024 14:32
@Ocramius Ocramius merged commit d6fdfd2 into Roave:latest Dec 3, 2024
7 checks passed
@Ocramius
Copy link
Member

Ocramius commented Dec 3, 2024

Thanks @jderusse!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants