CyberSecBulletin
CVE-2022-1319NVD status: Modified

undertow: Unchecked Return Value

CVE-2022-1319 is a high-severity unchecked return value vulnerability in undertow, with a CVSS 3.1 base score of 7.5 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. There is no confirmed exploitation so far. EPSS estimates a 1.7% chance of exploitation within 30 days, higher than 78% of scored CVEs.

Next patch cycle

High severity with no evidence of exploitation so far.

What to do

  1. Check which version of undertow you run against the affected versions below, and install the vendor's latest release.
  2. Read the advisory on access.redhat.com for workarounds and exact fixed builds.
  3. Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.

Affected products and versions

VendorProductAffected versionsFixed in
UndertowundertowNot specified in the recordNot stated
Red HatOpenshift Application RuntimesNot specified in the recordNot stated
Red HatSingle Sign-on7.0Not stated
NetAppActive Iq Unified ManagerNot specified in the recordNot stated
NetAppCloud Secure AgentNot specified in the recordNot stated
NetAppOncommand InsightNot specified in the recordNot stated
NetAppOncommand Workflow AutomationNot specified in the recordNot stated

Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.

How the severity score breaks down

Attack vector
NetworkCan be exploited remotely over a network, including the internet.
Attack complexity
LowNo special conditions are needed; the attack works reliably.
Privileges required
NoneNo account or login is needed.
User interaction
NoneNo action by a victim is required.
Scope
UnchangedImpact stays within the vulnerable component.
Confidentiality
NoneNo data is disclosed.
Integrity
NoneNothing can be modified.
Availability
HighThe component can be taken down completely.

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. Scored by NVD.

Official description

A flaw was found in Undertow. For an AJP 400 response, EAP 7 is improperly sending two response packets, and those packets have the reuse flag set even though JBoss EAP closes the connection. A failure occurs when the connection is reused after a 400 by CPING since it reads in the second SEND_HEADERS response packet instead of a CPONG.

Source: the CVE record as published by its numbering authority, via NVD and CVE.org.

The underlying weakness: Unchecked Return Value

The product does not check the return value from a method or function.

How developers prevent this class of flaw

  • Check the results of all functions that return a value and verify that the value is expected.
  • For any pointers that could have been modified or provided from a function that can return NULL, check the pointer for NULL before use. When working with a multithreaded or otherwise asynchronous environment, ensure that proper locking APIs are used to lock before the check, and unlock when it has finished.
  • Ensure that you account for all possible return values from the function.

More Unchecked Return Value vulnerabilities (CWE-252)

Timeline

  1. CVE record published.
  2. Record last changed materially (score, affected products, status or references).

References

Third-party and government advisories

Other vulnerabilities in undertow

All undertow vulnerabilities

Recent Unchecked Return Value vulnerabilities

Spotted an error? Tell us.