CWE-798
Allowed-with-ReviewUse of Hard-coded Credentials
Abstraction: Base · Status: Draft
The product contains hard-coded credentials, such as a password or cryptographic key.
2460 vulnerabilities reference this CWE, most recent first.
GHSA-86P5-H8PQ-P6HX
Vulnerability from github – Published: 2023-06-22 18:30 – Updated: 2024-04-04 05:01Advantech R-SeeNet versions 2.4.22
is installed with a hidden root-level user that is not available in the users list. This hidden user has a password that cannot be changed by users.
{
"affected": [],
"aliases": [
"CVE-2023-2611"
],
"database_specific": {
"cwe_ids": [
"CWE-798"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2023-06-22T17:15:44Z",
"severity": "CRITICAL"
},
"details": "Advantech R-SeeNet \nversions 2.4.22 \n\nis installed with a hidden root-level user that is not available in the \nusers list. This hidden user has a password that cannot be changed by \nusers.\n\n\n\n\n\n",
"id": "GHSA-86p5-h8pq-p6hx",
"modified": "2024-04-04T05:01:14Z",
"published": "2023-06-22T18:30:25Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2023-2611"
},
{
"type": "WEB",
"url": "https://www.cisa.gov/news-events/ics-advisories/icsa-23-173-02"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-8777-QHX4-G86W
Vulnerability from github – Published: 2022-05-24 17:41 – Updated: 2022-05-24 17:41An issue was discovered on FiberHome HG6245D devices through RP2613. There is a 6GFJdY4aAuUKJjdtSn7d password for the rdsadmin account.
{
"affected": [],
"aliases": [
"CVE-2021-27168"
],
"database_specific": {
"cwe_ids": [
"CWE-798"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2021-02-10T19:15:00Z",
"severity": "CRITICAL"
},
"details": "An issue was discovered on FiberHome HG6245D devices through RP2613. There is a 6GFJdY4aAuUKJjdtSn7d password for the rdsadmin account.",
"id": "GHSA-8777-qhx4-g86w",
"modified": "2022-05-24T17:41:51Z",
"published": "2022-05-24T17:41:51Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-27168"
},
{
"type": "WEB",
"url": "https://pierrekim.github.io/blog/2021-01-12-fiberhome-ont-0day-vulnerabilities.html#telnet-linux-hardcoded-credentials"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-8798-3PF8-6H9Q
Vulnerability from github – Published: 2026-08-07 09:31 – Updated: 2026-08-07 09:31By accessing unencrypted information in the device firmware, an attacker can obtain the initial login credentials for the device's web interface.
{
"affected": [],
"aliases": [
"CVE-2026-49007"
],
"database_specific": {
"cwe_ids": [
"CWE-798"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-08-07T08:16:46Z",
"severity": "HIGH"
},
"details": "By accessing unencrypted information in the device firmware, an attacker can obtain the initial login credentials for the device\u0027s web interface.",
"id": "GHSA-8798-3pf8-6h9q",
"modified": "2026-08-07T09:31:53Z",
"published": "2026-08-07T09:31:53Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-49007"
},
{
"type": "WEB",
"url": "https://support.zte.com.cn/zte-iccp-isupport-webui/bulletin/detail/460174866982035232"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
"type": "CVSS_V3"
}
]
}
GHSA-87GX-294Q-7XRF
Vulnerability from github – Published: 2022-05-14 03:45 – Updated: 2022-05-14 03:45IBM Tealeaf Customer Experience 8.7, 8.8, and 9.0.2 contains hard-coded credentials. A remote attacker could exploit this vulnerability to gain access to the system. IBM X-Force ID: 123740.
{
"affected": [],
"aliases": [
"CVE-2017-1204"
],
"database_specific": {
"cwe_ids": [
"CWE-798"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2018-01-26T21:29:00Z",
"severity": "CRITICAL"
},
"details": "IBM Tealeaf Customer Experience 8.7, 8.8, and 9.0.2 contains hard-coded credentials. A remote attacker could exploit this vulnerability to gain access to the system. IBM X-Force ID: 123740.",
"id": "GHSA-87gx-294q-7xrf",
"modified": "2022-05-14T03:45:49Z",
"published": "2022-05-14T03:45:49Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2017-1204"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/123740"
},
{
"type": "WEB",
"url": "http://www.ibm.com/support/docview.wss?uid=swg22006392"
},
{
"type": "WEB",
"url": "http://www.ibm.com/support/docview.wss?uid=swg22006455"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-87PX-4M24-345H
Vulnerability from github – Published: 2025-07-25 18:30 – Updated: 2025-07-25 18:30Unitree Go1 <= Go1_2022_05_11 is vulnerale to Incorrect Access Control due to authentication credentials being hardcoded in plaintext.
{
"affected": [],
"aliases": [
"CVE-2025-45466"
],
"database_specific": {
"cwe_ids": [
"CWE-798"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2025-07-25T16:15:33Z",
"severity": "HIGH"
},
"details": "Unitree Go1 \u003c= Go1_2022_05_11 is vulnerale to Incorrect Access Control due to authentication credentials being hardcoded in plaintext.",
"id": "GHSA-87px-4m24-345h",
"modified": "2025-07-25T18:30:40Z",
"published": "2025-07-25T18:30:40Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-45466"
},
{
"type": "WEB",
"url": "https://github.com/zgsnj123/CVE-2025-45466"
},
{
"type": "WEB",
"url": "https://www.unitree.com/cn/go1"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-8832-M7JX-C7WV
Vulnerability from github – Published: 2022-05-24 17:20 – Updated: 2022-10-07 00:00Use of a hard-coded cryptographic key to encrypt password data in CLI configuration in FortiManager 6.2.3 and below may allow an attacker with access to the CLI configuration or the CLI backup file to decrypt the sensitive data, via knowledge of the hard-coded key.
{
"affected": [],
"aliases": [
"CVE-2020-9289"
],
"database_specific": {
"cwe_ids": [
"CWE-798"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2020-06-16T21:15:00Z",
"severity": "MODERATE"
},
"details": "Use of a hard-coded cryptographic key to encrypt password data in CLI configuration in FortiManager 6.2.3 and below may allow an attacker with access to the CLI configuration or the CLI backup file to decrypt the sensitive data, via knowledge of the hard-coded key.",
"id": "GHSA-8832-m7jx-c7wv",
"modified": "2022-10-07T00:00:39Z",
"published": "2022-05-24T17:20:41Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-9289"
},
{
"type": "WEB",
"url": "https://fortiguard.com/psirt/FG-IR-19-007"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
"type": "CVSS_V3"
}
]
}
GHSA-884R-QM45-3J9G
Vulnerability from github – Published: 2026-07-27 21:31 – Updated: 2026-08-11 21:32A hardcoded credential vulnerability exists in the firmware of multiple TP-Link routers (TL-WR845N v4, TL-WR850N v3, Archer C20 v6 & Archer MR200 v5). Authentication-related credential material is embedded within a password file in the firmware image and may be recovered through firmware analysis.
Successful exploitation could result in unauthorized access to privileged functions on affected devices.
{
"affected": [],
"aliases": [
"CVE-2026-12001"
],
"database_specific": {
"cwe_ids": [
"CWE-798"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-07-27T21:16:47Z",
"severity": "MODERATE"
},
"details": "A hardcoded credential\nvulnerability exists in the firmware of multiple TP-Link routers (TL-WR845N v4, TL-WR850N v3, Archer C20 v6 \u0026 Archer MR200 v5). \u00a0Authentication-related credential material is\nembedded within a password file in the firmware image and may be recovered\nthrough firmware analysis.\n\n\n\n\n\nSuccessful\nexploitation could result in unauthorized access to privileged functions on\naffected devices.",
"id": "GHSA-884r-qm45-3j9g",
"modified": "2026-08-11T21:32:26Z",
"published": "2026-07-27T21:31:23Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-12001"
},
{
"type": "WEB",
"url": "https://www.tp-link.com/en/support/download/archer-c20/v6/#Firmware"
},
{
"type": "WEB",
"url": "https://www.tp-link.com/en/support/download/archer-mr200/v5/#Firmware"
},
{
"type": "WEB",
"url": "https://www.tp-link.com/en/support/download/tl-wr845n/#Firmware"
},
{
"type": "WEB",
"url": "https://www.tp-link.com/en/support/download/tl-wr902ac/v4/#Firmware"
},
{
"type": "WEB",
"url": "https://www.tp-link.com/in/support/download/archer-c20/v6/#Firmware"
},
{
"type": "WEB",
"url": "https://www.tp-link.com/in/support/download/archer-mr200/v5/#Firmware"
},
{
"type": "WEB",
"url": "https://www.tp-link.com/in/support/download/tl-wr845n/#Firmware"
},
{
"type": "WEB",
"url": "https://www.tp-link.com/in/support/download/tl-wr850n/#Firmware"
},
{
"type": "WEB",
"url": "https://www.tp-link.com/us/support/download/archer-c20/v6/#Firmware"
},
{
"type": "WEB",
"url": "https://www.tp-link.com/us/support/download/tl-wr902ac/v4/#Firmware"
},
{
"type": "WEB",
"url": "https://www.tp-link.com/us/support/faq/5210"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
"type": "CVSS_V4"
}
]
}
GHSA-88G7-JHQX-Q9GP
Vulnerability from github – Published: 2023-05-24 18:30 – Updated: 2024-04-04 04:19This vulnerability enables ssh access to minikube container using a default password.
{
"affected": [],
"aliases": [
"CVE-2023-1944"
],
"database_specific": {
"cwe_ids": [
"CWE-259",
"CWE-798"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2023-05-24T17:15:09Z",
"severity": "HIGH"
},
"details": "This vulnerability enables ssh access to minikube container using a default password.",
"id": "GHSA-88g7-jhqx-q9gp",
"modified": "2024-04-04T04:19:45Z",
"published": "2023-05-24T18:30:26Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2023-1944"
},
{
"type": "WEB",
"url": "https://github.com/kubernetes/minikube"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-8928-2V8P-QCC3
Vulnerability from github – Published: 2022-09-29 00:00 – Updated: 2022-09-29 00:00In Carlo Gavazzi UWP3.0 in multiple versions and CPY Car Park Server in Version 2.8.3 a remote, unauthenticated attacker could make use of hard-coded credentials to gain SuperUser access to the device.
{
"affected": [],
"aliases": [
"CVE-2022-28812"
],
"database_specific": {
"cwe_ids": [
"CWE-798"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2022-09-28T14:15:00Z",
"severity": "CRITICAL"
},
"details": "In Carlo Gavazzi UWP3.0 in multiple versions and CPY Car Park Server in Version 2.8.3 a remote, unauthenticated attacker could make use of hard-coded credentials to gain SuperUser access to the device.",
"id": "GHSA-8928-2v8p-qcc3",
"modified": "2022-09-29T00:00:25Z",
"published": "2022-09-29T00:00:25Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-28812"
},
{
"type": "WEB",
"url": "https://cert.vde.com/en/advisories/VDE-2022-029"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-8C4V-C8QJ-9F59
Vulnerability from github – Published: 2022-05-24 19:21 – Updated: 2022-05-24 19:21D-Link DGS-1500 Ax devices before 2.51B021 have a hardcoded password, which allows remote attackers to obtain shell access.
{
"affected": [],
"aliases": [
"CVE-2017-15909"
],
"database_specific": {
"cwe_ids": [
"CWE-798"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2017-10-26T03:29:00Z",
"severity": "CRITICAL"
},
"details": "D-Link DGS-1500 Ax devices before 2.51B021 have a hardcoded password, which allows remote attackers to obtain shell access.",
"id": "GHSA-8c4v-c8qj-9f59",
"modified": "2022-05-24T19:21:22Z",
"published": "2022-05-24T19:21:22Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2017-15909"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
Mitigation
- For outbound authentication: store passwords, keys, and other credentials outside of the code in a strongly-protected, encrypted configuration file or database that is protected from access by all outsiders, including other local users on the same system. Properly protect the key (CWE-320). If you cannot use encryption to protect the file, then make sure that the permissions are as restrictive as possible [REF-7].
- In Windows environments, the Encrypted File System (EFS) may provide some protection.
Mitigation
For inbound authentication: Rather than hard-code a default username and password, key, or other authentication credentials for first time logins, utilize a "first login" mode that requires the user to enter a unique strong password or key.
Mitigation
If the product must contain hard-coded credentials or they cannot be removed, perform access control checks and limit which entities can access the feature that requires the hard-coded credentials. For example, a feature might only be enabled through the system console instead of through a network connection.
Mitigation
- For inbound authentication using passwords: apply strong one-way hashes to passwords and store those hashes in a configuration file or database with appropriate access control. That way, theft of the file/database still requires the attacker to try to crack the password. When handling an incoming password during authentication, take the hash of the password and compare it to the saved hash.
- Use randomly assigned salts for each separate hash that is generated. This increases the amount of computation that an attacker needs to conduct a brute-force attack, possibly limiting the effectiveness of the rainbow table method.
Mitigation
- For front-end to back-end connections: Three solutions are possible, although none are complete.
- The first suggestion involves the use of generated passwords or keys that are changed automatically and must be entered at given time intervals by a system administrator. These passwords will be held in memory and only be valid for the time intervals.
- Next, the passwords or keys should be limited at the back end to only performing actions valid for the front end, as opposed to having full access.
- Finally, the messages sent should be tagged and checksummed with time sensitive values so as to prevent replay-style attacks.
CAPEC-191: Read Sensitive Constants Within an Executable
An adversary engages in activities to discover any sensitive constants present within the compiled code of an executable. These constants may include literal ASCII strings within the file itself, or possibly strings hard-coded into particular routines that can be revealed by code refactoring methods including static and dynamic analysis.
CAPEC-70: Try Common or Default Usernames and Passwords
An adversary may try certain common or default usernames and passwords to gain access into the system and perform unauthorized actions. An adversary may try an intelligent brute force using empty passwords, known vendor default credentials, as well as a dictionary of common usernames and passwords. Many vendor products come preconfigured with default (and thus well-known) usernames and passwords that should be deleted prior to usage in a production environment. It is a common mistake to forget to remove these default login credentials. Another problem is that users would pick very simple (common) passwords (e.g. "secret" or "password") that make it easier for the attacker to gain access to the system compared to using a brute force attack or even a dictionary attack using a full dictionary.