CVE-2021-32700CWE-306

Supply chain attack via MiTM against users

Critical · published June 22, 2021

CVSS v3.1
9.1
EPSS
1%
Percentile
46.9
In the wild
Unconfirmed
What it is

🔥 A supply chain attack could be lurking around the corner with Ballerina! 🚨 If you're still running versions 1.2.x or SL releases up to alpha 3, read on! Think of your code as a delicious recipe—if an unscrupulous chef can sneak in and swap out your high-quality ingredients for something rotten, your dish is doomed! Here, the attacker can intercept package downloads and inject malicious code, ruining your whole meal. With this vulnerability, an attacker can substitute or modify packages when retrieving them from the Ballerina Central (BC), potentially leading to a complete compromise of your application. Malicious code can be injected into your Ballerina executables, allowing ruthless hijinks like data theft or even full system takeover! Yikes!

Put simply

Think of your code as a delicious recipe—if an unscrupulous chef can sneak in and swap out your high-quality ingredients for something rotten, your dish is doomed! Here, the attacker can intercept package downloads and inject malicious code, ruining your whole meal. This vulnerability arises because HTTP connections in Ballerina did not use TLS and ignored certificate verification, making it easy for a Man-in-the-Middle (MiTM) attack to occur. As a result, attackers can tamper with or replace packages that users are retrieving from Ballerina Central.

What to do

With this vulnerability, an attacker can substitute or modify packages when retrieving them from the Ballerina Central (BC), potentially leading to a complete compromise of your application. Malicious code can be injected into your Ballerina executables, allowing ruthless hijinks like data theft or even full system takeover! Yikes! To protect your applications, upgrade to Ballerina version 1.2.14 or SwanLake alpha 4 immediately. Additionally, ensure that you enforce TLS and proper certificate checking in your HTTP connections to prevent future attacks. Don't wait! You've got this! Follow these steps, and you'll keep your applications safe and sound! 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00579 · 46.9th percentile
Weakness
CWE-306 · Missing Authentication for Critical Function
Published
2021-06-22T19:30Z
EPSS history
Timeline
  • 22 JUN 19:30Z
    Supply chain attack via MiTM against users
    cvelistv5