Categories
CVE-2022-2191

Vulnerability in org.eclipse.jetty:jetty-server (CVE-2022-2191)

Summary

Vulnerability in org.eclipse.jetty:jetty-server (CVE-2022-2191). Risk of unauthorized operations or information disclosure. Exploitable via SslConnection. Mitigation: upgrade to 11.0.10 or later.

Original description

The description as published by the source.

Impact

SslConnection does not release ByteBuffers in case of error code paths.
For example, TLS handshakes that require client-auth with clients that send expired certificates will trigger a TLS handshake errors and the ByteBuffers used to process the TLS handshake will be leaked.

Workarounds

Configure explicitly a RetainableByteBufferPool with max[Heap|Direct]Memory to limit the amount of memory that is leaked.
Eventually the pool will be full of "active" entries (the leaked ones) and will provide ByteBuffers that will be GCed normally.

With embedded-jetty

int maxBucketSize = 1000;
long maxHeapMemory = 128 * 1024L * 1024L; // 128 MB
long maxDirectMemory = 128 * 1024L * 1024L; // 128 MB
RetainableByteBufferPool rbbp = new ArrayRetainableByteBufferPool(0, -1, -1, maxBucketSize, maxHeapMemory, maxDirectMemory);

server.addBean(rbbp); // make sure the ArrayRetainableByteBufferPool is added before the server is started
server.start();

With jetty-home/jetty-base

Create a ${jetty.base}/etc/retainable-byte-buffer-config.xml

<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://www.eclipse.org/jetty/configure_10_0.dtd">

  
    
      
        
        
        
        
        
        
      
    
  

And then reference it in ${jetty.base}/start.d/retainable-byte-buffer-config.ini

etc/retainable-byte-buffer-config.xml

References

https://github.com/eclipse/jetty.project/issues/81…

Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV

Auto-generated summary

Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.

A vulnerability tracked as CVE-2022-2191 has been found in org.eclipse.jetty:jetty-server.
Attackers can target a specific entry point like SslConnection over the network to misuse the product.
Risk of unauthorized operations or information disclosure.
What to do: upgrade org.eclipse.jetty:jetty-server to 11.0.10 or later.
If unsure, ask your IT team or search "org.eclipse.jetty:jetty-server CVE-2022-2191" on the vendor's site.

CVE-2022-2191 (org.eclipse.jetty:jetty-server) — CWE-404
Attack vector: remote (network-reachable) / unauthenticated / no user interaction
Attack surface: SslConnection / ByteBuffer / RetainableByteBufferPool
Patched: 11.0.10 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.

❓ What is the problem

A vulnerability (CWE-404) exists in org.eclipse.jetty:jetty-server. Attackers reach the vulnerable code path via SslConnection without authentication.

📍 Affected scope

Check the vendor advisory for the affected versions of org.eclipse.jetty:jetty-server. Attack surface: SslConnection / ByteBuffer / RetainableByteBufferPool.

🔥 Severity

Severity: ?. Risk of unauthorized operations or information disclosure.

🔧 How to fix

Update to 11.0.10.

🛡️ Workaround

Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.

🔍 Detection

Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Audit SBOM/dependencies to find affected services.

Response actions

Concrete steps and command examples for SOC/SRE teams to execute in order

  1. 1
    Identify exposure identify
    Audit SBOM/dependencies for affected components.

    資産台帳・SBOM・依存マニフェストで org.eclipse.jetty:jetty-server を使っているサービスとバージョンを洗い出す。

  2. 2
    Apply patch patch
    Upgrade org.eclipse.jetty:jetty-server to 11.0.10

    ステージング環境で 11.0.10 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  3. 3
    Post-deployment verification verify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

Affected packages

Maven org.eclipse.jetty:jetty-server
[{"type":"ECOSYSTEM","events":[{"introduced":"11.0.0"},{"fixed":"11.0.10"}]}]

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details