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

NVD mirroring error #4066

Closed
2 tasks done
mdouble opened this issue Aug 12, 2024 · 5 comments
Closed
2 tasks done

NVD mirroring error #4066

mdouble opened this issue Aug 12, 2024 · 5 comments
Labels
retracted Issues that were resolved, but due to outside forces, is no longer possible for inclusion

Comments

@mdouble
Copy link

mdouble commented Aug 12, 2024

Current Behavior

NVD mirroring seems not to work for a while.

From our logfile:

2024-08-12 09:30:52,563 INFO [NistApiMirrorTask] Mirroring CVEs that were modified since 2024-06-27T23:15:50Z
2024-08-12 09:30:53,662 ERROR [NistApiMirrorTask] An unexpected error occurred while mirroring the contents of the National Vulnerability Database
io.github.jeremylong.openvulnerability.client.nvd.NvdApiException: NVD Returned Status Code: 403
at io.github.jeremylong.openvulnerability.client.nvd.NvdCveClient.next(NvdCveClient.java:352)
at org.dependencytrack.tasks.NistApiMirrorTask.inform(NistApiMirrorTask.java:166)
at alpine.event.framework.BaseEventService.lambda$publish$0(BaseEventService.java:110)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
2024-08-12 09:30:53,662 INFO [NistApiMirrorTask] Mirroring of 0 CVEs completed in PT1.0990885S

NVD Feeds URL is https://nvd.nist.gov/feeds
API endpoint is https://services.nvd.nist.gov/rest/json/cves/2.0

API key was updated. Still the same behavior.

Steps to Reproduce

  1. see above

Expected Behavior

Mirroring works. No errors in log.

Dependency-Track Version

4.10.x

Dependency-Track Distribution

Container Image

Database Server

PostgreSQL

Database Server Version

No response

Browser

Google Chrome

Checklist

@mdouble mdouble added defect Something isn't working in triage labels Aug 12, 2024
@nscuro
Copy link
Member

nscuro commented Aug 12, 2024

See: https://docs.dependencytrack.org/changelog/#v4-11-5

This release primarily addresses an inability to mirror the NVD via its REST API. The NVD REST API recently experienced increased load, causing service disruptions. Dependency-Track users who opted into API mirroring will have seen symptoms of this as NvdApiException: NVD Returned Status Code: 503 errors in the logs.

To reduce load on their systems, NIST started to block requests with a certain User-Agent header, which Dependency-Track happens to use. Upgrading to v4.11.5 will allow Dependency-Track to no longer be subject to this block.

Users who can’t immediately update, yet are reliant on NVD data being current, can switch back to the feed file based mirroring by disabling Enable mirroring via API in the administration panel.

@mdouble
Copy link
Author

mdouble commented Aug 15, 2024

Is this the same issue? Returned status code above is "403 Forbidden" while 4.11.5 resolves "503 Service Unavailable".

@nscuro
Copy link
Member

nscuro commented Aug 19, 2024

The 503s were caused by excessive load of NVD servers, which NIST acted on by blocking all clients with a specific User-Agent header. This block will manifest in 403 responses.

Please upgrade to 4.11.5 or later.

@mdouble mdouble closed this as completed Aug 29, 2024
@mdouble
Copy link
Author

mdouble commented Aug 29, 2024

Upgrade to 4.11.7 resolved issue.

@nscuro nscuro added retracted Issues that were resolved, but due to outside forces, is no longer possible for inclusion and removed defect Something isn't working pending more information labels Aug 29, 2024
Copy link
Contributor

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
retracted Issues that were resolved, but due to outside forces, is no longer possible for inclusion
Projects
None yet
Development

No branches or pull requests

2 participants