VulnerabilitiesHIGH

AES Libraries Expose Users to Key/IV Reuse Vulnerabilities

TOTrail of Bits BlogFeb 18, 2026
aes-jspyaesAEScryptographysecurity
🎯

Basically, some encryption libraries use the same key and IV by default, making your data less secure.

Quick Summary

A serious vulnerability has been found in popular AES libraries aes-js and pyaes. This flaw can lead to key/IV reuse issues, risking the security of countless applications. Developers are urged to review their encryption practices and consider using more secure alternatives.

What Happened

A significant security issue has emerged involving two popular AES? libraries, aes-js and pyaes. These libraries, widely used for encryption in JavaScript and Python, have a critical flaw: they provide a default Initialization Vector (IV)? of 0x00000000_00000000_00000000_00000001 when none is specified. This careless design choice can lead to key/IV reuse bugs, which can compromise the security of thousands of applications relying on these libraries.

When two messages are encrypted using the same key and IV, attackers can recover the XOR? of the plaintexts. This means that if someone gains access to the encrypted messages, they can potentially uncover sensitive information. The implications are severe, as it can lead to a complete breakdown of security for applications using these libraries.

The response from the maintainers of these libraries has been starkly different. While strongSwan, an affected vendor, took the issue seriously and engaged constructively, the maintainers of aes?-js and pyaes? have not shown the same level of responsibility. This disparity highlights a troubling trend in software development where carelessness can have widespread consequences.

Why Should You Care

If you're a developer or a user of applications using aes?-js or pyaes?, this is a wake-up call. Imagine if your house had a faulty lock that could be easily picked because it was designed carelessly. Similarly, these libraries' default settings can leave your data vulnerable to attacks. Your security could be at risk if you are using these libraries without understanding the implications.

In today's digital world, where sensitive information is exchanged constantly, the stakes are high. Using a library that doesn’t enforce secure practices can lead to data breaches, identity theft, or worse. It’s essential to ensure that the tools you use for encryption are designed with security in mind. Always question the defaults and be proactive in safeguarding your data.

What's Being Done

Trail of Bits, the organization that uncovered this issue, is advocating for better practices in cryptographic software. They emphasize the importance of addressing systemic issues rather than just fixing individual bugs. Here are some steps you can take if you’re using these libraries:

  • Review your code: Check if you are using aes?-js or pyaes? and how you instantiate AES?.
  • Specify a random IV: Always provide a unique IV when using these libraries to avoid key/IV reuse.
  • Consider alternatives: Look for libraries that support modern cipher modes like AES-GCM?, which offer better security features.

Experts are closely monitoring the situation to see how the maintainers of aes?-js and pyaes? will respond and whether they will implement necessary changes to improve security practices.

💡 Tap dotted terms for explanations

🔒 Pro insight: The default IV issue underscores a broader trend of neglect in cryptographic library design, risking systemic vulnerabilities across dependent projects.

Original article from

Trail of Bits Blog

Read Full Article

Related Pings

HIGHVulnerabilities

Authentication Bypass Flaw Exposes pac4j-jwt Users

A critical vulnerability in the pac4j-jwt library allows attackers to impersonate users. Developers using this library must update immediately to prevent unauthorized access. Ignoring this could lead to severe security breaches.

Arctic Wolf Blog·Yesterday, 8:34 PM
CRITICALVulnerabilities

Critical Authentication Bypass in pac4j-jwt Library Exposed!

A severe flaw in the pac4j-jwt library allows hackers to bypass authentication. This affects applications relying on the library, risking user data and security. Immediate updates are essential to protect against exploitation.

Arctic Wolf Blog·Yesterday, 7:55 PM
HIGHVulnerabilities

Firefox Faces 22 Vulnerabilities Discovered by Anthropic

Anthropic discovered 22 vulnerabilities in Firefox, with 14 marked high-severity. This puts users at risk of data breaches and unauthorized access. Mozilla is working on patches to fix these issues.

TechCrunch Security·Yesterday, 7:00 PM
CRITICALVulnerabilities

Cisco FMC Faces Maximum-Severity Vulnerabilities: Act Now!

Cisco has identified two critical vulnerabilities in its Secure Firewall Management Center software. Organizations using this software are at risk of unauthorized access and control. Immediate patching is essential to protect sensitive data and maintain security.

Arctic Wolf Blog·Yesterday, 5:58 PM
HIGHVulnerabilities

Firefox Vulnerabilities Exposed by AI in Just Two Weeks

AI has uncovered 22 vulnerabilities in Firefox in just two weeks. This affects anyone using the browser, putting personal data at risk. Mozilla is working on patches to fix these issues, so stay updated!

Cyber Security News·Yesterday, 5:38 PM
HIGHVulnerabilities

Linux Rootkits Evolve with eBPF and io_uring Threats

Linux rootkits are evolving into a serious threat, targeting cloud and IoT systems. This shift puts many users at risk of data breaches and disruptions. Experts are working on detection methods and patches to combat these threats.

Cyber Security News·Yesterday, 5:33 PM