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

CPE for amazoncorretto:19.0.1-al2 is incorrect #1337

Closed
eccles opened this issue Nov 11, 2022 · 2 comments · Fixed by #1339
Closed

CPE for amazoncorretto:19.0.1-al2 is incorrect #1337

eccles opened this issue Nov 11, 2022 · 2 comments · Fixed by #1339
Assignees
Labels
bug Something isn't working

Comments

@eccles
Copy link

eccles commented Nov 11, 2022

Please provide a set of steps on how to reproduce the issue
syft -q packages --scope all-layers -o cyclonedx amazoncorretto:19.0.1-al2
What happened:
SBOM is created successfully but validation against schema produces the following failure:

CDX 1.4 is invalid: Failed to validate: 3183: Element '{http://cyclonedx.org/schema/bom/1.4}cpe': [facet 'pattern'] The value 'cpe:2.3:o:amazon:amazon_linux:2' is not accepted by the pattern '([c][pP][eE]:/[AHOaho]?(:[A-Za-z0-9.-~%]){0,6})|(cpe:2.3:aho*-{5}(:(([a-zA-Z]{2,3}(-([a-zA-Z]{2}|[0-9]{3}))?)|[*-]))(:(((?|*?)([a-zA-Z0-9-.]|(\[\*?!"#$$%&'()+,/:;<=>@[]^`{|}~]))+(?*|*?))|[*-])){4})'.

What you expected to happen:
Validation to succeed

Environment:

  • Output of syft version: 0.60.3
  • OS (e.g: cat /etc/os-release or similar): ubuntu:jammy docker image
@eccles eccles added the bug Something isn't working label Nov 11, 2022
@eccles
Copy link
Author

eccles commented Nov 11, 2022

Please forgive me if this is not a bug in syft but there is a similar issue to do with invalid cpe for another package and I thought that syft developers should be aware of ths.

@kzantow
Copy link
Contributor

kzantow commented Nov 14, 2022

Thanks @eccles -- I've reproduced this with the information you've provided and this definitely looks like an invalid CPE, we'll get this taken care of!

@kzantow kzantow added this to OSS Nov 14, 2022
@kzantow kzantow moved this to Backlog (Pulled Forward for Priority) in OSS Nov 14, 2022
@kzantow kzantow self-assigned this Nov 14, 2022
@kzantow kzantow moved this from Backlog (Pulled Forward for Priority) to In Progress (Actively Resolving) in OSS Nov 14, 2022
Repository owner moved this from In Progress (Actively Resolving) to Done in OSS Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants