CWEweakness
CWE-311 Missing Encryption of Sensitive Data
High
Official page ↗
- Abstraction
- Class
- Structure
- Simple
- Status
- Draft
- Likelihood of exploit
- High
- Languages
- Go, Not Language-Specific
- CWE version
- 5.0
Description
The product does not encrypt sensitive or critical information before storage or transmission.
Common consequences
• Confidentiality: Read Application Data — If the application does not use a secure channel, such as SSL, to exchange sensitive information, it is possible for an attacker with access to the network traffic to sniff packets from the connection and uncover the data. This attack is not technically difficult, but does require physical access to some portion of the network over which the sensitive data travels. This access is usually somewhere near where the user is connected to the network (such as a colleague on the company network) but can be anywhere along the path from the user to the end server.
• Confidentiality, Integrity: Modify Application Data — Omitting the use of encryption in any program which transfers data over a network of any kind should be considered on par with delivering the data sent to each user on the local networks of both the sender and receiver. Worse, this omission allows for the injection of data into a stream of communication between two parties -- with no means for the victims to separate valid data from invalid. In this day of widespread network attacks and password collection sniffers, it is an unnecessary risk to omit encryption from the design of any system which might benefit from it.
Potential mitigations
• [Requirements] Clearly specify which data or resources are valuable enough that they should be protected by encryption. Require that any transmission or storage of this data/resource should use well-vetted encryption algorithms.
• [Architecture and Design] Ensure that encryption is properly integrated into the system design, including but not necessarily limited to:
• Encryption that is needed to store or transmit private data of the users of the system
• Encryption that is needed to protect the system itself from unauthorized disclosure or tampering
Identify the separate needs and contexts for encryption:
• One-way (i.e., only the user or recipient needs to have the key). This can be achieved using public key cryptography, or other techniques in which the encrypting party (i.e., the product) does not need to have access to a private key.
• Two-way (i.e., the encryption can be automatically performed on behalf of a user, but the key must be available so that the plaintext can be automatically recoverable by that user). This requires storage of the private key in a format that is recoverable only by the user (or perhaps by the operating system) in a way that cannot be recovered by others.
Using threat modeling or other techniques, assume that data can be compromised through a separate vulnerability or weakness, and determine where encryption will be most effective. Ensure that data that should be private is not being inadvertently exposed using weaknesses such as insecure permissions (CWE-732). [REF-7]
• [Architecture and Design] When there is a need to store or transmit sensitive data, use strong, up-to-date cryptographic algorithms to encrypt that data. Select a well-vetted algorithm that is currently considered to be strong by experts in the field, and use well-tested implementations. As with all cryptographic mechanisms, the source code should be available for analysis.
For example, US government systems require FIPS 140-2 certification.
Do not develop custom or private cryptographic algorithms. They will likely be exposed to attacks that are well-understood by cryptographers. Reverse engineering techniques are mature. If the algorithm can be compromised if attackers find out how it works, then it is especially weak.
Periodically ensure that the cryptography has not become obsolete. Some older algorithms, once thought to require a billion years of computing time, can now be broken in days or hours. This includes MD4, MD5, SHA1, DES, and other algorithms that were once regarded as strong. [REF-267]
• [Architecture and Design] Compartmentalize the system to have "safe" areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area.
Ensure that appropriate compartmentalization is built into the system design, and the compartmentalization allows for and reinforces privilege separation functionality. Architects and designers should rely on the principle of least privilege to decide the appropriate time to use privileges and the time to drop privileges.
• [Implementation, Architecture and Design] When using industry-approved techniques, use them correctly. Don't cut corners by skipping resource-intensive steps (CWE-325). These steps are often essential for preventing common attacks.
• [Implementation] Use naming conventions and strong types to make it easier to spot when sensitive data is being used. When creating structures, objects, or other complex entities, separate the sensitive and non-sensitive data as much as possible.
Detection methods
• Manual Analysis: The characterization of sensitive data often requires domain-specific understanding, so manual methods are useful. However, manual efforts might not achieve desired code coverage within limited time constraints. Black box methods may produce artifacts (e.g. stored data or unencrypted network transfer) that require manual evaluation.
• Automated Analysis: Automated measurement of the entropy of an input/output source may indicate the use or lack of encryption, but human analysis is still required to distinguish intentionally-unencrypted data (e.g. metadata) from sensitive data.
• Manual Static Analysis - Binary or Bytecode: According to SOAR [REF-1479], the following detection techniques may be useful:
Cost effective for partial coverage:
• Binary / Bytecode disassembler - then use manual analysis for vulnerabilities & anomalies
• Dynamic Analysis with Automated Results Interpretation: According to SOAR [REF-1479], the following detection techniques may be useful:
Cost effective for partial coverage:
• Web Application Scanner
• Web Services Scanner
• Database Scanners
• Dynamic Analysis with Manual Results Interpretation: According to SOAR [REF-1479], the following detection techniques may be useful:
Highly cost effective:
• Network Sniffer
Cost effective for partial coverage:
• Fuzz Tester
• Framework-based Fuzzer
• Automated Monitored Execution
• Man-in-the-middle attack tool
• Manual Static Analysis - Source Code: According to SOAR [REF-1479], the following detection techniques may be useful:
Highly cost effective:
• Focused Manual Spotcheck - Focused manual analysis of source
• Manual Source Code Review (not inspections)
• Automated Static Analysis - Source Code: According to SOAR [REF-1479], the following detection techniques may be useful:
Cost effective for partial coverage:
• Context-configured Source Code Weakness Analyzer
• Architecture or Design Review: According to SOAR [REF-1479], the following detection techniques may be useful:
Highly cost effective:
• Inspection (IEEE 1028 standard) (can apply to requirements, design, source code, etc.)
• Formal Methods / Correct-By-Construction
Cost effective for partial coverage:
• Attack Modeling
Observed examples
• CVE-2022-26390: wireless battery product stores credentials and Personal Health Information (PHI) without encryption
• CVE-2009-2272: password and username stored in cleartext in a cookie
• CVE-2009-1466: password stored in cleartext in a file with insecure permissions
• CVE-2009-0152: chat program disables SSL in some circumstances even when the user says to use SSL.
• CVE-2009-1603: Chain: product uses an incorrect public exponent when generating an RSA key, which effectively disables the encryption
• CVE-2009-0964: storage of unencrypted passwords in a database
• CVE-2008-6157: storage of unencrypted passwords in a database
• CVE-2008-6828: product stores a password in cleartext in memory
• CVE-2008-1567: storage of a secret key in cleartext in a temporary file
• CVE-2008-0174: SCADA product uses HTTP Basic Authentication, which is not encrypted
• CVE-2007-5778: login credentials stored unencrypted in a registry key
• CVE-2002-1949: Passwords transmitted in cleartext.
• CVE-2008-4122: Chain: Use of HTTPS cookie without "secure" flag causes it to be transmitted across unencrypted HTTP.
• CVE-2008-3289: Product sends password hash in cleartext in violation of intended policy.
• CVE-2008-4390: Remote management feature sends sensitive information including passwords in cleartext.
• CVE-2007-5626: Backup routine sends password in cleartext in email.
• CVE-2004-1852: Product transmits Blowfish encryption key in cleartext.
• CVE-2008-0374: Printer sends configuration information, including administrative password, in cleartext.
• CVE-2007-4961: Chain: cleartext transmission of the MD5 hash of password (CWE-319) enables attacks against a server that is susceptible to replay (CWE-294).
• CVE-2007-4786: Product sends passwords in cleartext to a log server.
• CVE-2005-3140: Product sends file with cleartext passwords in e-mail message intended for diagnostic purposes.
Related
Attack pattern · CAPEC (14)
- CAPEC-157 Sniffing Attacks attack pattern
- CAPEC-158 Sniffing Network Traffic attack pattern
- CAPEC-204 Lifting Sensitive Data Embedded in Cache attack pattern
- CAPEC-31 Accessing/Intercepting/Modifying HTTP Cookies attack pattern
- CAPEC-37 Retrieve Embedded Sensitive Data attack pattern
- CAPEC-383 Harvesting Information via API Event Monitoring attack pattern
- CAPEC-384 Application API Message Manipulation via Man-in-the-Middle attack pattern
- CAPEC-385 Transaction or Event Tampering via Application API Manipulation attack pattern
- CAPEC-386 Application API Navigation Remapping attack pattern
- CAPEC-387 Navigation Remapping To Propagate Malicious Content attack pattern
- CAPEC-388 Application API Button Hijacking attack pattern
- CAPEC-477 Signature Spoofing by Mixing Signed and Unsigned Content attack pattern
- CAPEC-609 Cellular Traffic Intercept attack pattern
- CAPEC-65 Sniff Application Code attack pattern
Observed example · CVE (21)
- CVE-2022-26390 The Baxter Spectrum Wireless Battery Module (WBM) stores network credentials and PHI (only applicable to Spectrum IQ pumps using auto… vulnerability
- CVE-2009-2272 The Huawei D100 stores the administrator's account name and password in cleartext in a cookie, which allows context-dependent attackers to… vulnerability
- CVE-2008-6828 Symantec Altiris Deployment Solution 6.x before 6.9.355 SP1 stores the Application Identity Account password in memory in cleartext, which… vulnerability
- CVE-2009-1466 Application Access Server (A-A-S) 2.0.48 stores (1) passwords and (2) the port keyword in cleartext in aas.ini, which allows local users to… vulnerability
- CVE-2009-0152 iChat in Apple Mac OS X 10.5 before 10.5.7 disables SSL for AOL Instant Messenger (AIM) communication in certain circumstances that are… vulnerability
- CVE-2009-1603 src/tools/pkcs11-tool.c in pkcs11-tool in OpenSC 0.11.7, when used with unspecified third-party PKCS#11 modules, generates RSA keys with… vulnerability
- CVE-2009-0964 UserView_list.php in PHPRunner 4.2, and possibly earlier, stores passwords in cleartext in the database, which allows attackers to gain… vulnerability
- CVE-2008-6157 SepCity Classified Ads stores the admin password in cleartext in data/classifieds.mdb, which allows context-dependent attackers to obtain… vulnerability
- CVE-2008-4122 Joomla! vulnerability
- CVE-2008-4390 The Cisco Linksys WVC54GC wireless video camera before firmware 1.25 sends cleartext configuration data in response to a Setup Wizard… vulnerability
- CVE-2008-3289 EMC Dantz Retrospect Backup Client 7.5.116 sends the password hash in cleartext at an unspecified point, which allows remote attackers to… vulnerability
- CVE-2008-1567 phpMyAdmin before 2.11.5.1 stores the MySQL (1) username and (2) password, and the (3) Blowfish secret key, in cleartext in a Session file… vulnerability
- CVE-2008-0174 GE Fanuc Proficy Real-Time Information Portal 2.6 and earlier uses HTTP Basic Authentication, which transmits usernames and passwords in… vulnerability
- CVE-2008-0374 OKI C5510MFP Printer CU H2.15, PU 01.03.01, System F/W 1.01, and Web Page 1.00 sends the configuration of the printer in cleartext, which… vulnerability
- CVE-2007-5778 Mobile Spy (1) stores login credentials in cleartext under the RetinaxStudios registry key, and (2) sends login credentials and log data… vulnerability
- CVE-2007-5626 make_catalog_backup in Bacula 2.2.5, and probably earlier, sends a MySQL password as a command line argument, and sometimes transmits… vulnerability
- CVE-2007-4961 The login_to_simulator method in Linden Lab Second Life, as used by the secondlife:// protocol handler and possibly other Second Life login… vulnerability
- CVE-2007-4786 Cisco Adaptive Security Appliance (ASA) running PIX 7.0 before 7.0.7.1, 7.1 before 7.1.2.61, 7.2 before 7.2.2.34, and 8.0 before 8.0.2.11,… vulnerability
- CVE-2005-3140 Procom NetFORCE 800 4.02 M10 Build 20 and possibly other versions sends the NIS password map (passwd.nis) as a file attachment in… vulnerability
- CVE-2004-1852 DameWare Mini Remote Control 3.x before 3.74 and 4.x before 4.2 transmits the Blowfish encryption key in plaintext, which allows remote… vulnerability
- CVE-2002-1949 The Network Attached Storage (NAS) Administration Web Page for Iomega NAS A300U transmits passwords in cleartext, which allows remote… vulnerability
Child of · CWE (1)
- CWE-693 Protection Mechanism Failure weakness
Referenced by CAPEC · weakness (14)
- CAPEC-157 Sniffing Attacks attack pattern
- CAPEC-158 Sniffing Network Traffic attack pattern
- CAPEC-204 Lifting Sensitive Data Embedded in Cache attack pattern
- CAPEC-31 Accessing/Intercepting/Modifying HTTP Cookies attack pattern
- CAPEC-37 Retrieve Embedded Sensitive Data attack pattern
- CAPEC-383 Harvesting Information via API Event Monitoring attack pattern
- CAPEC-384 Application API Message Manipulation via Man-in-the-Middle attack pattern
- CAPEC-385 Transaction or Event Tampering via Application API Manipulation attack pattern
- CAPEC-386 Application API Navigation Remapping attack pattern
- CAPEC-387 Navigation Remapping To Propagate Malicious Content attack pattern
- CAPEC-388 Application API Button Hijacking attack pattern
- CAPEC-477 Signature Spoofing by Mixing Signed and Unsigned Content attack pattern
- CAPEC-609 Cellular Traffic Intercept attack pattern
- CAPEC-65 Sniff Application Code attack pattern
Referenced by CVE · weakness (527)
- CVE-2026-116198 Snipe-IT before 8.7.0 contains a missing encryption vulnerability in Api\AssetsController::store that writes plaintext into… vulnerability
- CVE-2026-115247 A security vulnerability has been detected in subhajitkhan online-clinic-management-system up to e9ee77a8827a1446220fa07ee693dc4d9a29a578. vulnerability
- CVE-2026-43854 A vulnerability could allow an attacker with access to an encrypted project file to retrieve administrator credentials for EdgeLink-enabled… vulnerability
- CVE-2026-111063 AIOHTTP is an asynchronous HTTP client/server framework for asyncio and Python. vulnerability
- CVE-2026-86375 Dell Application Installer, versions prior to 26.09.0.1, contain a Missing Encryption of Sensitive Data vulnerability. vulnerability
- CVE-2026-105179 A weakness has been identified in SourceCodester Drug Recommendation System 1.0. vulnerability
- CVE-2026-78860 An issue in Mercusys AC12 V2 allows a local attacker to execute arbitrary code via the storage of information in plaintext vulnerability
- CVE-2026-92756 Applications built on MongoDB Entity Framework Core Provider which combine independent encryption settings and this provider's encryption… vulnerability
- CVE-2026-92757 Applications built on MongoDB Entity Framework Core Provider which place a database name in the connection string may inadvertently disable… vulnerability
- CVE-2026-84676 Jenkins Parameterized Remote Trigger Plugin 3.2.2 and earlier stores tokens unencrypted in job config.xml files on the Jenkins controller… vulnerability
- CVE-2026-81681 openssl_encrypt (pip package openssl-encrypt) versions <= 1.4.8 advertise a portable USB workspace as an 'Encrypted USB Workspace' with… vulnerability
- CVE-2026-81688 openssl_encrypt versions before 1.4.9 store an unkeyed SHA-256 hash of the plaintext in the cleartext file header metadata. vulnerability
- CVE-2026-77812 DJI drones transmit DUML (DJI Universal Markup Language) protocol messages over BLE (Bluetooth Low Energy) without encryption. vulnerability
- CVE-2026-19891 A vulnerability was determined in TRENDnet TEW-WLC100 2.05b02. vulnerability
- CVE-2025-59325 CPSD CryptoPro Secure Disk for Bitlocker before v7.7.4 fails to encrypt the initramfs contents, allowing for the offline recovery of… vulnerability
- CVE-2026-21079 Missing encryption of sensitive data in Smart Switch prior to version 3.7.72.6 allows adjacent attackers to intercept transmitted data. vulnerability
- CVE-2026-20157 As part of Cisco's ongoing commitment to proactive security and product quality, the Cisco RoomOS engineering team has conducted a… vulnerability
- CVE-2025-63579 Unauthorized use of Kyocera printers, allows all information stored in the Kyocera address book to be exported. vulnerability
- CVE-2026-54784 CoreWCF is a port of the service side of Windows Communication Foundation (WCF) to .NET Core. vulnerability
- CVE-2026-55568 Guzzle is an extensible PHP HTTP client. vulnerability
- CVE-2026-53442 Jenkins 2.567 and earlier, LTS 2.555.2 and earlier does not encrypt secrets from POST config.xml submissions before storing them in job… vulnerability
- CVE-2026-34486 Missing Encryption of Sensitive Data vulnerability in Apache Tomcat due to the fix for CVE-2026-29146 allowing the bypass of the… vulnerability
- CVE-2026-34992 Antrea is a Kubernetes networking solution intended to be Kubernetes native. vulnerability
- CVE-2026-32891 Anchorr is a Discord bot for requesting movies and TV shows and receiving notifications when items are added to a media server. vulnerability
- CVE-2026-27944 Nginx UI is a web user interface for the Nginx web server. vulnerability
- CVE-2025-69969 A lack of authentication and authorization mechanisms in the Bluetooth Low Energy (BLE) communication protocol of SRK Powertech Pvt Ltd… vulnerability
- CVE-2025-15548 Some VX800v v1.0 web interface endpoints transmit sensitive information over unencrypted HTTP due to missing application layer encryption,… vulnerability
- CVE-2025-65098 Typebot is an open-source chatbot builder. vulnerability
- CVE-2025-13453 A potential vulnerability was reported in some ThinkPlus USB drives that could allow a user with physical access to read data stored on the… vulnerability
- CVE-2025-15065 Exposure of Sensitive Information to an Unauthorized Actor, Missing Encryption of Sensitive Data, Files or Directories Accessible to… vulnerability
Referenced by CWE · child of (2)
Referenced by CWE · has member (3)
Referenced by CWE · peer of (1)
- CWE-327 Use of a Broken or Risky Cryptographic Algorithm weakness