CVE-2022-1379

9.1 CRITICAL

📋 TL;DR

CVE-2022-1379 is a URL restriction bypass vulnerability in PlantUML that allows attackers to bypass security profile restrictions and perform server-side request forgery (SSRF). This enables access to internal resources or requests to third-party servers. Anyone using PlantUML versions prior to 1.2022.5 is affected.

💻 Affected Systems

Products:
  • PlantUML
Versions: All versions prior to 1.2022.5
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Affects all deployments where PlantUML processes untrusted input, including web applications, documentation generators, and CI/CD pipelines using PlantUML.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete compromise of internal network resources, data exfiltration from internal systems, or use as a pivot point for further attacks.

🟠

Likely Case

Unauthorized access to internal HTTP services, metadata services, or internal APIs that should be protected.

🟢

If Mitigated

Limited impact with proper network segmentation, egress filtering, and security profiles configured.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Exploitation requires ability to provide input to PlantUML, which is common in documentation systems and web applications.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 1.2022.5

Vendor Advisory: https://github.com/plantuml/plantuml/commit/93e5964e5f35914f3f7b89de620c596795550083

Restart Required: Yes

Instructions:

1. Update PlantUML to version 1.2022.5 or later. 2. Restart any services using PlantUML. 3. Verify the fix by testing with known exploit payloads.

🔧 Temporary Workarounds

Restrict Input Sources

all

Limit PlantUML input to trusted sources only and implement input validation.

Network Segmentation

all

Implement network controls to restrict PlantUML server's outbound connections.

🧯 If You Can't Patch

  • Implement strict network egress filtering to limit PlantUML's outbound connections
  • Run PlantUML in isolated network segments with no access to sensitive internal resources

🔍 How to Verify

Check if Vulnerable:

Check PlantUML version using 'java -jar plantuml.jar -version' or check application dependencies.

Check Version:

java -jar plantuml.jar -version

Verify Fix Applied:

Test with known SSRF payloads that should be blocked in patched versions.

📡 Detection & Monitoring

Log Indicators:

  • Unusual outbound HTTP requests from PlantUML process
  • Requests to internal IP ranges or metadata services

Network Indicators:

  • Unexpected outbound HTTP traffic from PlantUML servers to internal networks

SIEM Query:

source="plantuml" AND (dest_ip=169.254.169.254 OR dest_ip IN [10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16])

🔗 References

📤 Share & Export