-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
https://services.nvd.nist.gov/ endopint is giving 503 Service Unavailable #6758
Comments
We are facing the same issue, cannot update the OWASP DC database. Might it be related to NVD moving to CVSS 4.0 on June 27th ? https://nvd.nist.gov/general/news/cvss-v4-0-official-support |
We also have myriads of jobs/pipelines failing due to this issue. Though this should teach us a lesson not to rely on its availability. |
@jeremylong Can you please help us with this issue ? |
Same here 9.2.0 |
The NVD API (https://nvd.nist.gov/developers/vulnerabilities) seems on and off at the moment 1 attempt shows 200 response with expected results
On another attempt right after shows 503 response:
No luck on the builds though, all of them are failing. |
Also affected with Dependency-Check Core version 9.0.9. |
Workaround is autoUpdate=false |
another workaround:
|
Workaround in our case: We have private build servers on which we have OWASP DC installed. Each team running their build runs with --noupdate, and every 4 hours we run a separate job to update all OWASP DC databases. In this case at least the builds from the teams keep running, and they never have to wait for updates. In case updating fails, and it has failed before, only we, the system team, are impacted. |
probably not much this project can do anything about, altho it would be nice if it would fail fast. rather than hanging for hours. |
IMHO, it's probably at root due to #6746 and the NVD APIs getting a DDoS from many thousands of ODC clients constantly retrying requests that will never succeed (until fixed within ODC, and every user around the world upgrading from v9 to v10). |
Any updates on this issue ? looks like 10.0.0 version has some bug while updating CVEs. |
Try with setting api key https://nvd.nist.gov/general/news/API-Key-Announcement |
Needing to use an API key to avoid certain errors/rate limiting has been true since v9 of ODC (especially if starting without an existing cache/database), but if you are recently upgrading from v8 -> v9 or v8 -> v10 you may have this as a root cause for your issue. But there also appear to be some other load problems, at least yesterday. As for bugs and compatibility problems with v10 and certain databases/setups, you probably need to follow #6746 . Right now I don't think there is any working version of ODC v9 or v10 that is fine across all setups. Might be OK with an H2 Database but definitely some issues with Postgres and MySQL? Not sure about v8. |
@ftiercelin the datafeeds are no longer supported. To use them you would have to be using an unsupported version of ODC - prior to 9.0.0. |
Yes, the NVD API is having capacity issues right now. I have seen successful calls into the API - generally using an API key. There is not much the project (ODC) can do about this. I am releasing 10.0.1 - which contains a few minor fixes if you are using postgres or mssql as a centralized database. The release also removes a bit of debug logging that makes it look like errors occurred when they did not. |
Hi @jeremylong |
@zg2pro No, they don't. They have widespread and well documented funding and governance problems which you can google and read about. They have had persistent periodic technical problems since the launch of the API especially. In any case, if you are relying upon OSS and a free service from the US government's NVD for your critical workflows rather than a commercial vendor, it's all best efforts. Personally (just a hunch), I have a feeling that the NVD capacity issues will abate as people update to ODC In any case, my H2-database ODC cache updated slowly but successfully on |
Hi @jeremylong , if the datafeed option is not relevant anymore, you might want to update the example page which is showcasing this option: http://jeremylong.github.io/DependencyCheck/dependency-check-maven/index.html#Example_5: |
Sounds like I just picked a bad time to blow away my local database (it seemed to have gotten corrupted) but this was also a good opportunity to update to 10.0.1 from 9.x! Update: it took a while, with lots of retry messages in the output, but it did succeed in rebuilding/updating the database using 10.0.1. |
The NVD is aware of the availability issues and they are working on it; see https://groups.google.com/a/list.nist.gov/g/nvd-news/c/sJmF-2XIA80 |
Hi @jeremylong, My doubt is, given my setup (v9.0.9 of Dependency Check with a Postgres database), is upgrading to v10.0.1 the only solution, or are there alternative fixes available? Thanks! |
Version 9 will not be able to parse the current results from the NVD. 10+ is the only currently supported version. |
Does the 10+ version also support Oracle databases? Our NVD mirroring is hosted on Oracle DB. |
Right, thanks again Chad, this setup has been running fine now with dozens of teamcity agents running on the same data directory, significantly reducing our load on the NVD backend, |
Still same issue after upgrading to 10.0.1. [INFO] Checking for updates ` |
Looks like this issue is referenced in a lot of places. Adding this here for awareness. |
@richardzaat |
@AmyChihHi see the documentation here; it sounds like they are using option 3 and caching the data directory. |
To add on further, probably with the single node database updater option if The specific methodology for doing so is highly dependent on your environment and what you have available to you. |
I tried it but got the following error message: [INFO] Checking for updates Please ensure your API Key is valid; see https://github.com/jeremylong/Open-Vulnerability-Project/tree/main/vulnz#api-key-is-used-and-a-403-or-404-error-occurs If your NVD API Key is valid try increasing the NVD API Delay. If this is ocurring in a CI environment Please ensure your API Key is valid; see https://github.com/jeremylong/Open-Vulnerability-Project/tree/main/vulnz#api-key-is-used-and-a-403-or-404-error-occurs If your NVD API Key is valid try increasing the NVD API Delay. If this is ocurring in a CI environment |
@AmyChihHi see #6816 and #6817 - unless you are getting 503s, you have a different problem than this one. |
@AmyChihHi in my case the error I used https://github.com/jeremylong/InstallCert to install the new cert for services.nvd.nist.gov. @jeremylong : it seems the "Error updating the NVD Data; the NVD returned a 403 or 404 error" error message is not always accurate. It seems to be also triggered by |
@ftiercelin it'd probably be helpful if you filed any misleading error messages as a separate issue with full stack trace, as opportunities for improvement are otherwise going to get lost here (just as they did with 9.x when the switch to this domain was first done - the use of this NVD domain is only new for folks who haven't been using 9.x earlier than this change). Also, we are now conflating 503 errors with 403 errors in one ticket which is even more confusing for folks trying to figure out whether their problem is transient or permanent (without user action). |
@chadlwilson I'll also be improving the error reporting around the NVD API Key (see ovc/55678e58084496f39ca6a92a9fc7dc90b5e82231). I've seen at least one CI with an incorrectly set NVD API Key provide an empty string - which can really cause some confusion and problems. |
Yeah, I've seen issues before with Gradle system properties and project properties being read incorrectly (or at the wrong part of Gradle lifecycle) so it'll definitely help to have a bit more "it looks like you're doing something wrong..." here. |
Good morning all, I have a big performance issue related to this topic the API 2.0 https://services.nvd.nist.gov/rest/json/cves/2.0 during the last 3/4 days has been returning HTTP code 503 most interrogation from plugin and the process of dependency-check needs up to 1h for finishing....this is unacceptable. Thank you in advance. |
All I can say: same here ... |
Is it possible to use https://api.vulncheck.com/v3/backup/nist-nvd2 (more info https://docs.vulncheck.com/community/nist-nvd/nvd-2) ? |
@dspaeth-breuni I suppose so, there's a configuration item called nvdApiEndpoint, see https://jeremylong.github.io/DependencyCheck/dependency-check-maven/check-mojo.html |
@ftiercelin thanks for your reply. The vulncheck API needs "Authorization: Bearer " |
If this is not feasible via the client, you would have to set up some outbound reverse proxy (i.e. with nginx) that enriches your request accordingly. |
We accept PRs... |
Facing the same issues, 503 errors on all requests |
This is not as simple as I thought. It's not just about shifting from header 'apiKey:{key}' to header 'Authorization: Bearer {key}' I think we need a new type of client in package io.github.jeremylong.openvulnerability.client to handle this new API. I have created an enhancement request: jeremylong/Open-Vulnerability-Project#231 |
The incident causing most of these issues has been resolved. hopefully, the NVD will not mass update all of the vulnerabilities again. |
OWASP Client version: 9.0.8
We are seeing the services endpoint timeout from last couple of days
We have verified the nvdApiKey is valid.
The curl response to the endpoint gives the response below
Is there a change in Service endpoint? Can we get some assistance with this.
The text was updated successfully, but these errors were encountered: